alifestd_join_roots

alifestd_join_roots(phylogeny_df: DataFrame, mutate: bool = False) DataFrame

Point all other roots to oldest root, measured by lowest origin_time (if available) or otherwise lowest id.

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.