skbio.tree.TreeNode.__repr__

TreeNode.__repr__()[source]

Returns summary of the tree

Returns:

str

A summary of this node and all descendants

Notes

This method returns the name of the node and a count of tips and the number of internal nodes in the tree

Examples

>>> from six import StringIO
>>> from skbio import TreeNode
>>> tree = TreeNode.read(StringIO("((a,b)c, d)root;"))
>>> repr(tree)
'<TreeNode, name: root, internal node count: 1, tips count: 3>'