OME-Zarr Materialization and Migration Workflow
Implemented workflow
The ingestion path for Navigate experiment.yml materializes source data
into a canonical OME-Zarr v3 store and preserves ClearEx’s internal execution
arrays alongside public OME image collections.
Load and normalize experiment metadata from
experiment.yml.Resolve source data path from acquisition outputs.
Open source directly with format-specific loaders:
TIFF/OME-TIFF
H5/HDF5
generic Zarr
Navigate BDV N5 through
experiment.ymlplus companion XMLNumPy
.npy/.npzcanonical OME-Zarr
Navigate BDV
.n5is read through TensorStore-backed access tosetup*/timepoint*/s0datasets. Raw Zarr API access to.n5is not the supported runtime path onzarr>=3.Infer and normalize axis order, coercing to canonical
(t, p, c, z, y, x)for internal execution.Materialize the internal source array at
clearex/runtime_cache/source/datausing GUI-configured chunks.Build internal source pyramid levels at
clearex/runtime_cache/source/data_pyramid/level_<n>according to GUI pyramid factors.Persist namespaced store metadata in
clearex/metadata.Compute multiposition translations from Navigate stage rows plus the effective spatial calibration.
Publish the public root OME HCS source collection
A/1/<field>/<level>.
Canonical store path behavior
Existing canonical OME-Zarr stores are reused in place.
Non-canonical inputs materialize to
data_store.ome.zarrbesideexperiment.yml.Legacy ClearEx
.zarr/.n5stores are not reused as canonical inputs directly. They must be migrated.
Public vs internal layout
Public OME contract
Root source image collection:
A/1/<field>/<level>Public image-analysis collections:
results/<analysis>/latest
Internal ClearEx contract
Source runtime array:
clearex/runtime_cache/source/dataSource runtime pyramid:
clearex/runtime_cache/source/data_pyramid/level_*Image-analysis runtime outputs:
clearex/runtime_cache/results/<analysis>/latest/dataNon-image artifacts and metadata:
clearex/results/<analysis>/latestProvenance:
clearex/provenance/runs/<run_id>
Legacy-store migration
Use the explicit migration command to upgrade pre-OME ClearEx stores:
clearex --migrate-store /path/to/legacy_store.zarr
Optional destination and overwrite flags are available:
clearex --migrate-store /path/to/legacy_store.n5 \
--migrate-output /path/to/migrated_store.ome.zarr \
--migrate-overwrite
Migration copies legacy source/runtime arrays into the new namespaced layout, copies provenance and auxiliary analysis artifacts, and republishes public OME image collections.
Verification expectations
When this workflow changes, validation should cover:
canonical path selection to
data_store.ome.zarr,internal source-array and pyramid completeness,
public OME root metadata and HCS publication,
preservation of spatial calibration / position translations,
migration of legacy source data and representative analysis outputs,
OME-aware reader selection of the public collection.