alifestd_calc_mrca_id_vector_asexual
- alifestd_calc_mrca_id_vector_asexual(phylogeny_df: ~pandas.core.frame.DataFrame, mutate: bool = False, *, target_id: int, progress_wrap: ~typing.Callable = <function <lambda>>) ndarray
Calculate the Most Recent Common Ancestor (MRCA) taxon id for target_id and each other taxon.
Taxa sharing no common ancestor will have MRCA id -1.
Pass tqdm or equivalent as progress_wrap to display a progress bar.
Input dataframe is not mutated by this operation unless mutate set True.