anndata.AnnData.write

AnnData.write(filename=None, compression='gzip', compression_opts=None)

Write .h5ad-formatted hdf5 file and close a potential backing file.

Parameters:
filename : Optional[PathLike]

Filename of data file. Defaults to backing file.

compression : None or {'gzip', 'lzf'}

See the h5py filter pipeline.

compression_opts : Union[int, Any, None]

See the h5py filter pipeline.