Hi!
I have tried to test Clomial R package to infer the clonal structure of panel sequenced tumor samples but I am facing some problems when trying to run my samples with commands. I have tried to debug it but so far I have not been able to solve this. I believe that reason for this odd behavior is related to my low variant coverage (see example below). To confirm this, I am kindly requesting some technical support to help me overcome this problem. Package seems to be easy to use and I would be more than happy to utilize it in my research project.
> library(Clomial)
> set.seed(1)
> Dc = read.table(“sample_Dc.txt”, header=T, row.names=1)
> head(Dc)
sampleA sampleB
chr1:27056288 86 415
chr1:27057762 507 611
chr1:27088785 97 277
chr2:178107590 174 673
chr2:198257616 9 55
chr2:198267216 174 289
> Dt = read.table(“sample_Dt.txt”, header=T, row.names=1)
> head(Dt)
sampleA sampleB
chr1:27056288 12 0
chr1:27057762 45 0
chr1:27088785 6 0
chr2:178107590 16 0
chr2:198257616 0 8
chr2:198267216 18 0
> clomialResults = Clomial(Dc=Dc, Dt=Dt, maxIt=4, C=4, binomTryNum=2)
Error in optim(par = Wj, fn = objective, gr = gradient, lower = lowers, :
L-BFGS-B need finite values of ‘fn’
Error in optim(par = Wj, fn = objective, gr = gradient, lower = lowers, :
L-BFGS-B need finite values of ‘fn’
Error in optim(par = Wj, fn = objective, gr = gradient, lower = lowers, :
L-BFGS-B need finite values of ‘fn’
Error in optim(par = Wj, fn = objective, gr = gradient, lower = lowers, :
L-BFGS-B need finite values of ‘fn’
Error in optim(par = Wj, fn = objective, gr = gradient, lower = lowers, :
L-BFGS-B need finite values of ‘fn’
…
Warning messages;
1: In log(row.z.likelihoods[i, state]) : NaNs produced
2: In log(row.z.likelihoods[i, state]) : NaNs produced
3: In log(row.z.likelihoods[i, state]) : NaNs produced
4: In log(row.z.likelihoods[i, state]) : NaNs produced
5: In log(row.z.likelihoods[i, state]) : NaNs produced
> systemInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS release 6.9 (Final)
locale:
[1] LC_TYPE=en_US.UTF-8
[2] LC_NUMERIC=C
[3] LC_TIME=en_US:UTF-8
[4] LC_COLLATE=en_US:UTF-8
[5] LC_MONETARY=en_US:UTF-8
[6] LC_MESSAGES=en_US:UTF-8
[7] LC_PAPER=en_US:UTF-8
[8] LC_NAME=C
[9] LC_ADDRESS=C
[10] LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US:UTF-8
[12] LC_IDENTIFICATION=C
attached base packages:
[1] stats
[2] graphics
[3] qrDevices utils
[4] datasets
[5] methods
[6] base
other attached packages:
[1] Clomial_1.6.0 matrixStats_0.52.2
loaded via a namespace (and not attached):
[1] tools_3.2.2
Best regards,
Jouni
Thank you Habil for your response and a thorough explanation! I have tried Clomial with a few sample sets where the number of samples varies between 2 and 5 samples per patient case. I now see that the number of samples is a major problem in my case and I'm afraid that I am not able to increase the number of samples due to nature of our study.
I will keep trying to run Clomial with sample sets where the number of samples is highest. I also agree that the mutation ratio (allele frequency) of my mutation data is very low and we will try to filter the rarest mutations as you suggested and try to run Clomial with this input.
You're welcome! I am interested in Clomial performance if you will have a way to assess it.