phylo2vec.load_newick#
- phylo2vec.load_newick(filepath_or_buffer: str) ndarray[source]#
Read a Newick string/file into a Phylo2Vec vector or matrix.
- Parameters:
filepath_or_buffer (str or file-like object) – File path or string containing a Newick-formatted tree
- Returns:
A vector (ndim == 1) or matrix (ndim == 2) which satisfies Phylo2Vec constraints
- Return type:
numpy.ndarray