alifestd_to_iplotx_pandas

alifestd_to_iplotx_pandas(phylogeny_df: DataFrame, mutate: bool = False) AlifestdIplotxShimPandas

Wrap a pandas phylogeny DataFrame for use with iplotx.

Parameters

phylogeny_dfpd.DataFrame

Asexual phylogeny in alife standard format with contiguous ids and topologically sorted rows.

mutatebool, default False

If True, allow modification of the input dataframe.

Returns

AlifestdIplotxShimPandas

An iplotx-compatible tree provider that can be passed directly to iplotx.tree().