Skip to content

New OME ZARR Image Reader#200

Merged
guillaumejaume merged 18 commits into
mainfrom
omezarr-reader
Mar 30, 2026
Merged

New OME ZARR Image Reader#200
guillaumejaume merged 18 commits into
mainfrom
omezarr-reader

Conversation

@guillaumejaume

@guillaumejaume guillaumejaume commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Support for locally stored OMEZarr Multiscale specification WSIs. I made changes based on #163 , then changes based on a look at the references to openslide in the repo, then changes based on my testing of the OMEZarr reader. I chose to use ngff-zarr to read OMEZarr Multiscales files, and to recognize files based on OMEZARR_EXTENSIONS = {'.zarr'} as the code for WSI extension recognition expects a single file suffix.

Testing I've done:

  • I used the same functions in test_openslidewsi.py to see that the outputs followed the same assertions and outputs looked reasonable.
  • I ran segmentation, patching, and feature extraction on ~1000 of my own LocalStore zarr files.

Credit to @HarveySouth

HarveySouth and others added 18 commits March 5, 2026 19:07
Change the ome-zarr dependencies to hopefully work better with the strict package requirements of aicsimageio.
didn't change index.rst as the support is probably more narrow than any
conception of a WSI in the zarr format.
Fix assumption that ngff-multiscales have a strict dimension ordering
Format code with black and autopep8
Move imports that are now optional to a try except block
Add docstring to _fetch_downsamples
Optimise read_region by adding some processing to lazy_initialize
Make imports more robust
Expand possible dimnames
Fix incorrect OME spec assumption in fetch_mpp
Update slice varname for better readability
Cache slice involved variables in init rather than read
@guillaumejaume guillaumejaume changed the title Omezarr reader New OME ZARR Image Reader Mar 30, 2026
@guillaumejaume guillaumejaume merged commit 89a2609 into main Mar 30, 2026
2 checks passed
@guillaumejaume guillaumejaume deleted the omezarr-reader branch April 16, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants