phylo2vec.save_newick

Contents

phylo2vec.save_newick#

phylo2vec.save_newick(vector_or_matrix: ndarray, filepath: str, labels: Dict[str, str] | None = None) None[source]#

Save a Phylo2Vec vector or matrix to Newick format into a file.

Parameters:
  • vector_or_matrix (numpy.ndarray) – Phylo2Vec vector (ndim == 1)/matrix (ndim == 2)

  • filepath (str) – Path to the output file

  • labels (Dict[str, str], optional) – A mapping of integer labels (as string) to taxon names, by default None