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.

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari_ome_zarr-0.10.0.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_ome_zarr-0.10.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file napari_ome_zarr-0.10.0.tar.gz.

File metadata

  • Download URL: napari_ome_zarr-0.10.0.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for napari_ome_zarr-0.10.0.tar.gz
Algorithm Hash digest
SHA256 5fbfcbea0d1c603977550dbdf86a803c8684e0e68c90344bc39c6114f45abe95
MD5 4eeb506b8961b0f8dc355bd81aeaaf1a
BLAKE2b-256 b7daa20b37fbfc68c1f0c638b4a08623bcb791d2ef1cef7c27c0f4a1b9ac7d94

See more details on using hashes here.

File details

Details for the file napari_ome_zarr-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_ome_zarr-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0481a96ec63e4e310bd59a5ee09bc52086ffffb7938f7ac94419253b4ef0262a
MD5 5d1d0937540ad98b5e08fa4dfe6988a0
BLAKE2b-256 ad6c689869963260e05d5e4ba36e1790248c57192fdcb1fc89544470c6cd39c5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 files

0.9.0

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.3

2 files

0.7.2

2 files

0.6.1

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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