BIOMERO OME-Zarr Viewer
BIOMERO OME-Zarr Viewer is a read-only OMERO.web extension for opening physical OME-Zarr stores that are registered in OMERO. It supports multichannel images, integer segmentation labels, Z stacks, and HCS plates.
The viewer does not import data or convert ordinary OMERO images to OME-Zarr. Use BIOMERO, or another compatible importer, to create and register the OME-Zarr data first.
Install into OMERO.web
The viewer uses the Nginx that already fronts the selected OMERO deployment. It does not require a second proxy:
omero-deployment-kitinstructions: extend the host Nginx installed by its Ansible role;NL-BIOMEROinstructions: extend the existing Nginx container in its production SSL scenario.
Both deployment paths install the same wheel and
docker/90-biomero-zarr-viewer.omero
configuration. They differ only in how the existing Nginx sees the in-place
storage.
Prerequisites
- OMERO.web 5.6 or newer, running on Python 3.10–3.12;
- a BIOMERO in-place OME-Zarr import, or an equivalent OMERO-to-store link;
- the OME-Zarr storage visible to OMERO.web and read-only to Nginx;
- one of the supported Nginx-fronted deployment paths above.
The current data backend requires Nginx to process X-Accel-Redirect.
Connecting directly to Gunicorn can load capabilities but cannot deliver
metadata or chunks because Django deliberately does not stream file bodies.
Build the wheel
Use a pinned release wheel, or build one from this repository:
python -m pip install build
python scripts/build_frontend.py
python -m build --wheel
python scripts/verify_wheel.py dist/<wheel-file>.whl
Building requires Node.js 22 and Python 3.10–3.12. The resulting wheel already contains the compiled frontend, so Node.js is not required in the production OMERO.web container.
Temporary installation in a running local stack
For development or a quick installation into an already running Compose
service named omeroweb, use:
.\scripts\manage-docker-plugin.ps1 install
.\scripts\manage-docker-plugin.ps1 status
Use -Container <name> when the container is not part of a service named
omeroweb. Updates and removal are available as:
.\scripts\manage-docker-plugin.ps1 update
.\scripts\manage-docker-plugin.ps1 remove
This installation is lost when the container is replaced. Use a derived image or the deployment-kit integration for a persistent deployment. The local stack must still be opened through an Nginx endpoint.
To build a persistent image without removing other installed OMERO.web plugins, use:
.\scripts\build-docker-image.ps1
The script uses the currently deployed OMERO.web image as its base by default, so plugins already baked into that image are retained. It refuses to continue when it detects plugin configuration files that exist only in the running container and would therefore disappear after recreation. This protects co-installed extensions such as OMERO.JupyterLite.
Never update this viewer by rebuilding directly from the vendor OMERO.web image when the deployment already uses a combined plugin image. Layer the updated viewer onto the current combined image instead.
Storage path model
source_root is the path prefix recorded by the importer in OMERO.
mount_root is the corresponding path inside OMERO.web. The Nginx alias is
the same underlying storage as seen from Nginx's own host or container
namespace.
For example, if OMERO records
/archive/alice/example.ome.zarr, OMERO.web sees it as
/data/alice/example.ome.zarr, and host Nginx sees it as
/srv/biomero/alice/example.ome.zarr, configure:
omero config set omero.web.zarr_viewer.source_root /archive
omero config set omero.web.zarr_viewer.mount_root /data
omero config set omero.web.zarr_viewer.internal_prefix /_biomero_zarr_internal/
When the recorded and mounted paths are both under /data, the defaults in
docker/90-biomero-zarr-viewer.omero
are already correct.
The roots may differ, but the relative suffix
alice/example.ome.zarr must be identical. Nginx only needs read access.
Verify the installation
- Sign in to OMERO.web.
- Select a BIOMERO-imported OME-Zarr Image or Plate.
- Open Open With → OME-Zarr Viewer.
- Confirm that image requests below
/biomero_zarr_viewer/data/images/...return HTTP 200 or 206. - Confirm that directly requesting
/_biomero_zarr_internal/...returns 404. This proves that the storage location cannot be accessed without Django authorization.
For a local Docker installation:
.\scripts\manage-docker-plugin.ps1 status
If the menu entry is disabled, first confirm that the selected OMERO object is
readable and linked to one unambiguous .zarr store. If the viewer opens but
reports Failed to fetch, check the Nginx route, the shared read-only mount,
and the relative path below the OMERO.web and Nginx roots.
Is BIOMERO required?
BIOMERO is not installed as a Python dependency of this viewer. It normally runs earlier in the workflow as the importer that creates or preserves the OME-Zarr store and registers where that store belongs in OMERO.
| Component | Responsibility |
|---|---|
| BIOMERO or another importer | Create/import the physical OME-Zarr and associate it with OMERO |
| OMERO | Users, groups, permissions, Images, Plates, and provenance |
| BIOMERO OME-Zarr Viewer | Validate access, interpret NGFF metadata, and render the data |
| Nginx | Serve only the files authorized by the viewer |
The viewer can locate a store in either of these ways:
- the readable OMERO Image has a Fileset/OriginalFile path inside a
.zarrdirectory; or - the Image or its readable Dataset/Plate/Screen ancestry has a structured
biomero.importmap annotation containingUUID,Filepath,DestinationType, andFiles.
The BIOMERO importer produces the second form for in-place imports, including
plate imports whose individual OMERO Images are named with NGFF field paths
such as A/1/0.
Another importer can therefore be used, but it must provide one of those
links. Its recorded store path must be below source_root, and the matching
store must exist below mount_root.
OME-Zarr metadata requirements
BIOMERO provenance tells the viewer where the store is; the actual image, channel, label, and plate descriptions come from standard OME-NGFF metadata inside the store.
Supported data:
- OME-Zarr 0.4 with Zarr v2;
- OME-Zarr 0.5 with Zarr v3;
- multiscale images with declared axes and datasets;
- HCS plates with plate, well, acquisition, and field metadata;
- labels declared through the NGFF label group and stored as integer arrays.
Channel names, colors, and display windows are read from NGFF omero
metadata when present. Missing or incomplete values receive safe viewer
defaults. The viewer does not repair malformed metadata or generate an
OME-Zarr store from conventional OMERO pixels.
Viewer features
- one image canvas with pan, mouse-wheel zoom, minimap, scale bar, and fullscreen mode;
- channel visibility, color, dual-ended display range, sampled histogram, and Auto/Fit/Hist controls;
- middle Z slice by default, T and Z navigation, and MIP, mean, or minimum intensity projection across Z;
- multiple independently visible and reordered label layers with 30% default opacity, nearest-neighbor sampling, and fill or outline display;
- deterministic GPU label colors without a JavaScript color table proportional to the number of label IDs;
- Field, Well, and Plate views with plate-grid navigation and field selection;
- versioned URL state for viewport, planes, projection, channels, labels, and the selected field.
The viewer is read-only. It does not provide annotation editing, OMERO.tables, CSV measurements, expression data, or embedding panels.
Security model
- OMERO.web supplies an authenticated OMERO connection and active group.
- The backend resolves the selected readable Image or Plate to one store.
- Canonical path checks reject traversal, ambiguous roots, and symlink escapes outside the configured mount.
- The capability endpoint reads only bounded JSON metadata and returns a short-lived signed context bound to the OMERO user, group, Image, store, and read operation.
- The frontend attaches that context as
X-OMERO-Zarr-Context. An expired context is refreshed and retried once. - Django validates each key and returns
X-Accel-Redirect; Nginx reads the file body.
The URL contains viewer state and an OMERO object ID, but no signed storage context or filesystem path. Opening the URL still requires a valid OMERO session and permission to read the selected object.
Optional limits:
omero config set omero.web.zarr_viewer.context_ttl_seconds 900
omero config set omero.web.zarr_viewer.max_metadata_bytes 4194304
omero config set omero.web.zarr_viewer.max_hierarchy_entries 20000
Development
Install and run the backend tests:
python -m pip install -e ".[test]"
python -m pytest
Run the frontend checks:
cd frontend
npm ci
npm test
npm run typecheck
npm run build
Build and validate a release wheel:
python scripts/build_frontend.py --skip-install
python -m build --wheel
python scripts/verify_wheel.py dist/<wheel-file>.whl
Before a release, run the live compatibility matrix in
docs/compatibility-spike.md. An authenticated
deployment can be checked with:
.\scripts\smoke-test.ps1 `
-BaseUrl https://omero.example.org `
-ImageId 123 `
-Cookie "sessionid=..."
API
All routes are below the standard /biomero_zarr_viewer/ application mount.
GET /?image=<omero-image-id>
GET /?plate=<omero-plate-id>
GET /api/images/<id>/capabilities/
GET /api/plates/<id>/capabilities/
GET|HEAD /data/images/<id>/<zarr-key>
X-OMERO-Zarr-Context: <signed-context>
Unreadable OMERO objects return 404. Unsupported or malformed stores return a
stable JSON error code. Successful data responses have an empty Django body
and contain an X-Accel-Redirect for Nginx.
Relationship to ome/omero-web-zarr
ome/omero-web-zarr presents
conventional OMERO-managed pixels through a virtual OME-Zarr hierarchy. It
reads pixels through OMERO and serializes requested chunks in Python.
This project serves an existing physical OME-Zarr store, including NGFF 0.5,
labels, and HCS metadata. OMERO authorizes access, but Nginx serves the stored
bytes directly. ome/omero-web-zarr is therefore complementary rather than a
dependency of this viewer.
License
GNU Affero General Public License v3.0 or later. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file biomero_zarr_viewer-0.1.10.tar.gz.
File metadata
- Download URL: biomero_zarr_viewer-0.1.10.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
316b54d36bbcd0432bdcb8cc58ea4ea4ff379deec61c3104a49584ff5f58485c
|
|
| MD5 |
5bdc28eab362ee6df9b76ceed489365d
|
|
| BLAKE2b-256 |
75c2fd5e37d794b682576fdbd302b049bb63c4f4488cb94b6e307bcb6b40a1a7
|
Provenance
The following attestation bundles were made for biomero_zarr_viewer-0.1.10.tar.gz:
Publisher:
release.yml on NL-BioImaging/BIOMERO.ZarrViewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
biomero_zarr_viewer-0.1.10.tar.gz -
Subject digest:
316b54d36bbcd0432bdcb8cc58ea4ea4ff379deec61c3104a49584ff5f58485c - Sigstore transparency entry: 2226156129
- Sigstore integration time:
-
Permalink:
NL-BioImaging/BIOMERO.ZarrViewer@2830d603649e866af5e6e5bbfcec3eaa38c588f1 -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/NL-BioImaging
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2830d603649e866af5e6e5bbfcec3eaa38c588f1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file biomero_zarr_viewer-0.1.10-py3-none-any.whl.
File metadata
- Download URL: biomero_zarr_viewer-0.1.10-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84d06b6dba67a20cfeb52890639a1b80992e40bd91e48e0633ca45a0aec1612f
|
|
| MD5 |
5f737156774c8b8a6e53c07926aef8ac
|
|
| BLAKE2b-256 |
b3179f9d0ddf6fa533de787c54af933a4d83cac544205eac08a11f05da0c9169
|
Provenance
The following attestation bundles were made for biomero_zarr_viewer-0.1.10-py3-none-any.whl:
Publisher:
release.yml on NL-BioImaging/BIOMERO.ZarrViewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
biomero_zarr_viewer-0.1.10-py3-none-any.whl -
Subject digest:
84d06b6dba67a20cfeb52890639a1b80992e40bd91e48e0633ca45a0aec1612f - Sigstore transparency entry: 2226156523
- Sigstore integration time:
-
Permalink:
NL-BioImaging/BIOMERO.ZarrViewer@2830d603649e866af5e6e5bbfcec3eaa38c588f1 -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/NL-BioImaging
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2830d603649e866af5e6e5bbfcec3eaa38c588f1 -
Trigger Event:
release
-
Statement type: