seqdata.to_zarr

seqdata.to_zarr(sdata, store, chunk_store=None, mode=None, synchronizer=None, group=None, encoding=None, compute=True, consolidated=None, append_dim=None, region=None, safe_chunks=True, storage_options=None, zarr_version=None)

Write a xarray object to disk as a Zarr store.

Makes use of the to_zarr method of xarray objects, but modifies the encoding for cases where the chunking is not uniform.

Parameters:
  • sdata (xr.Dataset) – SeqData object to write to disk.

  • store (str, Path) – Path to the SeqData object.

  • chunk_store ({None, MutableMapping, str, Path}, optional) – Chunk store to use, by default None

  • mode ({None, "w", "w-", "a", "r+"}, optional) – Mode to use, by default None

  • synchronizer (None, optional) – Synchronizer to use, by default None

  • group (str, optional) – Name of the group to open, by default None

  • encoding (dict, optional) – Encoding to use, by default None

  • compute (bool, optional) – Whether to compute, by default True

  • consolidated (bool, optional) – Whether to consolidate metadata, by default None

  • append_dim ({None, str}, optional) – Name of the append dimension, by default None

  • region (dict, optional) – Region to use, by default None

  • safe_chunks (bool, optional) – Whether to use safe chunks, by default True

  • storage_options (dict, optional) – Storage options to use, by default None

  • zarr_version (int, optional) – Zarr version to use, by default None

Return type:

None