| BigWigSelection-class {rtracklayer} | R Documentation |
A BigWigSelection represents a query against a
BigWig file, see import.bw. It is simply
a RangedSelection that requires its colnames
parameter to be "score", if non-empty, as that is the only column
supported by BigWig.
BigWigSelection(ranges = GRanges(), colnames =
"score"): Constructs a BigWigSelection with the given
ranges and colnames. ranges can be either
something coercible to a IntegerRangesList,
a character identifying a genome (see
GenomicSelection), or a
BigWigFile, in which case the ranges are
derived from the bounds of its sequences.
as(from, "BigWigSelection"): Coerces from to a
BigWigSelection object. Typically, from is a
GRanges or
a IntegerRangesList, the ranges of
which become the ranges in the
new BigWigSelection.
Michael Lawrence
rl <- IRangesList(chr1 = IRanges::IRanges(c(1, 5), c(3, 6))) BigWigSelection(rl) as(rl, "BigWigSelection") # same as above # do not select the 'score' column BigWigSelection(rl, character())