dropRegions.AbstractCBS: Drops chromosomal regions (a connected set of segments)

dropRegions.AbstractCBSR Documentation

Drops chromosomal regions (a connected set of segments)

Description

Drops chromosomal regions (a connected set of segments) each of a certain size (number of segments). None of the statistics are recalculated.

Usage

## S3 method for class 'AbstractCBS'
dropRegions(this, regions, H=1, ..., asMissing=FALSE, verbose=FALSE)

Arguments

regions

An integer vector of length R specifying the indices of the left most segment in each of the R regions to be dropped.

H

A non-negative integer specifying the size of each region, i.e. the number of segments per region.

...

Additional arguments passed to *extractRegions().

asMissing

If TRUE, dropped segments are replaced by missing values, otherwise they are truly dropped.

verbose

A logical or a Verbose object.

Value

Returns an AbstractCBS object of the same class with (at most) R*H segments dropped. If some regions overlap (share segments), then fewer than R*H segments are dropped.

Author(s)

Henrik Bengtsson

See Also

Internally *extractRegions() is used. See also *dropChangePoint() and *mergeTwoSegments(). For more information see AbstractCBS.


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