Description Usage Arguments Value See Also Examples
uses Circular Binary Segmentation (as implemented in the DNAcopy package) to segment the genome and returns regions that contain CN gains or losses relative to the reference
1 | cnSegments.paired(rdo.ref, rdo.test, onlyAlts=FALSE, minWidth=3, alpha=0.01, undoSD=2, rmGaps=TRUE)
|
rdo.ref |
a readDepth object created from the reference sample using new("rdObject") and filled with read counts using the getReadDepth() command (optionally corrected first). |
rdo.test |
same as rdo, but containing the test sample's reads |
onlyAlts |
whether the function should return just those segments that exceed the threshold values for gain and loss The Default is FALSE, which returns all segments. |
minWidth |
the minimum number of consecutive aberrant bins required before making a segment call. Default is three. |
alpha |
the significance level for the CBS to accept change-points. Default 0.01 |
undoSD |
require this many SDs between segment means to keep a split |
rmGaps |
Controls whether adjacent segments have their boundaries adjusted to remove gaps. If so, the new segment boundary is set to halfway between the existing boundary calls. |
returns a dataframe with 5 columns: chr start stop #probes copynumber
'readDepth'
1 2 3 4 5 6 7 8 9 10 11 | #create a rdObject, set bin params
# x <- new("rdObject")
#fill the bins with reads
# x.reads <- readDepth(x)
#do gc correction on the read counts
# x.gcCorr <- rd.gcCorrect(x)
#return regions of CN gain and loss
# segs <- rd.cnSegments(x.gcCorr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.