mergeSegs: mergeSegs

Description Usage Arguments Value See Also Examples

View source: R/cnSegments.R

Description

merges segments if they are adjacent and both gains or losses (useful for some types of plotting)

Usage

1
  mergeSegs(segs,rdo)

Arguments

segs

a data frame that is the result of calling rd.cnSegments

rdo

a readDepth object created with new("rdObject")

Value

a data frame containing merged segments of CN gain and loss and all intervening normal segments

See Also

'rd.cnSegments'

Examples

1
2
3
4
5
  ##get regions of CN gain and loss
  #  segs <- rd.cnSegments(x)

  ##extract just the gains and losses
  #  mergedSegs <- mergeSegs(segs,x)

chrisamiller/copyCat documentation built on July 20, 2021, 12:59 a.m.