-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement labels loading for OME-Zarr HCS plates #1066
Comments
works now. |
Dear @jeskowagner, Could you please share the S3 address with me? I don't think streaming directly from Zenodo is something that we are supporting. Is that what you tried? I think you may first have to download the data locally. If you feel directly streaming from Zenodo should work, please let me know and I can look into it.... Just saw that the Zenodo file is a ZIP ( |
Hi @tischi, |
@jeskowagner I guess the labels are not shown in either case: S3 and local, right? |
Hi @tibuch,
|
@tibuch even though it seems to work in principle a minimal dataset for testing including labels would be awesome. |
Note that I am not the author of either data. That said, you can download the Zenodo data I visualised with the labels here. The download is quite modest - around 100 Mb and contains only a single well and a single site with 3 imaging channels and seemingly 4 label masks. As to motivation - having the option to toggle nuclei/cell/cytoplasm masks can be handy when troubleshooting segmentation issues. |
...and another post (sorry, please read everything above). I opened https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.1/plates/2551.zarr in Fiji using: And this dataset still has the issue (see the very first post in this issue) that the labels are wrongly down-sampled: the datatype is changing to float during the downsampling. This is not a valid OME-Zarr. I think I already mentioned this to @joshmoore but apparently this had not yet been fixed (maybe there also never was a plan of fixing this, I cannot remember now 😄 ). |
Thanks for the Zenodo link; I will download this and see whether we can manage to open all labels. |
In the Zenodo description I just saw that my interpretation of having multiple labels in this file may be incorrect. The description states (emphasis mine):
I would take that to mean it only contains a single label mask. In that case I am unsure what |
Maybe @jluethi knows? |
It turns out that loading the labels does not work anymore in mobie-5.0.0, working on this here: https://github.com/mobie/mobie-viewer-fiji/tree/issue-1066 |
Re the example OME-Zarr we have on Zenodo: Feel free to use that for tests if it's useful. We placed them there to use them that way as well :) There is a slightly newer version available here: https://zenodo.org/records/10257532
That's just a non-updated description then. The OME-Zarr really does contain 4 labels: (screenshot in napari viewer, though typical issues there are deprecation of label color coming with 0.5.0 of napari => work on the plugin needed. And that it doesn't load any labels when loading a whole plate by default, only when loading individual images). |
OK, I have to fix my code then. Notes to self:
Fetching all the multiscale datasets:
|
@jluethi which napari plugin are you using for that picture? With the current ome-zarr-py(https://github.com/ome/napari-ome-zarr) |
Hey @jeskowagner e.g. if you have a Default napari-ome-zarr opens labels only if you load a single image, e.g. Also, please be aware that napari 0.5.0 is deprecating some label color functions that the plugin currently uses. Until that is updated, the napari-ome-zarr plugin is not fully compatible with the current main build of napari (like 0.5.0a1) |
Fantastic, thanks @jluethi! I can use napari to test my implementation of writing labels into an existing zarr using @tischi that sounds like a great plan.
I saw that the spec mentions that all label images should be listed in Unfortunately my Java is incredibly rusty, so I won't be able to contribute a PR. Sorry about that. |
Yes, this is a consideration. In general I wonder what one would expect if one "opens" something like In any case. I am on holidays this week. I will get back to it next week. |
What would happen if one of the sub-directories in |
@tibuch that is in fact the case with the data that @jluethi creates, as there are also tables stored. Such data can be filtered by the fact that they are not |
I think labels are not yet supported.
These datasest have labels and may be used for development:
The text was updated successfully, but these errors were encountered: