You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if anyone encountered this error while running the "Appendix 2: Standard scripts for amino acid analysis". At the last line of code, I sometimes get this error working with exact same sequences and sometimes not.
What I do is run the script a couple of times and find the one that turns out fine which is a waste of resources, not ideal for automatization of a larger script and also hard to reproduce, unfortunately. Thanks in advance
Here is the truncated code for ease of access.
library(phangorn)
file="myfile"
dat = read.phyDat(file, type = "AA")
dm = dist.ml(dat, model="JTT")
tree = NJ(dm)
# parallel will only work safely from command line
# and not at all windows
(mt <- modelTest(dat, model=c("JTT", "LG", "WAG"),
multicore=TRUE))
# run all available amino acid models
(mt <- modelTest(dat, model="all", multicore=TRUE))
fitStart = eval(get(mt$Model[which.min(mt$BIC)], env), env)
fitNJ = pml(tree, dat, model="JTT", k=4, inv=.2)
fit = optim.pml(fitNJ, rearrangement = "stochastic",
optInv=TRUE, optGamma=TRUE)
fit
bs = bootstrap.pml(fit, bs=100, optNni=TRUE, multicore=TRUE) ### Where the error occurs
optimize topology: -56831.99 --> -56831.99
0
optimize edge weights: -56831.99 --> -56831.99
Error in FUN(X[[i]], ...) : one tree has a different number of tips
Calls: ebiTreeCreate ... bootstrap.pml -> .compressTipLabel -> lapply -> FUN
Execution halted
~
I was wondering if anyone encountered this error while running the "Appendix 2: Standard scripts for amino acid analysis". At the last line of code, I sometimes get this error working with exact same sequences and sometimes not.
What I do is run the script a couple of times and find the one that turns out fine which is a waste of resources, not ideal for automatization of a larger script and also hard to reproduce, unfortunately. Thanks in advance
Here is the truncated code for ease of access.
optimize topology: -56831.99 --> -56831.99
0
optimize edge weights: -56831.99 --> -56831.99
Error in FUN(X[[i]], ...) : one tree has a different number of tips
Calls: ebiTreeCreate ... bootstrap.pml -> .compressTipLabel -> lapply -> FUN
Execution halted
~
The text was updated successfully, but these errors were encountered: