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
# NB: This loses the length of the original branch
newroot=parent.clades[0]
newroot.branch_length=None
parent=self.root=newroot
If this really is a problem, then maybe we can add a new keyword argument to the function to disable the newroot.branch_length = None part, however, I'm not sure if any other code in Bio.Phylo relies on the root having no length. Any thoughts on this?
Setup
I am reporting a problem with Biopython version, Python version, and operating
system as follows:
Expected behaviour
running
prune
function on diploid node of a tree that looks like thisshould result in
Actual behaviour
the pruned tree looks like this
The branch length for node
internal_3
is set to None in the pruned treeSteps to reproduce
the python code is as follows:
The text was updated successfully, but these errors were encountered: