alifestd_calc_clade_trait_count_asexual
- alifestd_calc_clade_trait_count_asexual(phylogeny_df: DataFrame, mutate: bool = False, *, trait_mask: ndarray) ndarray
Count how many nodes within each clade have a given trait.
Clades are defined as a node and all descendant nodes.
Returns a numpy array of the same length as the input DataFrame, with array elements as the number of nodes in the clade that have the trait. Returned array matches row order of the input DataFrame.