skbio.tree.TreeNode.__str__

TreeNode.__str__()[source]

Returns string version of self, with names and distances

Returns:

str

Returns a Newick representation of the tree

See also

read, write

Examples

>>> from six import StringIO
>>> from skbio import TreeNode
>>> tree = TreeNode.read(StringIO("((a,b)c);"))
>>> str(tree)
'((a,b)c);\n'