mudata.write

Contents

mudata.write#

mudata.write(filename, data)#

Write a MuData or AnnData object 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

    The first two variants will write the AnnData object to the modality MODALITY of the existing FILE.h5mu file, same as write_h5ad().

Parameters: