gapsToSegments.data.frame: Gets the genomic segments that are complementary to the gaps

gapsToSegments.data.frameR Documentation

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 of least one row with columns chromosome if that argument is given), start, stop and length. The segments are ordered along the genome.

Author(s)

Henrik Bengtsson

See Also

findLargeGaps().


PSCBS documentation built on May 29, 2024, 5:59 a.m.