Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optim.pml error #30

Open
thkuo opened this issue Sep 4, 2017 · 1 comment
Open

optim.pml error #30

thkuo opened this issue Sep 4, 2017 · 1 comment

Comments

@thkuo
Copy link

thkuo commented Sep 4, 2017

I just used the package to reconstruct a phylogeny but faced some problem.

dm<-dist.ml(seqs_phydat)
treeNJ <- NJ(dm)
fit <- pml(treeNJ, seqs_phydat, forceDNAtolower = FALSE)

There was no problem until the next step:

fit <- optim.pml(fit, model= 'GTR', rearrangement='NNI', optBf=TRUE)

The error was raised by this command:

optimize edge weights: -1650266 --> -1642474
Error in solve.default(e$vec) :
system is computationally singular: reciprocal condition number = 2.03377e-27

To solve the problem, which part would you suggest me to check first?

@KlausVigo
Copy link
Owner

Dear @thkuo
it looks like it happens during optimization of the GTR model. Maybe GTR is over-parametrized if you e.g. have many closely related sequences which contain only transitions you can't estimate a transition transversion ratio, but this is just a guess.
Can you please send me the output of traceback() after the crash as it often gives more information and if possible also the data (klaus dot schliep @ gmail dot com)?
Cheers,
Klaus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants