reduceMC | R Documentation |
Reduce ranges retaining mcols
reduceMC(x, ignore.strand = FALSE, simplify = TRUE, ...)
x |
A GenomicRanges object |
ignore.strand |
If set to TRUE, then the strand of x and y is set to "*" prior to any computation. |
simplify |
logical(1). Attempt to simplify returned columns where possible |
... |
Passed to reduce |
This function extends reduce so that all mcols
are returned in the output.
Where the reduced ranges map to multiple ranges in the original range,
mcols
will be returned as CompressedList
columns.
If simplify = TRUE
columns will be returned as vectors where possible.
A GRanges object
x <- GRanges(c("chr1:1-10:+", "chr1:6-12:-"))
x$id <- c("range1", "range2")
reduceMC(x)
reduceMC(x, ignore.strand = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.