GenomicSelection {rtracklayer} | R Documentation |
Genomic data selection
Description
Convenience constructor of a RangedSelection object for selecting a data on a per-chromosome basis for a given genome.
Usage
GenomicSelection(genome, chrom = NULL, colnames = character(0))
Arguments
genome |
A string identifying a genome. Should match the end of a BSgenome package name, e.g. "hg19". |
chrom |
Character vector naming chromosomes to select. |
colnames |
The column names to select from the dataset. |
Value
A RangedSelection object, selecting entire chromosomes
Author(s)
Michael Lawrence
See Also
RangedSelection
, BigWigSelection
Examples
# every chromosome from hg19
GenomicSelection("hg19")
# chr1 and 2 from hg19, with a score column
GenomicSelection("hg19", c("chr1", "chr2"), "score")
[Package rtracklayer version 1.66.0 Index]