segMerge | R Documentation |
Given a set of segments defined by "chrom", "start", "end" and various data, it merges consecutive rows (sorted by "chrom" then "start") that share same data. As an example, it is useful to merge consecutive regions of the genome sharing same copy numbers after modelization, or filling small gaps.
segMerge(segTable, on = names(segTable), fun = list(unique, start=min, end=max),
group = NULL)
segTable |
A |
on |
Character vector, |
fun |
A |
group |
A vector with as many values as |
Returns a data.frame
similar to segTable
.
Sylvain Mareschal
segOverlap
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.