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

resolve_polytomy() error #759

Open
silviaprietob opened this issue Sep 18, 2024 · 1 comment
Open

resolve_polytomy() error #759

silviaprietob opened this issue Sep 18, 2024 · 1 comment

Comments

@silviaprietob
Copy link

silviaprietob commented Sep 18, 2024

Hello!

I am playing a bit with ete3 manually adding nodes and leaves to a pre-existing tree.
When adding a child (or a sister) I only seem to be able to do so by creating polytomies.
Therefore I am experimenting on how to solve them. I first tried the expand_polytomies() function, which produces the results I want (I just need to choose which topology I want) but does not output the name of the internal nodes of the tree.
I am now trying with resolve_polytomies(). First, I chose the node using the .get_common_ancestor() function and tried to use the function on the node, and second I am using the whole tree (root node), and in both cases I get the same error AttributeError: 'TreeNode' object has no attribute 'resolve_polytomies'.

Any hints on this?
Thank you!
Screenshot 2024-09-18 at 16 42 58

@dengzq1234
Copy link
Contributor

Hi Silvia,

it is probably it is called resolve_polytomy(). No plural ;)

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