alifestd_mark_sample_tips_clade_asexual

alifestd_mark_sample_tips_clade_asexual(phylogeny_df: DataFrame, n_sample: int, mutate: bool = False, seed: int | None = None, *, mark_as: str = 'alifestd_mark_sample_tips_clade_asexual') DataFrame

Mark tips belonging to a randomly sampled clade of at most n_sample tips.

Adds a boolean column mark_as indicating retained tips. Candidate clades are sampled proportionally to their size.

If n_sample is greater than the number of tips in the phylogeny, all tips are marked.

Only supports asexual phylogenies.