gapsToSegments.data.frame: Gets the genomic segments that are complementary to the gaps
Description
Gets the genomic segments that are complementary to the gaps, with default chromosome boundaries being -Inf
and +Inf.Usage
## S3 method for class 'data.frame':
gapsToSegments(gaps, resolution=1, ...)
Arguments
gaps
A data.frame with columns chromosome, start,
and stop. Any overlapping gaps will throw an error. resolution
A non-negative numeric specifying the minimum
length unit, which by default equals one nucleotide/base pair. Value
- Returns
data.frame with columns chromosome (if that argument
is given), start, stop and length.
The segments are ordered along the genome.
Zero length segments are automatically dropped.