Implementation of images in Zarr files.
Project description
Experimental support for multi-resolution images stored in Zarr filesets, according to the OME zarr spec.
Features
Use as a image reader plugin for napari. The napari plugin was generated with Cookiecutter along with @napari’s cookiecutter-napari-plugin template.
Simple command-line to read and download conforming Zarr filesets.
Helper methods for parsing related metadata.
Installation
Install the latest release of ome-zarr from PyPI:
pip install ome-zarr
Install developer mode to run from your current branch:
git clone git@github.com:ome/ome-zarr-py.git cd ome-zarr-py pip install -e .
Usage
Open Zarr filesets containing images with associated OME metadata. The examples below use the image at http://idr.openmicroscopy.org/webclient/?show=image-6001240.
info
Use the ome_zarr command to interrogate Zarr datasets:
# Remote data $ ome_zarr info https://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/6001240.zarr/ # Local data (after downloading as below) $ ome_zarr info 6001240.zarr/
download
To download all the resolutions and metadata for an image:
# creates local 6001240.zarr/ $ ome_zarr download https://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/6001240.zarr/ # Specify output directory $ ome_zarr download https://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/6001240.zarr/ --output image_dir
napari plugin
Napari will use ome-zarr 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://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/6001240.zarr/' # Also works with local files $ napari 6001240.zarr
OR in python:
import napari with napari.gui_qt(): viewer = napari.Viewer() viewer.open('https://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/6001240.zarr/')
If single zarray is passed to the plugin, it will be opened without the use of the metadata:
$ napari '/tmp/6001240.zarr/0'
Release process
This repository uses bump2version to manage version numbers. To tag a release run:
$ bumpversion release
This will remove the .dev0 suffix from the current version, commit, and tag the release.
To switch back to a development version run:
$ bumpversion --no-tag [major|minor|patch]
specifying major, minor or patch depending on whether the development branch will be a major, minor or patch release. This will also add the .dev0 suffix.
Remember to git push all commits and tags.
License
Distributed under the terms of the BSD license, “ome-zarr-py” is free and open source software
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
File details
Details for the file ome-zarr-0.0.7.tar.gz
.
File metadata
- Download URL: ome-zarr-0.0.7.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d1eac9d7fc49cd68ca447f4a2861865a509cf785e4f53c4a3e19619ac6069b8 |
|
MD5 | 74c608c4cbc1ddc5c27ef8f75876b4fe |
|
BLAKE2b-256 | 0b94e988df21556cd73e33d9b38e7e2316c198953fd2413889f2a36549a30400 |
File details
Details for the file ome_zarr-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: ome_zarr-0.0.7-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b6309707c06faaca284b1a359439972d1a3e102950eafd6e1e61d5a4a32acb8 |
|
MD5 | 60aee7749a8b4906d973d2c6de5a709a |
|
BLAKE2b-256 | f06f77815e9f4fef4a09d30bd5b5a1231429a331475634ad18077f0ee2c0d9e3 |