segMerge {Rgb} | R Documentation |
Merges consecutive segments
Description
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.
Usage
segMerge(segTable, on = names(segTable), fun = list(unique, start=min, end=max),
group = NULL)
Arguments
segTable |
A |
on |
Character vector, |
fun |
A |
group |
A vector with as many values as |
Value
Returns a data.frame
similar to segTable
.
Author(s)
Sylvain Mareschal