make_tree#

make_tree(treestring=None, tip_names=None, format=None, underscore_unmunge=False)#

Initialises a tree.

Parameters:
treestring

a newick or xml formatted tree string

tip_names

a list of tip names, returns a “star” topology tree

formatstr

indicates treestring is either newick or xml formatted, default is newick

underscore_unmungebool

replace underscores with spaces in all names read, i.e. “sp_name” becomes “sp name”

Returns:
PhyloNode

Notes

Underscore unmunging is turned off by default, although it is part of the Newick format.