Skip to content

Commit 567ceec

Browse files
committed
inlcuded start and end positions in cncf output
1 parent 6e70a92 commit 567ceec

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: facets
22
Type: Package
33
Title: Cellular Fraction and Copy Numbers from Tumor Sequencing
4-
Version: 0.3.29
4+
Version: 0.3.3
55
Date: 2016-01-11
66
Author: Venkatraman E. Seshan and Ronglai Shen
77
Maintainer: Venkatraman E. Seshan <seshanv@mskcc.org>

R/facets-emcncf.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

R/facets-emcncf2.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ emcncf2=function(x,trace=FALSE,unif=FALSE,min.nhet=15,maxiter=10,difcf=0.05,maxk
7171
rhov.em=rep(1,nseg)
7272
rho=NA
7373
gamma=2
74-
out1=data.frame(seg,cf.em=rhov.em,tcn.em=t.em, lcn.em=minor.em)
74+
#out1=data.frame(seg,cf.em=rhov.em,tcn.em=t.em, lcn.em=minor.em)
75+
out1=data.frame(seg[,1:9],start=startseq,end=endseq,cf.em=rhov.em,tcn.em=t.em,lcn.em=minor.em)
7576
emflags=paste(emflags,"Insufficient information. Likely diplod or purity too low.",sep=" ")
76-
out=list(purity=rho,ploidy=gamma,dipLogR=dipLogR,start=startseq,end=endseq,seglen=seglen,cncf=out1, emflags=emflags)
77+
out=list(purity=rho,ploidy=gamma,dipLogR=dipLogR,cncf=out1, emflags=emflags)
7778
return(out)
7879
stop("Insufficient information",call.=F)
7980
}
@@ -316,7 +317,7 @@ emcncf2=function(x,trace=FALSE,unif=FALSE,min.nhet=15,maxiter=10,difcf=0.05,maxk
316317

317318
if(rho<0.3){emflags=paste(emflags,"Low purity. Calls can be unreliable.",sep=" ")}
318319

319-
out=list(purity=rho,ploidy=gamma,dipLogR=dipLogR,start=startseq,end=endseq,seglen=seglen,cncf=out1, emflags=emflags)
320+
out=list(purity=rho,ploidy=gamma,dipLogR=dipLogR,cncf=out1, emflags=emflags)
320321

321322
return(out)
322323

0 commit comments

Comments
 (0)