Zarr Metadata Streaming Integration#262
Draft
aleql wants to merge 18 commits into
Draft
Conversation
Introduces a new ZarrMetadataDialog for exploring locally hosted Xenium Zarr dataset metadata, including dialog components, utility functions for metadata extraction, and integration into the menu bar with a new 'Add Remote Datasource' button. This enables users to fetch and inspect remote Zarr datasets directly from the UI.
- zarr<3.0: core array and metadata parsing - fsspec^2025.7.0: flexible filesystem + HTTP access - requests^2.32.5: robust HTTP client for dataset fetching
The dialog now fetches metadata directly from the backend API, removing mock responses. Includes updated placeholders for local datasets and streamlined error messages for MVP testing.
Adds ZarrMetadataExtractor and supporting utilities to parse and normalize Zarr dataset structure.
- Exposes new GET /zarr/metadata?url=... route - Integrates with ZarrMetadataExtractor to fetch and normalize dataset metadata - Returns structured JSON with dataset groups, arrays, and attributes - Provides error handling for invalid URLs, missing files, or format issues
- added automatic dataset format detection in ZarrMetadataExtractor (zarr_utils.py) - implemented specialized processors for SpatialData (images, points, shapes, AnnData tables) - responses now include a datasetFormat field (spatialdata or zarr) - enhanced dialog to display SpatialData-specific details (image scales, table components, etc.)
- created python/mdvtools/metadata/ package - extracted /get_metadata endpoint logic (lines 160–246 from server.py) into metadata/routes.py - updated server.py to import and register routes via register_metadata_routes(project_bp, project) - removed original endpoint code from server.py - cleaned up unused imports (now scoped to the metadata module)
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
This draft introduces the first working version of Zarr metadata streaming integration into MDV, enabling the backend to fetch and the frontend to display metadata from both standard Zarr stores and SpatialData datasets hosted at HTTP/HTTPS URLs.
Key Features
zarr<3.0,fsspec^2025.7.0, andrequests^2.32.5zarr_utils.py):ZarrMetadataExtractorwith:datasetFormat) in responses/project/<id>/get_metadataZarrMetadataDialog.tsx):Next Steps
Extract metadata integration logic (modules, endpoints, etc.) into a dedicated submodule under
mdvtoolsto reduce complexity inserver.pyand project scriptsProceed with hydration architecture as outlined in the proposal document (https://cmdoxford.atlassian.net/wiki/x/AYAgvg)