joinSegments.CBS: Joins neighboring segments such that there is no gap in...

joinSegments.CBSR Documentation

Joins neighboring segments such that there is no gap in between them

Description

Joins neighboring segments such that there is no gap in between them. For instance, consider two neighboring segments [x1,x2] and [x3,x4] with x1 < x2 < x3 < x4. After join the segments, they are [x1,x23] and [x23,x4] where x23 = (x2 + x3)/2.

Usage

## S3 method for class 'CBS'
joinSegments(fit, range=NULL, verbose=FALSE, ...)

Arguments

range

(optional) A numeric vector of length two.

verbose

See Verbose.

...

Not used.

Details

This function assumes only chromosome exists. If more, an error will be thrown.

Value

Returns an updated CBS object.

Author(s)

Henrik Bengtsson


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