alifestd_mark_num_leaves_sibling_asexual
- alifestd_mark_num_leaves_sibling_asexual(phylogeny_df: DataFrame, mutate: bool = False, *, mark_as: str = 'num_leaves_sibling') DataFrame
Mark the number of leaves descendant from each node’s siblings.
The output column name can be changed via the
mark_asparameter.Nodes with no siblings (e.g., root nodes) will have value 0 marked.
Parameters
- phylogeny_dfpd.DataFrame
Alife standard DataFrame containing the phylogenetic relationships.
- mutatebool, optional
If True, modify the input DataFrame in place. Default is False.
Returns
- pd.DataFrame
Phylogeny DataFrame with an additional column “num_leaves_sibling”