alifestd_calc_clade_lookback_origin_time_delta_asexual
- alifestd_calc_clade_lookback_origin_time_delta_asexual(phylogeny_df: DataFrame, lookback_origin_time_delta: float, mutate: bool = False) ndarray
Find ancestor ids of nodes that precede each phylogeny node by at least lookback_origin_time_delta branch distance.
The root node will be returned if the lookback distance exceeds available nodes.
Returns a numpy array of the same length as the input DataFrame, with array elements as the number of nodes in the clade that have the trait. Returned array matches row order of the input DataFrame.