Closed CuriusScientist closed 4 years ago
For what it's worth, I ended up reverting locally the commit which introduced this change as I was not able to interpret the plots anymore.
Hi @CuriusScientist and @lbeltrame
Thank you for bringing up this issue. I had introduced a problem with the plotting in a recent commit. It only affects low tumor fraction samples. Briefly, the copy number correction step was being applied to low tumor fraction samples. I can provide a quick fix here to make sure not to do that for cases/solutions having < 0.05 TF.
Sorry for the inconvenience.
PS. I am only going to do minor fixes/patches on this repo. Most of the new features and development will pushed to https://github.com/GavinHaLab/ichorCNA
@gavinha You might want to edit the README in this repository pointing to the new one just in case.
@gavinha thanks for that. have downloaded the latest version and will test it now
Dear All,
I ran the samples through ichorCNA after tuning parameters from https://github.com/broadinstitute/ichorCNA/wiki/Parameter-tuning-and-settings using the following script
Rscript runIchorCNA.R \ --id tumor_sample \ --WIG tumor.wig \ --ploidy "c(2)" \ --normal "c(0.95, 0.99, 0.995, 0.999,0.9999)" \ --maxCN 4 \ --gcWig gc_hg19_1000kb.wig \ --mapWig map_hg19_1000kb.wig \ --centromere GRCh37.p13_centromere_UCSC-gapTable.txt \ --normalPanel HD_ULP_PoN_1Mb_median_normAutosome_mapScoreFiltered_median.rds \ --chrs "c(1:22)" \ --chrTrain "c(1:22)" \ --estimateScPrevalence FALSE \ --scStates "c()" \ --txnE 0.9999 \ --txnStrength 10000 --outDir ./
From the wiki https://github.com/broadinstitute/ichorCNA/wiki/Output "The colour of each data point corresponds to the estimated integer copy number. The colour mapping is:
1 copy = dark green 2 copies = blue 3 copies = brown 4+ copies = red
The segment medians are also plotted as horizontal lines with the same colour as the event itself if it is predicted to be clonal. A light green segment represents a subclonal prediction. The estimated tumor fraction and ploidy is printed at the top of the plot as well."
But nothing is mentioned about light green dots.
This problem is also discussed on GitHub page "Confusion about light green or dark green lines/dots #43" but never got resolved
Moreover, I am also not able to understand why in a single segment I can see more than one colour dots showing that same segment has both normal and amplification or deletion
The segment file looks like this
and params.txt file looks like this
Gender: unknown Tumor Fraction: 0.0138 Ploidy: 2.28 Subclone Fraction: NA Fraction Genome Subclonal: 0 Fraction CNA Subclonal: 0 Coverage: NA ChrY coverage fraction: NA Student's t mean: -0.0089, -0.0019, 0.0049, 0.012 Student's t precision: 1000, 910, 920, 1200 Gamma Rate Init: 0.0011 GC-Map correction MAD: 0.06234
init n_est phi_est BIC Frac_genome_subclonal Frac_CNA_subclonal loglik n0.95-p2 0.96 1.983 NA 0 0 3751 n0.99-p2 0.98 2.126 NA 0 0 3886 n0.995-p2 0.98 2.208 NA 0 0 3916 n0.999-p2 0.99 2.28 NA 0 0 3936 n0.9999-p2 0.99 2.283 NA 0 0 3927
In my understanding, blue dots should be centred across 0, brown dots should be centred across 0.57, brown dots should be centred across 1 and green dots should be centred across -1
One copy gain = log2(3/2) = 0.57 (3 copies vs. 2 copies in reference)
One-copy loss = log2(1/2) = -1
Two-copy gain = log2(4/2) = 1
No loss or gain= log2(2/2) = 0
but I see a different behaviour
Lastly, in some other dataset, I get ploidy as 3 while I am using --ploidy "c(2)". Can someone throw light on that?
P.S. I have raised the issue at Google groups https://groups.google.com/a/broadinstitute.org/forum/?fromgroups&hl=en#!topic/ichorcna/wYddw8Nwegs but the group is inactive and so after waiting for a long time I am posting it here