alifestd_add_inner_niblings_asexual
- alifestd_add_inner_niblings_asexual(phylogeny_df: DataFrame, mutate: bool = False) DataFrame
For all inner nodes, add a subtending unifurcation, adding a “nibling” leaf as the child of the knuckle.
Here, “nibling” refers to a leaf that is a neice/nephew of the inner node. If not topologically sorted, a topological sort will 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.