mudata.read_h5ad#
- mudata.read_h5ad(filename, mod, backed=False)#
Read a modality from inside a .h5mu file or from a standalone .h5ad file (mod=None).
- Parameters:
Examples
>>> adata = read_h5ad("file.h5mu", "rna")
>>> adata = read_h5ad("rna.h5ad")
>>> with fsspec.open("https://example.com/file.h5mu") as f: ... adata = read_h5ad(f, "rna")
>>> with fsspec.open("https://example.com/rna.h5ad") as f: ... adata = read_h5ad(f)