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
dendropy.utility.error.UltrametricityError when using TACT #230
Comments
ape, DendroPy, and phyx all compute ultrametricity in different ways. I disagree with DendroPy's approach since it looks at every single node in the tree and raises an error if the ages of the left and right children of the parent node differ by some threshold (set to 1e-5). I think ape looks at the relative maximum difference in root-to-tip distance and phyx looks at the variance in root-to-tip distances (which ape used to use). I'll probably write something in tact to address this but for now you can use |
Thanks for your respond @jonchang ! I have tried with
But no worries, I'm looking forward to your update. Thank you so much! |
Miao, can you see if #231 fixes the ultrametricity check? |
Hi, I'm trying now. Should I re-install tact and rerun again? I'm on a Ubuntu machine. I have upgraded TACT:
And reran it, and the issue remains. Miao |
You'll need to install it from the branch, like so:
|
Hi, Thanks for the tip! I have upgraded the tact. Now the error message is new, said:
However, phyx said the tree is ultrametric:
Thanks! Miao |
Can you email me the tree? |
Yes, I send the data to you at "me@jonathanchang.org" [not sure about the email address :P]. Thanks! Miao |
Tree is not ultrametric: (('Platea latifolia', 325.0477049999999), ('Ginkgo biloba', 325.05001799999997)) I think I'll solve this by just letting you set an ultrametricity precision. |
Ok, try |
Hey @jonchang , I have done as what you instructed please let me know if I did anything wrong here, the program has not finished with error msg:
|
Try with a higher number. 1e-6 implies six figs of similarity, so you'd need something like 1e-3 or 1e-2. |
Thanks for the detailed instruction @jonchang !! it worked and finished this time. 👍 |
This fix is now released as part of tact 0.4.0: https://github.com/jonchang/tact/releases/tag/v0.4.0 |
Hi @jonchang ,
I'm trying to use TACT adding some species to GBMB.tre from Smith and Brown (2018). The backbone is fine, which was confirmed by phyx.
When I run TACT with
tact_add_taxa
function, it gives error as below:I suspect it could be issues from dendropy, not really TACT, but would like to hear from your advice first. Thank you!
Happy to mail you my tree file and taxonomy data if you have time to check it.
Cheers,
Miao
The text was updated successfully, but these errors were encountered: