alifestd_collapse_trunk_asexual
- alifestd_collapse_trunk_asexual(phylogeny_df: DataFrame, mutate: bool = False) DataFrame
Collapse entries masked by is_trunk column, keeping only the oldest root.
Masked entries must be contiguous, meaning that no non-trunk entry can be an ancestor of a trunk entry.
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.
See Also
alifestd_delete_trunk_asexual