mudata.write_zarr

Contents

mudata.write_zarr#

mudata.write_zarr(store, data, chunks=None, write_data=True, **kwargs)#

Write a MuData or AnnData object to the Zarr store.

Parameters:
  • store (MutableMapping | str | PathLike | Store) – Thie filename or a Zarr store.

  • chunks (tuple[int, ...] | None (default: None)) – The chunk shape.

  • write_data (bool (default: True)) – Whether to write the data (the X matrices) for the modalities. If False, only the metadata (everything except :attr:~anndata.AnnData.X`) will be written.

  • **kwargs – Additional arguments to zarr.create_array().