alifestd_mark_ot_mrca_asexual
- alifestd_mark_ot_mrca_asexual(phylogeny_df: ~pandas.core.frame.DataFrame, mutate: bool = False, *, mark_as: str = 'ot_mrca', progress_wrap: ~typing.Callable = <function <lambda>>) DataFrame
Appends columns characterizing the Most Recent Common Ancestor (MRCA) of the entire extant population at each taxon’s origin_time.
The output column name prefix can be changed via the
mark_asparameter.The extant population is defined in terms of active lineages: any branch of the tree existing at an origin_time which contains at least one descendant at or after that time.
New Columns:
- ot_mrca_idint
The unique identifier of the MRCA for the population that was extant at this organism’s origin_time.
- ot_mrca_time_ofint or float
The origin_time of that MRCA.
- ot_mrca_time_sinceint or float
The duration elapsed between the MRCA’s origin_time and this taxon’s origin_time.
A chronological sort will be applied if phylogeny_df is not chronologically sorted. Dataframe reindexing (e.g., df.index) may 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.