-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Hi, this is my first time posting a question here in the github forums. I would like to state that I'm relatively new in using R and in particular using it to analyze DNA sequences.
I was trying to generate a phylogenetic tree for my phyloseq object, employing the following script:
treeNJ <- NJ(dm)
fit = pml(treeNJ, data=phangAlign)
fitGTR <- update(fit, k=4, inv=0.2)
fitGTR <- optim.pml(fitGTR, model="GTR", optInv=TRUE, optGamma=TRUE,
rearrangement = "stochastic", control = pml.control(trace = 0))
Everthing was running OK, until the final line of:
fitGTR <- optim.pml(fitGTR, model="GTR", optInv=TRUE, optGamma=TRUE,
rearrangement = "stochastic", control = pml.control(trace = 0))
This is were I recieved the following error message:
"Error in if (((ll1 - ll)/ll < control$eps) && rounds > 2) opti <- FALSE :
missing value where TRUE/FALSE needed
In addition: There were 50 or more warnings (use warnings() to see the first 50)
#The error messages are:
1: In optimize(f = fn, interval = c(0.1, 500), lower = 0.1, ... :
NA/Inf replaced by maximum positive value"
What does it mean and what can I do about it? I've been stuck on this issue for a couples of days now and haven't been able to solve it. Can anyone help me out with this? Other users have stated similar issues, but their solutions haven't worked for me.
I'm using a virtual machine with the following specs:
sessionInfo():
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)
RAM: 125 GB
HDD: 180GB
Matrix products: default
locale:
[1] LC_COLLATE=Spanish_Chile.1252
[2] LC_CTYPE=Spanish_Chile.1252
[3] LC_MONETARY=Spanish_Chile.1252
[4] LC_NUMERIC=C
[5] LC_TIME=Spanish_Chile.1252
attached base packages:
[1] grid stats4 parallel stats graphics
[6] grDevices utils datasets methods base
other attached packages:
[1] knitr_1.29 SummarizedExperiment_1.18.1
[3] DelayedArray_0.14.0 matrixStats_0.56.0
[5] Biobase_2.48.0 GenomicRanges_1.40.0
[7] GenomeInfoDb_1.24.2 BiocManager_1.30.10
[9] phangorn_2.5.5 ape_5.4
[11] Rcpp_1.0.5 xtable_1.8-4
[13] gridExtra_2.3 plyr_1.8.6
[15] XLConnect_1.0.1 Biostrings_2.56.0
[17] XVector_0.28.0 IRanges_2.22.2
[19] S4Vectors_0.26.1 BiocGenerics_0.34.0
loaded via a namespace (and not attached):
[1] lattice_0.20-41 foreach_1.5.0
[3] zlibbioc_1.34.0 rstudioapi_0.11
[5] data.table_1.12.8 Matrix_1.2-18
[7] BiocParallel_1.22.0 stringr_1.4.0
[9] igraph_1.2.5 RCurl_1.98-1.2
[11] bit_1.1-15.2 tinytex_0.24
[13] compiler_4.0.2 xfun_0.15
[15] pkgconfig_2.0.3 biomformat_1.16.0
[17] GenomeInfoDbData_1.2.3 quadprog_1.5-8
[19] codetools_0.2-16 XML_3.99-0.4
[21] crayon_1.3.4 MASS_7.3-51.6
[23] bitops_1.0-6 nlme_3.1-148
[25] jsonlite_1.7.0 gtable_0.3.0
[27] DBI_1.1.0 magrittr_1.5
[29] stringi_1.4.6 reshape2_1.4.4
[31] fastmatch_1.1-0 Rhdf5lib_1.10.0
[33] iterators_1.0.12 tools_4.0.2
[35] ade4_1.7-15 bit64_0.9-7
[37] rhdf5_2.32.2 cluster_2.1.0
[39] rJava_0.9-13
Thanks,