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
]Union
[PathLike
,Iterator
[str
]] Data file, filename or stream.
- delimiter :
str
|None
Optional
[str
] (default:None
) 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 :
bool
|None
Optional
[bool
] (default:None
) Assume the first column stores row names.
- dtype :
str
(default:'float32'
) Numpy data type.
- filename :
- Return type: