A reader for zarr backed OME-Zarr images.
Project description
napari-ome-zarr
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.
Project details
Release history Release notifications | RSS feed
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 napari_ome_zarr-0.9.0.tar.gz.
File metadata
- Download URL: napari_ome_zarr-0.9.0.tar.gz
- Upload date:
- Size: 29.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80df94d8c06d30d2708b37809d1ed0dfda56afee45595818ba6c32a52ee5a3cc
|
|
| MD5 |
c1b613469d4b10598c501303ed4db454
|
|
| BLAKE2b-256 |
2b59eb11f3ef3b6b0920e7a08f0a8923abea9098e61622c5452fdd192b717f89
|
File details
Details for the file napari_ome_zarr-0.9.0-py3-none-any.whl.
File metadata
- Download URL: napari_ome_zarr-0.9.0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
649b975e2d34fdd9c56e96158a0818508e4861eb093fb6dc5fefcefb564fb508
|
|
| MD5 |
933e254cab66a6516e6a739e06c6d68b
|
|
| BLAKE2b-256 |
5bc85b0127d27d537fc01dc081f63615bd578b0bc3cc4cd813a08e7f380d2c21
|