Skip to content
New issue

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

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

Already on GitHub? # to your account

method 'get_common_ancestor' when nodes being compared are equal #398

Closed
arivers opened this issue Mar 27, 2019 · 0 comments · Fixed by #452
Closed

method 'get_common_ancestor' when nodes being compared are equal #398

arivers opened this issue Mar 27, 2019 · 0 comments · Fixed by #452
Assignees
Milestone

Comments

@arivers
Copy link

arivers commented Mar 27, 2019

if get_common_ancestor is called with two identical trees the method returns the highest common ancestor rather than the lowest common ancestor.

ncbitree.get_common_ancestor([str(9606), str(9606)])
PhyloTree node '1' (-0x7ffffd502bce2abd)

As a workaround I put a check in before calling the method, but the result was unexpected.

@jhcepas jhcepas added this to the ETE v4.0 milestone Mar 28, 2020
dengzq1234 added a commit to dengzq1234/ete that referenced this issue Mar 29, 2020
jhcepas added a commit that referenced this issue Mar 30, 2020
returns itself if same node is provided as only argument to get_common_ancestor. Fixes #398
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants