Skip to content

Support reading OME-Zarr 0.5#295

Merged
ziw-liu merged 43 commits into
zarr3-devfrom
ome-zarr-0.5
Jun 4, 2025
Merged

Support reading OME-Zarr 0.5#295
ziw-liu merged 43 commits into
zarr3-devfrom
ome-zarr-0.5

Conversation

@ziw-liu
Copy link
Copy Markdown
Contributor

@ziw-liu ziw-liu commented Apr 15, 2025

  • iohub info works on single-FOV acquire-zarr output
  • add tests for reading validated OME-Zarr v0.5 datasets

Next step (for another PR): support writing OME-Zarr v0.5 datasets.

@ziw-liu ziw-liu changed the base branch from main to 273-use-zarr-python-3 April 15, 2025 18:50
@ziw-liu ziw-liu added this to the 0.3.0 milestone Apr 15, 2025
Comment thread iohub/ngff/models.py

# SHOULD
version: Literal["0.1", "0.2", "0.3", "0.4"] = "0.4"
version: Literal["0.1", "0.2", "0.3", "0.4", "0.5"] | None = Field(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workaround for ome/ngff#309.

@mattersoflight
Copy link
Copy Markdown
Collaborator

@ziw-liu, please add tests using @aliddell's acquire-zarr example. Is there an example dataset with OME-NGFF 0.5 metadata from OME?

@ziw-liu
Copy link
Copy Markdown
Contributor Author

ziw-liu commented May 19, 2025

@ziw-liu, please add tests using @aliddell's acquire-zarr example. Is there an example dataset with OME-NGFF 0.5 metadata from OME?

OME does not provide full datasets that are small. I will need to make one and validate it.

@ziw-liu ziw-liu requested review from JoOkuma and aliddell May 30, 2025 00:53
@ziw-liu
Copy link
Copy Markdown
Contributor Author

ziw-liu commented May 30, 2025

@aliddell recent zarr-python and numcodec updates broke many things – they shipped multiple breaking changes in patch versions! Also in the news, all zarr-python versions in [3.0.0, 3.0.7] got yanked from PyPI so I'm bumping the requirement.

@ziw-liu ziw-liu marked this pull request as ready for review May 30, 2025 00:57
@ziw-liu
Copy link
Copy Markdown
Contributor Author

ziw-liu commented May 30, 2025

@aliddell is it easy(-ish) to write a test case using acquire-zarr's python bindings to write and using iohub to read?

@ziw-liu
Copy link
Copy Markdown
Contributor Author

ziw-liu commented May 30, 2025

After manually adding metadata omitted by ome/ome2024-ngff-challenge#95. This branch can be used with napari-iohub to visualize v0.5 HCS plates:

/hpc/reference/imaging/idr/75-46.ome.zarr
image

Comment thread tests/conftest.py Outdated
@ziw-liu ziw-liu requested a review from edyoshikun June 2, 2025 18:27
Copy link
Copy Markdown
Collaborator

@aliddell aliddell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM I just have a couple of questions and a suggestion you can take or leave.

Comment thread .github/workflows/pr.yml
Comment thread iohub/ngff/nodes.py Outdated
Comment thread iohub/ngff/nodes.py
Comment thread tests/ngff/test_ngff.py
ziw-liu and others added 2 commits June 2, 2025 13:18
Co-authored-by: Alan Liddell <alan.c.liddell@gmail.com>
Comment thread iohub/ngff/nodes.py
@ziw-liu ziw-liu merged commit b8da623 into zarr3-dev Jun 4, 2025
7 checks passed
@ziw-liu ziw-liu deleted the ome-zarr-0.5 branch June 4, 2025 17:11
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.

4 participants