Usage
getASCN(readMatrix, rdep=NULL, tauhat=NULL, threshold=0.15, pOri=c(0.49,0.51),
error=1e-5, maxIter=1000)
Arguments
readMatrix
A data frame with four columns and the column names are "AN", "BN", "AT" and "BT". They are A-allele coverage in the tumor (case) sample, B-allele coverage in the tumor (case) sample, A-allele coverage in the normal (control) sample, and B-allele coverage in the normal (control) sample, respectively.
rdep
The case-control coverage ratio, i.e., the ratio of the total number of mapped reads in case sample versus that in the control sample. If this is not specified (NULL), then the value median(AT+BT)/median(AN+BN) will be used.
tauhat
The estimated break points. If it is not specified (NULL), then this function will first estimate the break points by calling the function "gettau", and then estimate the parent-specific DNA copy number for each segment.
threshold
The estimated copy number are set to be 1 if it differs from 1 by less than this threshold.
pOri, error, maxIter
Parameters used in estimating the success probabilities of the mixed binomial distribution. See the manuscript by Chen and Zhang for more details. "pOri" provides the initial success probabilities. The two values in pOri needs to be different. "error" provides the stopping criterion. "maxIter" is the maximum iterating steps if the stopping criterion is not achieved.