Skip to content

Commit

Permalink
Changed defaults in 'data.frame2GRanges' to the ones used in the 'ann…
Browse files Browse the repository at this point in the history
…otation' function
  • Loading branch information
schmic05 committed Jul 24, 2018
1 parent b496325 commit a4ddd00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/annotations.R
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ append.cpg.stats <- function(genome.data, regionlist) {
#'
#' @author Yassen Assenov
#' @export
data.frame2GRanges <- function(dframe, ids = rownames(dframe), chrom.column = "chromosome", start.column = "start",
end.column = "end", strand.column = NULL, assembly = "hg19", sort.result = TRUE) {
data.frame2GRanges <- function(dframe, ids = rownames(dframe), chrom.column = "Chromosome", start.column = "Start",
end.column = "End", strand.column = NULL, assembly = "hg19", sort.result = TRUE) {
if (is.character(chrom.column)) { chrom.column <- which(colnames(dframe) == chrom.column) }
if (is.character(start.column)) { start.column <- which(colnames(dframe) == start.column) }
if (is.character(end.column)) { end.column <- which(colnames(dframe) == end.column) }
Expand Down

0 comments on commit a4ddd00

Please sign in to comment.