write

Contents

write#

mudata.write(filename: PathLike, data: MuData | 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