write#

mudata.write(filename: os.PathLike, data: Union[mudata._core.mudata.MuData, anndata._core.anndata.AnnData])#

Write MuData or AnnData to an HDF5 file

This function is designed to enhance I/O ease of use. It recognises the following formats of filename:

  • for MuData
    • FILE.h5mu

  • for AnnData
    • FILE.h5mu/MODALITY

    • FILE.h5mu/mod/MODALITY

    • FILE.h5ad