Be more permissive with version 0.5, allowing support for spatial-data ome zarrs - #594
Conversation
|
So...first thought is that I'm not sure whether I'd like to see the version written by the spatial data projectspecial-cased over here. From what I see the added code
A way forward I could imagine:
|
|
Thank you for the feedback @jo-mueller ! I had the same thoughts about the spatialdata version right after I submitted this PR. 🤦🏻♀️ I will take in your feedback and push another commit soon. I'm at a conference this week, so I might be delayed in my responses and commits. |
|
Is that conference ELMI, by any chance? ^^ |
|
No actually ! Today is HuBMAP Consortium's final meeting, and the next two days are Spatial Biology - The New Frontier. Both in Rockville, MD. |
|
Ok. would have been funny :) |
|
Thanks @pennycuda for the push. I'll write a few notes on the roadmap, on the meaning of the string
Since Things were moving slowly, but were moving. And from the last year code and specs have started moving much faster! Thanks to @jo-mueller and collaborators the spec is now close to include RFC-5 into OME-Zarr 0.6. The plan from the Until then (or to support earlier dataset), what is possible (this is what we implement), is that we read and write the OME-Zarr store as if it was Some few useful pointers.
@pennycuda can you please share the timeline of HuBMAP, hopefully they are aligned and happy to support from the |
|
Hi @LucaMarconato thank you so much for your very helpful response! I am going to work on some updates and push them today hopefully for OME folks to review. I agree that I should handle the spatialdata transformation incompatibilities all on the spatialdata side rather than in ome-zarr-py. As far as HuBMAP's timeline, we have already begun to zip our SpatialData outputs, so we would like to move as quickly as possible. We would like our outputs to be easily read by users without them having to unzip the stores themselves. We will be processing data through the end of the year if not longer. I am happy to provide any support I can! cc @mruffalo |
|
Maybe another 2cts from my end: An even better way to check the version would be to do |
|
@jo-mueller good call! I took yours and @LucaMarconato suggestions and pushed a new commit. :) All of the special spatialdata handling is now over in my spatialdata branch. |
|
Hi @pennycuda sorry for the late reply here. Just a few minor changes to add before merging. I think we'll want to make clear in some comments that this sot of loose version checking will only be allowed for 0.4/0.5 kind of metadata. For the other versions (0.1-0.3, >=0.6) I think the stricter version checking is the more sound option. In the future, I think it will be better if the spatialdata-specific metadata were to be stored in a separate namespace (outside of the ome key?). But my hope is that ome-zarr 0.6 reconciles the differences between the two worlds sufficiently :) |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #594 +/- ##
==========================================
- Coverage 86.65% 86.46% -0.19%
==========================================
Files 16 16
Lines 2316 2365 +49
==========================================
+ Hits 2007 2045 +38
- Misses 309 320 +11 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-authored-by: Johannes Soltwedel <38459088+jo-mueller@users.noreply.github.com>
Co-authored-by: Johannes Soltwedel <38459088+jo-mueller@users.noreply.github.com>
Co-authored-by: Johannes Soltwedel <38459088+jo-mueller@users.noreply.github.com>
|
Got it @jo-mueller ! Thank you |
|
@pennycuda just two typos then pre-commit will stop complaining and we're done here 👍 |
|
all done @jo-mueller !! Thanks so much |
|
@pennycuda one more rebase on the master branch, then tests will pass and I'll merge! |
|
@will-moore can you rebase this? I feel like it would be nice to get this in before #605 , which contains some similar changes. |
|
@jo-mueller I don't think I have the ability to push to this branch/PR. I can only open my own PR (less ideal). |
|
@jo-mueller I pushed this to #619 with origin/master merged-in (no merge conflicts), if that's useful? |
Hello! I opened another PR #587 a little over a week ago to support zipped SpatialData zarr stores. After some conversation with @will-moore and @jo-mueller about the image class overhaul, I decided to wait on Jo's PR to be merged and redo my work after.
Jo's PR was merged yesterday, so I am excited to move forward with my changes. This will reintroduce SpatialData support to ome-zarr-py by adding handling to accept the
0.5-dev-spatialdataome version in SpatialData metadata.I tested my changes by using SpatialData's
read_zarr()method on zipped and unzipped SpatialData zarr stores. The version ofread_zarr()that I used is a combination of changes from the soon to be merged PR scverse/spatialdata#1107 and my branch of that PR that accepts ZipStores and works in the new ome-zarr-py image class changes.Penny Cuda, she/her, HuBMAP Consortium