Learn R Programming

PSCBS (version 0.67.0)

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 data.frame
gapsToSegments(gaps, resolution=1L, minLength=0L, dropGaps=FALSE, ...)

Value

Returns data.frame of least one row with columns chromosome

if that argument is given), start, stop and length. The segments are ordered along the genome.

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.

Author

Henrik Bengtsson

See Also

findLargeGaps().