@@ -60,9 +60,10 @@ emcncf=function(x,trace=FALSE,unif=FALSE,min.nhet=15,maxiter=10,eps=1e-3){
6060 rhov.em = rep(1 ,nseg )
6161 rho = NA
6262 gamma = 2
63- out1 = data.frame (seg ,cf.em = rhov.em ,tcn.em = t.em , lcn.em = minor.em )
63+ # out1=data.frame(seg,cf.em=rhov.em,tcn.em=t.em, lcn.em=minor.em)
64+ out1 = data.frame (seg [,1 : 9 ],start = startseq ,end = endseq ,cf.em = rhov.em ,tcn.em = t.em ,lcn.em = minor.em )
6465 emflags = paste(emflags ," Insufficient information. Likely diplod or purity too low." ,sep = " " )
65- out = list (purity = rho ,ploidy = gamma ,dipLogR = dipLogR ,start = startseq , end = endseq , seglen = seglen , cncf = out1 , emflags = emflags )
66+ out = list (purity = rho ,ploidy = gamma ,dipLogR = dipLogR ,cncf = out1 , emflags = emflags )
6667 return (out )
6768 stop(" Insufficient information" ,call. = F )
6869 }
@@ -460,11 +461,12 @@ emcncf=function(x,trace=FALSE,unif=FALSE,min.nhet=15,maxiter=10,eps=1e-3){
460461 if (any(normalX ))rhov.em [chr > = 23 ][normalX ]= 1
461462 }
462463
463- out1 = data.frame (seg ,cf.em = rhov.em ,tcn.em = t.em , lcn.em = minor.em )
464+ # out1=data.frame(seg,cf.em=rhov.em,tcn.em=t.em, lcn.em=minor.em)
465+ out1 = data.frame (seg [,1 : 9 ],start = startseq ,end = endseq ,cf.em = rhov.em ,tcn.em = t.em ,lcn.em = minor.em )
464466
465467 if (rho < 0.3 ){emflags = paste(emflags ," Low purity. Calls can be unreliable." ,sep = " " )}
466468
467- out = list (loglik = loglik ,purity = rho ,ploidy = gamma ,dipLogR = dipLogR ,start = startseq , end = endseq , seglen = seglen ,cncf = out1 , emflags = emflags )
469+ out = list (loglik = loglik ,purity = rho ,ploidy = gamma ,dipLogR = dipLogR ,seglen = seglen ,cncf = out1 , emflags = emflags )
468470
469471 return (out )
470472
0 commit comments