Fork me on GitHub"

# skbio.tree.TreeNode.create_caches

TreeNode.create_caches()

  Construct an internal lookups to facilitate searching by name

  State: Experimental as of 0.4.0.

  This method will not cache nodes in which the .name is None. This method will raise DuplicateNodeError if a name conflict in the tips is discovered, but will not raise if on internal nodes. This is because, in practice, the tips of a tree are required to be unique while no such requirement holds for internal nodes.

  Raises:

    DuplicateNodeError – The tip cache requires that names are unique (with the exception of names that are None)

  See also

  `invalidate_caches`, `cache_attr`, `find`