skbio.core.tree.TreeNode.__str__

TreeNode.__str__()[source]

Returns string version of self, with names and distances

Returns:

str

Returns a Newick representation of the tree

Examples

>>> from skbio.core.tree import TreeNode
>>> tree = TreeNode.from_newick("((a,b)c);")
>>> str(tree)
'((a,b)c);'