alifestd_make_comb_polars

alifestd_make_comb_polars(n_leaves: int) DataFrame

Build a comb/caterpillar tree with n_leaves leaves.

Parameters

n_leavesint

Number of leaf nodes in the resulting tree.

Returns

pl.DataFrame

Phylogeny dataframe with ‘id’ and ‘ancestor_id’ columns.