Skip to main content

A BioIO reader plugin for reading Zarr files in the OME format.

Project description

bioio-ome-zarr

Build Status PyPI version License Python 3.9+

A BioIO reader plugin for reading OME ZARR images using ome-zarr


Documentation

See the full documentation on our GitHub pages site - the generic use and installation instructions there will work for this package.

Information about the base reader this package relies on can be found in the bioio-base repository here

Installation

Stable Release: pip install bioio-ome-zarr
Development Head: pip install git+https://github.com/bioio-devs/bioio-ome-zarr.git

Example Usage (see full documentation for more examples)

Install bioio-ome-zarr alongside bioio:

pip install bioio bioio-ome-zarr

This example shows a simple use case for just accessing the pixel data of the image by explicitly passing this Reader into the BioImage. Passing the Reader into the BioImage instance is optional as bioio will automatically detect installed plug-ins and auto-select the most recently installed plug-in that supports the file passed in.

from bioio import BioImage
import bioio_ome_zarr

img = BioImage("my_file.zarr", reader=bioio_ome_zarr.Reader)
img.data

Reading from AWS S3

To read from private S3 buckets, credentials must be configured. Public buckets can be accessed without credentials.

from bioio import BioImage
path = "https://allencell.s3.amazonaws.com/aics/nuc-morph-dataset/hipsc_fov_nuclei_timelapse_dataset/hipsc_fov_nuclei_timelapse_data_used_for_analysis/baseline_colonies_fov_timelapse_dataset/20200323_09_small/raw.ome.zarr"
image = BioImage(path)
print(image.get_image_dask_data())

If using an s3:// path to access a public S3 bucket, the BioImage constructor must be given a dictionary with anon: True in the fs_kwargs argument.

from bioio import BioImage
path = "s3://allencell/aics/nuc-morph-dataset/hipsc_fov_nuclei_timelapse_dataset/hipsc_fov_nuclei_timelapse_data_used_for_analysis/baseline_colonies_fov_timelapse_dataset/20200323_09_small/raw.ome.zarr"
image = BioImage(path, fs_kwargs=dict(anon=True))
print(image.get_image_dask_data())

Issues

Click here to view all open issues in bioio-devs organization at once or check this repository's issue tab.

Development

See CONTRIBUTING.md for information related to developing the code.

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

bioio_ome_zarr-1.1.0.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

bioio_ome_zarr-1.1.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file bioio_ome_zarr-1.1.0.tar.gz.

File metadata

  • Download URL: bioio_ome_zarr-1.1.0.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for bioio_ome_zarr-1.1.0.tar.gz
Algorithm Hash digest
SHA256 05331ff78edc82f78e916e683677690c8bcdfa4ff7c477b6249cd0e66313c804
MD5 4b29b2126741d1c833d8edcd0687fb4e
BLAKE2b-256 5e19377bcc528db3b687abdd7548015a8a5a107c58b0867914599167bb730bc3

See more details on using hashes here.

File details

Details for the file bioio_ome_zarr-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bioio_ome_zarr-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee32e7c6f4cb15957416391f388eb1118100dadbc8c4c295ecd7cc86ca076ad4
MD5 997733ebba28065a0b05bc326e90af3a
BLAKE2b-256 c0e9e6c98cb17b6c2dbc1e70fb3d93a273068bc8d60db4e58a5111a0e8777cc5

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