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
corr1 =sum(len(n.children) -2for n in origin_t.traverse() iflen(n.children) >2)
corr2 =sum(len(n.children) -2for n in target_t.traverse() iflen(n.children) >2)
I think that the root node should be handled specially in the polytomy size correction when using unrooted_trees=True.
Otherwise, despite having a tree that is fully bifurcating, except at the root because of the convention for unrooted trees, you get the following error:
TreeError: 'Both trees contain polytomies! Try expand_polytomies=True instead'
I think that an update could be to check that the root node degree is greater than 3 when unrooted_trees is activated.
Best,
The text was updated successfully, but these errors were encountered:
Hi,
I am currently using the version Ete3 but the current robinson_foulds source code from this repository is identical:
ete/ete4/core/tree.pyx
Lines 1286 to 1288 in 0f986e0
I think that the root node should be handled specially in the polytomy size correction when using
unrooted_trees=True
.Otherwise, despite having a tree that is fully bifurcating, except at the root because of the convention for unrooted trees, you get the following error:
I think that an update could be to check that the root node degree is greater than 3 when
unrooted_trees
is activated.Best,
The text was updated successfully, but these errors were encountered: