anndata.read_text

anndata.read_text(filename, delimiter=None, first_column_names=None, dtype='float32')

Read .txt, .tab, .data (text) file.

Same as read_csv() but with default delimiter None.

Parameters:
filename : PathLike, Iterator[str]

Data file, filename or stream.

delimiter : Optional[str]

Delimiter that separates data within text file. If None, will split at arbitrary number of white spaces, which is different from enforcing splitting at single white space ‘ ‘.

first_column_names : Optional[bool]

Assume the first column stores row names.

dtype : str

Numpy data type.

Return type:

AnnData