Open hoonghim opened 4 years ago
I have similar issue: input is from pyclone vi with WGS data. The cluster table 1 2 3 4 5 10 1805 203 116 1471
mutli_full_infer = infer.clonal.models(variants = multi_full, cluster.col.name = 'cluster',ccf.col.names = paste(c('A','B'),'ccf',sep=''), sample.groups = sample_groups,cancer.initiation.model='monoclonal', subclonal.test = 'bootstrap', subclonal.test.model = 'non-parametric',num.boots = 1000, founding.cluster = 1, cluster.center = 'mean', ignore.clusters = NULL, clone.colors = clone.colors, min.cluster.vaf = 0.01, sum.p = 0.05, alpha = 0.05)
Calculate VAF as CCF/2
Sample 1: Accf <-- Accf
Sample 2: Bccf <-- Bccf
Using monoclonal model
Note: all VAFs were divided by 100 to convert from percentage to proportion.
Generating non-parametric boostrap samples...
Accf : Enumerating clonal architectures...
Determining if cluster VAF is significantly positive...
Exluding clusters whose VAF < min.cluster.vaf=0.01
Non-positive VAF clusters:
Accf : 0 clonal architecture model(s) found
lab vaf color parent ancestors occupied free free.mean free.lower 4 4 0.42025 #cab2d6 NA - 0 0.42025 NA NA 5 5 0.27755 #ff99ff NA - 0 0.27755 NA NA 2 2 0.16680 #a6cee3 NA - 0 0.16680 NA NA 3 3 0.09810 #b2df8a NA - 0 0.09810 NA NA 1 1 0.03360 #cccccc NA - 0 0.03360 NA NA free.upper free.confident.level free.confident.level.non.negative p.value 4 NA NA NA NA 5 NA NA NA NA 2 NA NA NA NA 3 NA NA NA NA 1 NA NA NA NA num.subclones excluded 4 0 FALSE 5 0 FALSE 2 0 FALSE 3 0 FALSE 1 0 FALSE ERROR: No clonal models for sample: Accf Check data or remove this sample, then re-run.
Also check if founding.cluster was set correctly!
@hoonghim ,Hello hoonghim~, I met the same problems, how could you solved? Hope your help,it will most helpful for me!
@hoonghim ,Hello hoonghim~, I met the same problems, how could you solved? Hope your help,it will most helpful for me!
Hi, edceeyuchen
Unfortunately, I couldn't solve the issue. And the author didn't reply to my question (maybe he is busy...).
It's been about 4 years since I couldn't solve this problem.
I think it would be helpful to find papers that use ClonEval and provide their custom script in their code availability section.
Sorry for not being helpful.
Seunghoon
hello, try to use corrected VAF or CCF. See: https://github.com/hdng/clonevol/issues/21
OMG. I found something. @edceeyuchen
I got the same error, But I changed the options "monoclonal" to "polyclonal". It worked well!!
Dear Ha X. Dang,
Hello, I am trying to analyze clonal evolution using PyClone and ClonEvol.
I have two WES samples from one patient.
When I followed the manual, I could not infer clonal models.
Here is my final input file for ClonEvol (it is stored in pyCloneResultMeltDcastDf below).
clonevol_input.txt
This is the original outcome from PyClone
KRCMC01270.PyClone.loci_results.txt
Below is the code for utilizing ClonEvol #########################################################################
library(data.table) library(clonevol) library(reshape2) library(tidyr)
pyCloneResult <- fread(/Absolute path/KRCMC01270.PyClone.loci_results.txt")
To change the data frame structure - [mutation_id - sample_id - cluster_id - cellular_prevalence - cellular_prevalence_std - variant_allele_frequency] -> [mutation_id - cluster_id - sample1.vaf - sample2.vaf - sample1.cellular_prevalence - sample2.cellular_prevalence - sample1.cellular_prevalence_std - sample2.cellular_prevalence_std]
https://stackoverflow.com/questions/11608167/reshape-multiple-value-columns-to-wide-format
pyCloneResultMeltDf <- melt(pyCloneResultDf, id.vars=c("mutation_id", "cluster_id", "sample_id"))
pyCloneResultMeltDcastDf <- dcast(pyCloneResultMeltDf, cluster_id + mutation_id ~ sample_id + variable)
We have to start cluster id from 1, thus adding +1 to each cluster id (based on the clonevol manual)
To shorten vaf column names: "_variant_allele_frequency" -> "_vaf", "_cellular_prevalence" -> "_ccf", "---sampld-WBC" -> ""
To remove the normal information ([Tumor---Normal_vaf] -> [Tumor_vaf]
To change the - (minus) into _ (underbar)
We utilize sample names as vaf columns (multiply 100 to utilize %)
We multiply 100 to ccf column (from proportion to percentage)
Load CGC genes
cgc.file <- file.path("/BiO/Share/Database/COSMIC/grch37/v90/cancer_gene_census.csv") cgc.df = read.csv(cgc.file, as.is = T) cgc.genes = unique(cgc.df$Gene.Symbol)
Visualizing the variant clusters
>> Here is the result
KRCMC01270.PyClone.loci_results_jitter.pdf
Here is the result.![image](https://user-images.githubusercontent.com/42195952/66181163-b78fe380-e6aa-11e9-8cc2-aefff57ee594.png)
########################################################################
Inferring clonal evolution trees
########################################################################
Following is the error messages
Calculate VAF as CCF/2 Sample 1: KRCMC01270_T1_D_ccf <-- KRCMC01270_T1_D_ccf Sample 2: KRCMC01270_T2_D_ccf <-- KRCMC01270_T2_D_ccf Using monoclonal model Note: all VAFs were divided by 100 to convert from percentage to proportion. Generating non-parametric boostrap samples... KRCMC01270_T1_D_ccf : Enumerating clonal architectures... Determining if cluster VAF is significantly positive... Exluding clusters whose VAF < min.cluster.vaf=0.01 Non-positive VAF clusters: KRCMC01270_T1_D_ccf : 0 clonal architecture model(s) found
lab vaf color parent ancestors occupied free free.mean 4 4 0.4168754 #cab2d6 NA - 0 0.4168754 NA 5 5 0.3003359 #ff99ff NA - 0 0.3003359 NA 3 3 0.2887949 #b2df8a NA - 0 0.2887949 NA 9 9 0.2780810 #cf8d30 NA - 0 0.2780810 NA 6 6 0.2759430 #fdbf6f NA - 0 0.2759430 NA 2 2 0.2343575 #a6cee3 NA - 0 0.2343575 NA 8 8 0.2068802 #bbbb77 NA - 0 0.2068802 NA 7 7 0.1714719 #fb9a99 NA - 0 0.1714719 NA 1 1 0.1211232 #cccccc NA - 0 0.1211232 NA free.lower free.upper free.confident.level free.confident.level.non.negative 4 NA NA NA NA 5 NA NA NA NA 3 NA NA NA NA 9 NA NA NA NA 6 NA NA NA NA 2 NA NA NA NA 8 NA NA NA NA 7 NA NA NA NA 1 NA NA NA NA p.value num.subclones excluded 4 NA 0 FALSE 5 NA 0 FALSE 3 NA 0 FALSE 9 NA 0 FALSE 6 NA 0 FALSE 2 NA 0 FALSE 8 NA 0 FALSE 7 NA 0 FALSE 1 NA 0 FALSE ERROR: No clonal models for sample: KRCMC01270_T1_D_ccf Check data or remove this sample, then re-run.
Also check if founding.cluster was set correctly!
Could you give me any idea how to solve this problem?
I think PyClone result is not very good because most variants are in cluster 1
Thank you in advance for your time
Sincreley,
Seung-hoon