alifestd_mark_sister_polars

alifestd_mark_sister_polars(phylogeny_df: DataFrame, *, mark_as: str = 'sister_id') DataFrame

Add column sister_id, containing the id of each node’s sibling.

The output column name can be changed via the mark_as parameter.

Root nodes will be marked with their own id.