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
When I try with format=0 and reroot from X, I receive the right tree with the right branch support values but format=0 sets 1 to each branch support values.
Hi,
I think this is the correct behaviour since with format=1 the values are not interpreted as support values but node names and therefore should be moved on rerooting, and this also explains why it sets all support values to 1.
But I still think this is a problem because phylogenies with multiple support values, such as Ultrafast Bootstrap and SH-aLRT from IQ-Tree, can only be read with format=1 and when rerooting them the values are moved.
One workaround I have seen is to first loop over the tree and copy the value of the node name attribute to the node support attribute.
for n in t.traverse():
n.support = float(n.name)
For multiple types of support values, you can split the string of support values and keep one of the values
for n in t.traverse():
n.support = float(n.name.split("/")[0])
Hello,
I am trying to reroot the Newick tree but each format has some problems.
When I try with format=1 and reroot from X, I receive the right tree with misplaced branch support values.
(X:0.5,(B:1,(A:1,((C:1,D:1)1:1,E:1):1)2:1)3:0.5)R:0;
When I try with format=0 and reroot from X, I receive the right tree with the right branch support values but format=0 sets 1 to each branch support values.
(X:0.5,(B:1,(A:1,((C:1,D:1)1:1,E:1)2:1)3:1)1:0.5)1:0;
And I just want to know if am i doing something wrong or if is there any other workaround solution for rerooting with format = 1?
The text was updated successfully, but these errors were encountered: