Obtain minimum necessary names for the creation of a GRangesList object
Source:R/findGRangesCols.R
findGRangesCols.Rd
This function attempts to match chromosome, start position, end position and
strand names in the given character vector. Modified helper from the
GenomicRanges
package.
Arguments
- df_colnames
A
character
vector of names in a dataset- seqnames.field
A
character
vector of the chromosome name- start.field
A
character
vector that indicates the column name of the start positions of ranged data- end.field
A
character
vector that indicates the end position of ranged data- strand.field
A
character
vector of the column name that indicates the strand type- ignore.strand
logical (default FALSE) whether to ignore the strand field in the data
Examples
myDataColNames <- c("Start_position", "End_position", "strand",
"chromosome", "num_probes", "segment_mean")
findGRangesCols(myDataColNames)
#> seqnames start end width strand
#> 4 1 2 NA 3