alifestd_is_working_format_polars

alifestd_is_working_format_polars(phylogeny_df: DataFrame) bool

Test if phylogeny_df is an asexual phylogeny in working format.

The working format is a dataframe with the following properties:
  • contains an integer datatype ancestor_id column,

  • topologically sorted (organisms appear after all ancestors), and

  • contiguous ids (organisms’ ids correspond to row number).