rtracklayer (version 1.32.1)

GenomicSelection: 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

See Also

RangedSelection, BigWigSelection

Examples

Run this code
# every chromosome from hg19
GenomicSelection("hg19")
# chr1 and 2 from hg19, with a score column
GenomicSelection("hg19", c("chr1", "chr2"), "score")

Run the code above in your browser using DataCamp Workspace