anndata.AnnData.write_zarr#

AnnData.write_zarr(store, *, chunks=None, convert_strings_to_categoricals=True, consolidate_metadata=True)[source]#

Write a hierarchical Zarr array store.

Parameters:
store StoreLike

The filename, a MutableMapping, or a Zarr storage class.

chunks tuple[int, ...] | None

Chunk shape.

convert_strings_to_categoricals bool

Convert string columns to categorical.

consolidate_metadata bool

Whether to consolidate the metadata of the store after writing.