Learn R Programming

PSCBS (version 0.38.4)

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=1L, minLength=0L, dropGaps=FALSE, ...)

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.
minLength
Minimum length of segments to be kept.
dropGaps
If TRUE, the gaps themselves are not part of the output.
...
Not used.

Value

  • Returns data.frame with columns chromosome (if that argument is given), start, stop and length. The segments are ordered along the genome.

See Also

findLargeGaps().