| BigWigSelection-class {rtracklayer} | R Documentation |
Selection of ranges and columns
Description
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.
Constructor
BigWigSelection(ranges = GRanges(), colnames = "score")Constructs a
BigWigSelectionwith the givenrangesandcolnames.rangescan be either something coercible to aIntegerRangesList, acharacteridentifying a genome (seeGenomicSelection), or aBigWigFile, in which case the ranges are derived from the bounds of its sequences.
Coercion
as(from, "BigWigSelection")Coerces
fromto aBigWigSelectionobject. Typically,fromis aGRangesor aIntegerRangesList, the ranges of which become the ranges in the newBigWigSelection.
Author(s)
Michael Lawrence
Examples
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())
[Package rtracklayer version 1.68.0 Index]