Zarr models¶
biomero_schema.zarr ¶
Cross-service schemas for BIOMERO-managed Zarr data.
These models describe portable records exchanged by BIOMERO services. They do not implement canonical storage, OMERO access, workflow events, or Zarr I/O.
ZarrContractModel ¶
PixelIdentity ¶
CanonicalZarrSource ¶
Bases: ZarrContractModel
Managed locator for a verified canonical Zarr representation.
ManagedZarrNode ¶
ZarrLabelComponent ¶
Bases: ZarrContractModel
One logical label layer and, when inherited, its managed source.
source is absent only while the label pixels are stored locally in the
collection that owns this record. A workflow input snapshot always uses a
managed source because its reconstructed transfer artifact is temporary.
CanonicalPlateImage ¶
CanonicalPlateSource ¶
CanonicalPlateIndex ¶
CanonicalPlateImageRecord ¶
CanonicalPlateLabelRecord ¶
CanonicalInput ¶
CanonicalInputManifest ¶
ShallowImageNode ¶
ShallowLabelNode ¶
ShallowCollection ¶
Bases: ZarrContractModel
Portable scientific relationships in a BIOMERO shallow result.
This graph deliberately excludes managed roots, OMERO identifiers, pixel identities and workflow receipts. It is not RFC-8 metadata; adapters can project the graph to a standards representation when that representation is supported by the selected NGFF profile.
ShallowImageBinding ¶
ShallowLabelBinding ¶
ShallowBindings ¶
ShallowManifest ¶
Bases: ZarrContractModel
Versioned BIOMERO storage manifest for one shallow result.
ShallowPlateReference ¶
Bases: ZarrContractModel
Managed locator attached to a derived OMERO shallow Plate.
The compact Plate-level annotation indexes the authoritative collection manifest without repeating every per-image pixel identity in OMERO. Consumers must load and validate that manifest before reconstruction.
ZarrImportOptions ¶
ShallowZarrReference ¶
Bases: ZarrContractModel
Managed locator attached to one OMERO image or label-image projection.
The referenced collection remains the authority. Consumers must load its sidecar and verify that this image/label/source tuple is still present before materializing data.
to_annotation_values ¶
Encode the reference for an OMERO MapAnnotation value map.
from_annotation_values
classmethod
¶
Decode and validate an OMERO MapAnnotation value map.
from_manifest
classmethod
¶
from_manifest(manifest: ShallowManifest, *, storage_root: str, relative_path: str, image_node_path: str, label_node_paths: tuple[str, ...] | None = None) -> ShallowZarrReference
Create a projection reference and require collection membership.
RFC-8 draft projection¶
biomero_schema.rfc8 ¶
Projection boundary for the early OME-NGFF RFC-8 v1 draft.
RFC-8 v1 (2026-08) is not an adopted OME-NGFF specification. This module projects BIOMERO's format-independent collection graph into the draft shape so that alignment can be tested without making draft metadata authoritative or claiming that NGFF 0.4 / Zarr v2 stores are RFC-8 compliant.
Rfc8DraftPath ¶
project_rfc8_v1_draft ¶
project_rfc8_v1_draft(manifest: ShallowManifest, *, ome_version: str, image_paths: Mapping[str, Rfc8DraftPath], label_paths: Mapping[str, Rfc8DraftPath]) -> dict
Project a shallow graph into the RFC-8 v1 draft collection shape.
Callers provide paths because BIOMERO managed-storage bindings are not portable RFC paths. Production writers must not use this projection until the selected NGFF profile and referenced stores support the accepted collections specification.