ome / omero-cli-zarr

https://pypi.org/project/omero-cli-zarr/
GNU General Public License v2.0
15 stars 10 forks source link

export bioformats2raw.layout for Fileset or Images #122

Open will-moore opened 2 years ago

will-moore commented 2 years ago

See https://github.com/ome/ngff/pull/112#issuecomment-1174890546

The bioformats2raw.layout could be generated from a Fileset or from a list of Image IDs.

In the case of a Fileset, we can get Image IDs with fileset.copyImages().

With a list of Image IDs, we can export each individual OME-NGFF under paths 0/, 1/ etc and manually generate OME-XML according to https://docs.openmicroscopy.org/ome-model/6.2.2/specifications/minimum.html (with <MetadataOnly/>) for each Image. I don't see a way to get export this OME-XML automatically from OMERO for a Fileset. But also, it would be handy to generate bioformats2raw.layout collection of Images that are NOT a Fileset, which should be possible with this approach.

I imagine the cli could look like:

$ omero export Fileset:1
$ omero export Image:1,2,3

Going to start looking into this... cc @sbesson @joshmoore