cassiopeia.data.get_lca_characters#
- cassiopeia.data.get_lca_characters(vecs, missing_state_indicator)[source]#
Builds the character vector of the LCA of a list of character vectors, obeying Camin-Sokal Parsimony.
For each index in the reconstructed vector, imputes the non-missing character if only one of the constituent vectors has a missing value at that index, and imputes missing value if all have a missing value at that index.