alifestd_as_newick_asexual
- alifestd_as_newick_asexual(phylogeny_df: ~pandas.core.frame.DataFrame, mutate: bool = False, *, progress_wrap: ~typing.Callable = <function <lambda>>, sep_forest: str = '\n', taxon_label: str | None = None, unsafe_symbols: str = ";(), []:' \t\n") str
Convert phylogeny dataframe to Newick format.
A phylogeny with multiple roots (a forest) is rendered as one
;-terminated tree per root, joined bysep_forest.Parameters
- phylogeny_dfpd.DataFrame
Phylogeny dataframe in Alife standard format.
- mutatebool, optional
Allow in-place mutations of the input dataframe, by default False.
- progress_wraptyping.Callable, optional
Pass tqdm or equivalent to display a progress bar.
- sep_foreststr, default “n”
Separator placed between the
;-terminated trees of a forest.- taxon_labelstr, optional
Column to use for taxon labels, by default None.
- unsafe_symbolsstr, optional
Characters that force a taxon label to be single-quoted when present. Defaults to the Newick-reserved symbols (and whitespace).