mudata.read#
- mudata.read(filename, **kwargs)#
Read an
.h5muformatted HDF5 file or a single modality inside it.This function is designed to enhance I/O ease of use. It recognises the following formats of
filename:FILE.h5muFILE.h5adFILE.h5mu/MODALITYFILE.h5mu/mod/MODALITY
The last two variantes will read the modality
MODALITYand return anAnnDataobject.- Parameters:
filename – The file name or an fsspec object.
**kwargs – additional arguments to
read_h5ad()orread_h5mu().
Examples
>>> mdata = read("file.h5mu")
>>> adata = read("file.h5mu/rna")
>>> with fsspec.open("s3://bucket/file.h5mu") as f: ... mdata = read(f)