phylo2vec.from_newick

Contents

phylo2vec.from_newick#

phylo2vec.from_newick(newick: str) ndarray[source]#

Convert a Newick string to a Phylo2Vec vector or matrix

Parameters:

newick (str) – Newick string for a tree

Returns:

Phylo2Vec matrix if branch lengths are present, otherwise a vector

Return type:

numpy.ndarray