Skip to main content

Give easy, high-level access to ome-zarr filesets.

Project description

ez_zarr

Goals

The aim of ez_zarr is to provide easy, high-level access to OME-Zarr filesets (high content screening microscopy data, stored according to the NGFF specifications in OME-Zarr with additional metadata fields, for example the ones generated by the Fractal platform).

The goal is that users can write simple scripts working with plates, wells and fields of view, without having to understand how these are represented within an OME-Zarr fileset.

Example

You can use ez_zarr from the command line to get information about an OME-Zarr fileset:

ez_zarr tests/example_data/plate_ones.zarr

or from within python to get access to all its functionality:

## import module
from ez_zarr import ome_zarr

## open an Image
img = ome_zarr.Image('tests/example_data/plate_ones_mip.zarr/B/03/0')
img
# Image 0
#   path: tests/example_data/plate_ones_mip.zarr/B/03/0
#   n_channels: 2 (some-label-1, some-label-2)
#   n_pyramid_levels: 3
#   pyramid_zyx_scalefactor: [1. 2. 2.]
#   full_resolution_zyx_spacing (micrometer): [1.0, 0.1625, 0.1625]
#   segmentations: organoids
#   tables (measurements): FOV_ROI_table

## legacy objects from `hcs_wrappers`
from ez_zarr import hcs_wrappers

plate_3d = hcs_wrappers.FractalZarr('tests/example_data/plate_ones.zarr')
plate_3d
# FractalZarr plate_ones.zarr
#   path: tests/example_data/plate_ones.zarr
#   n_wells: 1
#   n_channels: 2 (some-label-1, some-label-2)
#   n_pyramid_levels: 3
#   pyramid_zyx_scalefactor: {'0': array([1. 2. 2.])}
#   full_resolution_zyx_spacing: [1.0, 0.1625, 0.1625]
#   segmentations: 
#   tables (measurements): FOV_ROI_table

A more extensive example is available from here, also available as an ipynb notebook.

Install

PyPI - Version PyPI - Python Version PyPI - Downloads

The release version of ez_zarr can be installed using:

pip install ez-zarr

The current (development) ez_zarr can be installed from github.com using:

pip install git+ssh://git@github.com/fmicompbio/ez_zarr.git

Software status

unit-tests codecov

Contributors and License

ez_zarr is released under the MIT License, and the copyright is with the Friedrich Miescher Insitute for Biomedical Research (see LICENSE).

ez_zarr is being developed at the Friedrich Miescher Institute for Biomedical Research by @silvbarb, @csoneson and @mbstadler.

Project details


Download files

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

Source Distribution

ez_zarr-0.2.3.tar.gz (95.7 kB view details)

Uploaded Source

Built Distribution

ez_zarr-0.2.3-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file ez_zarr-0.2.3.tar.gz.

File metadata

  • Download URL: ez_zarr-0.2.3.tar.gz
  • Upload date:
  • Size: 95.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for ez_zarr-0.2.3.tar.gz
Algorithm Hash digest
SHA256 462add0b05cba56ecc79ddafa70fd5939064dbedd7be16ea78c9b29411623802
MD5 6004cc1d337d326da66439f42330ffd5
BLAKE2b-256 04ab83f1605102bde23fd264e1886e07ebe9753bd0fe58609c71e525fba30600

See more details on using hashes here.

File details

Details for the file ez_zarr-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: ez_zarr-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for ez_zarr-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8989c359989c40046c61921ba4a95b44d447f0632eb96335f157481f20615860
MD5 8f22debf3833b157a2f69eab21673853
BLAKE2b-256 ee025b6e9114dd4821d3159933378619475b7d7d7704ec092fab396ddb25b5a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page