alifestd_mask_descendants_asexual
- alifestd_mask_descendants_asexual(phylogeny_df: DataFrame, mutate: bool = False, *, ancestor_mask: ndarray) DataFrame
For given ancestor nodes, create a mask identifying those nodes and all descendants.
Ancestral nodes are identified by ancestor_mask corresponding to rows in phylogeny_df.
The mask is returned as a new column alifestd_mask_descendants_asexual in the output DataFrame.
A topological sort will be applied if phylogeny_df is not topologically sorted. Dataframe reindexing (e.g., df.index) may be applied.
Input dataframe is not mutated by this operation unless mutate set True. If mutate set True, operation does not occur in place; still use return value to get transformed phylogeny dataframe.