ivy.chars.catpars module¶
-
ivy.chars.catpars.
ancstates
(tree, chardata, stepmatrix)[source]¶ Return parsimony ancestral states
Parameters: - tree (Node) – Root of tree
- chardata (Dict) – Dict of tip labels mapping to character states
- stepmatrix (np.array) – Step matrix. Create default step matrix with default_costmatrix().
Returns: Internal nodes mapping to reconstructed states.
Return type: