Skip to main content

napari-ome-zarr

License PyPI Python Version tests codecov pre-commit.ci status

A reader for zarr backed OME-NGFF images.


This napari plugin was generated with Cookiecutter using with @napari's cookiecutter-napari-plugin template.

Installation

Install napari if not already installed.

You can install napari-ome-zarr via pip. Activate the same environment as you installed napari into, then:

pip install napari-ome-zarr

Usage

Napari will use napari-ome-zarr plugin to open images that the plugin recognises as ome-zarr. The image metadata from OMERO will be used to set channel names and rendering settings in napari::

napari "https://livingobjects.ebi.ac.uk/idr/zarr/v0.3/9836842.zarr/"

If a dialog in napari pops up, encouraging you to choose a reader, choose napari-ome-zarr and click OK. You can stop it happening with addition of --plugin napari-ome-zarr as in the example below.

To open a local file::

napari --plugin napari-ome-zarr 13457227.zarr

OR in python::

import napari

viewer = napari.Viewer()
viewer.open("https://livingobjects.ebi.ac.uk/idr/zarr/v0.4/idr0101A/13457537.zarr", plugin="napari-ome-zarr")

napari.run()

Data support

The plugin supports all versions of OME-Zarr and will read Images, Plates, bioformats2raw layout collections and Scene graphs.

Images

Multi-channel images will be split into separate napari layers for each Channel. Any labels images found under image_path/labels will be added as label layers (initially inactive).

Plates

The first Image from each Well is displayed in a large grid, generated by concatenating the Images together.

bioformats2raw

All Images found in the series will be opened in napari.

Scenes

If the path_to_image.zarr contains a Scene, the coordinateTransformations with their input and output path/names are used to build a "graph" that includes transforms from the child images. The coordinateSystem at the "top" of the graph is used to display all the images, with all relevant transforms being applied to each image. If the graph contains multiple "top" coordinateSystems, the one with the most input images is chosen for display. Only the first coordinateSystem from each image is read in order to determine the Axes. The Scene graph is constructed purely from coordinateTransformations.

Supported coordinateTransformations currently include identity, scale, translation, rotation, affine and sequence (containing these other transforms).

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

Release process

To release, use the GitHub releases page to "Draft a new release". Create a new Tag, ensuring it starts with v, e.g. v0.10.1. This will be detected by GitHub actions and trigger a deploy of the release to Pypi. The release notes can be generated automatically and subsequently edited manually if desired.

License

Distributed under the terms of the BSD-3 license, "napari-ome-zarr" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Metadata

Release files for napari-ome-zarr 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for napari-ome-zarr 0.11.0
File Size Uploaded
napari_ome_zarr-0.11.0.tar.gz 34.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-ome-zarr 0.11.0
File Interpreter ABI Platform
napari_ome_zarr-0.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 58.4 kB

Release files / napari_ome_zarr-0.11.0.tar.gz

Download URL napari_ome_zarr-0.11.0.tar.gz
Size 34.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1f9d03583c953d97f4c72fa2c880d821c8e32cdd92d346f6a25ebf917b520354
BLAKE2b-256 checksum
How to use checksums
9b8ca4d69fe6ce8a6a951119c9f3d378052bd17503e629d7175dfbd0471e8375
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / napari_ome_zarr-0.11.0-py3-none-any.whl

Download URL napari_ome_zarr-0.11.0-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e575020a976eacd3b19db6380443a5118a679cb4eab32981be82249197b0391f
BLAKE2b-256 checksum
How to use checksums
85a199a57dee77de7a412b07c07f346c8e575fd155cc6266251b2208e00037fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.11.0 This release

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.6.1

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page