skbio.io
skbio.sequence
skbio.alignment
skbio.tree
skbio.workflow
skbio.diversity
skbio.stats
skbio.util
TreeNode.
observed_node_counts
Returns counts of node observations from counts of tip observations
State: Experimental as of 0.4.1.
tip_counts : dict of ints
Counts of observations of tips. Keys correspond to tip names in self, and counts are unsigned ints.
self
dict
Counts of observations of nodes. Keys correspond to node names (internal nodes or tips), and counts are unsigned ints.
ValueError
If a count less than one is observed.
MissingNodeError
If a count is provided for a tip not in the tree, or for an internal node.