Repository navigation
feat: add ND2 reader and OME-Zarr converter - #436
Merged
Merged
Conversation
Wrap nd2.ND2File as an iohub reader (ND2Dataset/ND2FOV) and route .nd2 paths through read_images and TIFFConverter. Each stage position maps to one FOV; data is returned in canonical TCZYX with native dtype preserved (no downcast, no axis swaps). Supports OME-NGFF v0.4 and v0.5. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
nd2.to_xarray returns axes in native, non-canonical order (e.g. Z before C for multichannel z-stacks). The round-trip comparison now transposes the expected array to canonical TCZYX by label instead of assuming order, so it holds for any axis combination rather than only single-non-singleton-axis files. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
srivarra
commented
Jul 7, 2026
Add Nikon ND2 to the README supported-formats list (and Osprey to the Biohub microscopes line), and document ND2Dataset/ND2FOV in the reader API reference. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Regenerate uv.lock after adding nd2 to pyproject; pulls in nd2 and its transitives (ome-types, xsdata, resource-backed-dask-array). No changes to existing pins. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Collaborator
Author
|
@jenniferdoherty6 I've tested this on the datasets you've provided, and it seems to work. Let me know how it goes for you. |
ieivanov
approved these changes
Jul 14, 2026
ieivanov
left a comment
Collaborator
There was a problem hiding this comment.
Took a quick look, looks good I think
Signed-off-by: Sricharan Reddy Varra <sricharan.varra@biohub.org>
Signed-off-by: Sricharan Reddy Varra <sricharan.varra@biohub.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for nd2 / osprey.
Todos:
Will do some housekeeping after to generalize the MicroManagerFOV + MicroManagerFOVMapping class in a separate pr.