blocks-methods {rtracklayer} | R Documentation |
Obtains the block ranges (subranges, usually exons) from an object, such as a
RangedData
imported from a BED file.
blocks(x, ...)
x |
The instance from which to obtain the block/exon
information. Currently must be a |
... |
Additional arguments for methods |
For the RangedData
method, there must be two columns in
x
: blockStarts
and blockSizes
, each field of
which should be a comma-separated list of block starts and widths,
respectively. This comes from the BED specification.
Michael Lawrence
import.bed
for importing a track from BED, which
can store block information; asBED
for coercing an
interval dataset into a BED-like structure that can be passed to this
function.