View source: R/ranges-construct.R
as_ranges | R Documentation |
Coerce an Rle or RleList object to Ranges
as_ranges(.data)
.data |
a |
This function is behind compute_coverage()
.
an IRanges()
object if the input is an
Rle()
object or a GRanges()
object for
an RleList()
object.
S4Vectors::Rle()
,
IRanges::RleList()
x <- S4Vectors::Rle(10:1, 1:10)
as_ranges(x)
# must have names set
y <- IRanges::RleList(chr1 = x)
as_ranges(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.