Clomial(Dt = NULL, Dc = NULL, DcDtFile = NULL, C, doParal=FALSE,
outPrefix = NULL, binomTryNum = 1000, maxIt = 100, llCutoff = 0.001,
jobNamePrefix = "Bi", qstatWait = 2, fitBinomJobFile = NULL,
jobShare = 10, ignoredSample = c(), fliProb=0.05, conservative=TRUE,
doTalk=FALSE)
fliProb=0
. After the first EM iteration,
each entry of the matrix Mu
such as m
may change
to 1-m
with this probability. This probability decreases
on subsequent iterations.
models
,
which is a list of the length equal to binomTryNum where each element is
a trained model.
For each trained model, Mu
models the matrix of genotypes, where
rows and columns correspond to genomic loci and clones,
accordingly. Also, P
is the matrix of clonal frequency where rows
and columns correspond to clones and samples, accordingly.
The first column of P
corresponds to the normal clone.
The history of Mu
, P
, and the log-likelihood over
iterations is saved in lists Ps
, Mus
, and
Likelihoods
, accordingly.
C
,
the parameter binomTryNum should be increased because the
dimension of the search space grows linearly with C
.
Clomial
,
choose.best
, Clomial.iterate
,
compute.bic
, breastCancer
set.seed(1)
data(breastCancer)
Dc <- breastCancer$Dc
Dt <- breastCancer$Dt
ClomialResult <-Clomial(Dc=Dc,Dt=Dt,maxIt=20,C=4,binomTryNum=2)
chosen <- choose.best(models=ClomialResult$models)
M1 <- chosen$bestModel
print("Genotypes:")
round(M1$Mu)
print("Clone frequencies:")
M1$P
Run the code above in your browser using DataLab