Python package for building, comparing, annotating, manipulating and visualising trees. It provides a comprehensive API and a collection of command line tools, including utilities to work with the NCBI taxonomy tree.
tree.get_distance(target, target2, topology_only=True) should (according to the documentation) return the number of nodes connecting target and target2. It does not correctly do this, as shown in this example:
tree = Tree("((A,B), C);")
node2 = tree.get_common_ancestor("A", "B")
tree.get_distance(target, target2, topology_only=True)
should (according to the documentation) return the number of nodes connectingtarget
andtarget2
. It does not correctly do this, as shown in this example:Then: