chopMC | R Documentation |
Keep unique ranges by 'chopping' mcols
chopMC(x, simplify = TRUE)
x |
A GenomicRanges object |
simplify |
logical(1) |
This function finds unique ranges and chops all mcols in a manner similar
to chop.
Chopped columns will be returned as CompressedList
columns, unless
simplify = TRUE
(the default).
In this case, columns will be returned as vectors where possible.
A GRanges object
gr <- GRanges(rep(c("chr1:1-10"), 2))
gr$id <- paste0("range", seq_along(gr))
gr$gene <- "gene1"
gr
chopMC(gr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.