Rooted phylogenetic tree.
This class is used to represent the phylogenetic tree of a single locus. It is possible to print the tree in Newick format, to get the subtree spanned by some of the leaves, and to look at the tree nodes and edges.
Measure the length of the external branches.
Measure the length of the branches.
Recalculate the weight of some internal nodes.
Find nodes in subtree younger than a certain age
Create a subtree from a list of leaves.
Note
leaves can be a Python list or a numpy array of tree_key, or a vector_tree_key.
Print the tree in Newick format.
Note
You can pipe the output of this function to a cStingIO.StringIO for further manipulations.
Print a subtree in Newick format.
Note
You can pipe the output of this function to a cStingIO.StringIO for further manipulations.
Convert the tree into Biopython format
Nodes of the tree
Nodes of the tree
Leaves of the tree