alifestd_ultrametricize

alifestd_ultrametricize(phylogeny_df: DataFrame, mutate: bool = False, *, method: Literal['extend'] = 'extend') DataFrame

Adjust tip origin_time values so all tips share the same time.

With method="extend", each tip’s origin_time is set to the maximum origin_time across all nodes. Internal node times are not modified.

Empty phylogenies are returned unchanged.

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.