View source: R/condense_granges.R
condense_granges | R Documentation |
Condense a GRanges object by taking the min/max position per chromosome. This helps to reduce the total number of queries, which can cause memory allocation problems due to repeated calls to the underlying C libraries.
condense_granges(gr, split_chromosomes = FALSE)
gr |
A GRanges object. |
split_chromosomes |
Split into a named list by chromosome. |
GRanges
gr <- unlist(
GenomicRanges::GRangesList(
"gr1"=GenomicRanges::GRanges("4:1-100"),
"gr2"=GenomicRanges::GRanges("4:300-500"),
"gr3"=GenomicRanges::GRanges("8:40-10000"))
)
gr2 <- condense_granges(gr = gr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.