fmicompbio / ez_zarr

GIve easy, high-level access to ome-zarr fileset
https://fmicompbio.github.io/ez_zarr/
MIT License
13 stars 1 forks source link

refactor `ez_zarr` #9

Open mbstadler opened 8 months ago

mbstadler commented 8 months ago

... in order to support additional flavors of OME-Zarr filesets.

Ideas:

Small addition to consider (identified by using ez_zarr on feature extraction 3D):

jluethi commented 8 months ago

Super interesting to follow along, thanks for documenting this @mbstadler & for sending me a link @silvbarb !

A few small comments from me:

new class ez_zarr.ome_zarr.Image representing an image: what we currently have in fractal_out.zarr/B/03/0 (contains .zgroup and pyramid level folders 0, 1, 2, ... each containing .zarray)

Core is also that it contains a .zattrs with multiscales metadata following the NGFF spec

possible additional classes representing an array (folder containing .zarray), a list of arrays (initialised by a folder, populates list with all arrays found within), any other specific zarr filesets

Intuitively, I see this as a function of the Image class: Provide the different resolution level arrays, based on available resolution levels. Or provide some Zarr subgroups like labels & tables.


Also, in case it's relevant, I started playing around with an OME-Zarr image class here: https://github.com/fractal-analytics-platform/napari-ome-zarr-navigator/blob/roi_loader/src/napari_ome_zarr_navigator/ome_zarr_image.py Would be interesting to figure out if we have matching needs for the OMEZarrImage class! I think there should be quite some overlap given your description above and what I've been needing so far. Happy to then contribute to ez_zarr if that's relevant / evaluate whether depending on the fractal_tasks_core roi & NGFF metadata functionality in my case is relevant :)

mbstadler commented 5 months ago

Reopening the issue (image-level tasks are done and included in #10, but plate-level tasks remain to be done).