Description Usage Arguments Details Value Author(s) Examples
View source: R/genomic_region_merge.R
Merge genomic regions
1 |
gr |
a |
gap |
a numeric value means to extend each region by |
max_gap |
maximum distance to merge, measured in base pairs. Only work if |
.message |
internal use |
.revmap |
internal use |
... |
further arguments passed to |
reduce
only merges regions with fixed gap width, but sometimes it is not reasonable to set gap
to a same width for all regions. Assuming we have a list of differentially methylated regions (DMRs) and we want to reduce
the number of DMRs by merging neighouring DMRs. DMRs distribute differently in different places in the genome, e.g. DMRs are dense
and short in CpG-rich regions (e.g. CpG islands) while long and sparse in CpG-poor regions (e.g. gene bodies and intergenic regions),
thus the merging should be applied based to the width of every DMR itself. reduce2
can merge regions by the width of every region itself.
This type of merging is dynamic because after each iteration of merging, some regions are merged into a large region and
it will has longer extension. The whole merging will proceed iteratively unless there is no new merging.
Note with.revmap
is always set to TRUE
when calling reduce
, thus there is always a revmap
meta column in the returned GRanges
object.
a GRanges
object with a revmap
meta column.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.