findGRangesCols: Obtain minimum necessary names for the creation of a...

Description Usage Arguments Value Examples

View source: R/findGRangesCols.R

Description

This function attempts to match chromosome, start position, end position and strand names in the given character vector. Modified helper from the GenomicRanges package.

Usage

1
2
3
4
findGRangesCols(df_colnames, seqnames.field = c("seqnames", "seqname",
  "chromosome", "chrom", "chr", "chromosome_name", "seqid", "om"),
  start.field = "start", end.field = c("end", "stop"),
  strand.field = "strand", ignore.strand = FALSE)

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

Value

Index positions vector indicating columns with appropriate names

Examples

1
2
3
myDataColNames <- c("Start_position", "End_position", "strand",
                 "chromosome", "num_probes", "segment_mean")
findGRangesCols(myDataColNames)

waldronlab/BiocInterfaces documentation built on Oct. 17, 2018, 3:24 a.m.