API reference

API reference#

Multimodal omics#

MuData([data, feature_types_names, as_view, ...])

Multimodal data object

Input/Output#

to_anndata(mdata, **kwargs)

Convert MuData to AnnData by concatenating modalities

to_mudata(adata, axis, by)

Convert AnnData to MuData by splitting it along obs or var

concat(mdatas, *[, join, merge, uns_merge, ...])

Concatenates MuData objects.

read(filename, **kwargs)

Read MuData object from HDF5 file or AnnData object (a single modality) inside it

read_h5ad(filename, mod[, backed])

Read AnnData object from inside a .h5mu file or from a standalone .h5ad file (mod=None)

read_anndata(filename, mod[, backed])

Read AnnData object from inside a .h5mu file or from a standalone .h5ad file (mod=None)

read_h5mu(filename[, backed])

Read MuData object from HDF5 file

read_zarr(store)

Read from a hierarchical Zarr array store.

write(filename, data)

Write MuData or AnnData to an HDF5 file

write_h5ad(filename, mod, data)

Write AnnData object to the HDF5 file with a MuData container

write_anndata(filename, mod, data)

Write AnnData object to the HDF5 file with a MuData container

write_h5mu(filename, mdata, **kwargs)

Write MuData object to the HDF5 file

write_zarr(store, data[, chunks, write_data])

Write MuData or AnnData object to the Zarr store