Usage
eventTiming(x, m, history, totalCopy, method=c("fullMLE","partialMLE","Bayes"),type=c("gain","CNLOH"),seqError=0, bootstrapCI=NULL, B=if(method=="Bayes") 10000 else 500, CILevel=0.95, alpha=1,tdf=4,normCont=0,verbose=TRUE,returnAssignments=FALSE,coverageCutoff=1,minMutations=10,returnData=FALSE,init=NULL,maxiter=100, tol=0.0001)Arguments
x
vector. the number of reads/fragments containing the variant
m
vector. the number of reads/fragments covering the location with the variant (the coverage)
history
a matrix, based on the history of the region (see Details)
totalCopy
integer. the total number of copies of the tumor DNA for this region
method
what estimation method to use, one of ``fullMLE",``partialMLE",``Bayes"
type
type of region, either a gain or a CNLOH region
seqError
Probability of sequencing error
bootstrapCI
type of bootstrap confidence interval to calculate, one of ``parametric", ``nonparametric". If NULL, then the confidence interval is not calculated
B
number of bootstrap samples to take
CILevel
At what level the confidence intervals should be calculated.
alpha
parameter the Dirichlet prior of the bayesian estimate
tdf
parameter for the number of degrees of freedom for the t proposal density used in the bayesian estimate
normCont
the proportion of normal contamination, between 0 and 1.
verbose
logical. Whether to give additional warnings as the program is running.
returnAssignments
logical. Whether to re
coverageCutoff
minimum value for m[i]; any entries with m[i]
minMutations
minimum number of mutations required.
returnData
logical. Whether to return the input data, x and m, as a data.frame
init
initial value of multinomial parameter q passed to estimateQ.
maxiter
maximum number of iterations in calculation q.
tol
tolerance in the convergence of q