phylo2vec.load#
- phylo2vec.load(filepath_or_buffer: str | TextIOBase, delimiter: str = ',') ndarray[source]#
Read a text/csv file into a Phylo2Vec vector or matrix.
- Parameters:
filepath (str, path object or file-like object) – File path to read or StringIO object containing the data.
delimiter (str, optional) – Character used to separate values, by default “,”
- Returns:
arr – A vector (ndim == 1) or matrix (ndim == 2) which satisfies Phylo2Vec constraints
- Return type:
numpy.ndarray