-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is it necessary to produce invalid OME-Zarr images? #803
Comments
Hi, thanks for starting the discussion. The reason is that by design we never tried to be compatible with NGFF 0.4 because when we started developing our package it seemed that the NGFF 0.5 release would have been imminent, and therefore we would have been able to be fully aligned with NGFF before publication. This approach is, for instance, shown in this issue: #125, where we state that we plan to be fully compliant with NGFF once the specs are approved. Unfortunately, there have been delays with the NGFF release, and this, paired with the fact that users gave feedback mostly on the Python APIs part of the library (and not on the file format), motivated us to temporarily put more emphasis on the Python part and postpone the work on the file format. Anyway, we are aware that aligning with NGFF is crucial for cross-language interoperability, and this, paired with the recent progress with NGFF that has been enabled by the new RFC system, motivates us to prioritize the work on the file format. In concrete terms, two changes in NGFF are going to be enacted (hopefully very) soon:
Both changes are required from us, and without them, there is no hope to be NGFF compliant. This makes interoperability more difficult, but we created this resource (in the context of interoperability with R) to mitigate these challenges https://github.com/scverse/spatialdata-notebooks/tree/4e430ab0c0c316b101c40c5918d3c903a71d51db/notebooks/developers_resources/storage_format. Until then, we are working on aligning with the latest version of the transformation specification (the one that will get merged). To do this, we are going to contribute to https://github.com/BioImageTools/ome-zarr-models-py, by moving our implementation of the new transformations into an official repository, and in the process ensuring that our format fully aligns with the specification. I will push to try to have this done by March next year. |
In the context of interoperability with Java, I think an effective strategy would be to implement the transformation specification from John. When this is completed, and if by then we also manage to be fully compliant with the specification, then the support for SpatialData datasets should come automatically. Finally, I will give updates in this thread when progress is available from our side, so that we can quickly converge. CC @giovp @kevinyamauchi in case they want to add something extra. |
Dear @LucaMarconato, Thank you for the explanations and the plan for the long term future. May I also come back my initial question in this thread as to whether it would be been possible in the past to have an extra Looking into the immediate future, as to how to open the current zarrs produces by spatialdata I will open a new issue. |
I think making a |
Hi,
As far as I understand SpatialData is currently producing invalid OME-Zarr images.
I would like to understand why you choose to do this, even though it has obvious disadvantages such as:
Naively, I would have just added a
spatialdata_multiscales
into the JSON next to the officialmultiscales
and then put whatever you need that is not compatible with the current OME-Zarr spec intospatialdata_multiscales
. Why was this impossible?Ping @LucaMarconato @joshmoore.
The text was updated successfully, but these errors were encountered: