Skip to content
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

Scale dict #103

Merged
merged 5 commits into from
Feb 11, 2022
Merged

Scale dict #103

merged 5 commits into from
Feb 11, 2022

Conversation

will-moore
Copy link
Member

@will-moore will-moore commented Jan 26, 2022

As discussed in #93 (comment) the API for write_multiscales_metadata() has changed in ome/ome-zarr-py#162 and this PR uses that new API.

Also, this now exports scales metadata as a list [1, 1, 0.5, 0.3, 0.3] instead of using axesIndices.

@sbesson sbesson mentioned this pull request Jan 31, 2022
@will-moore will-moore marked this pull request as ready for review January 31, 2022 14:47
@will-moore
Copy link
Member Author

@sbesson I think this is ready to review now, with latest ome/ome-zarr-py#162 (both updated to use coordinateTransforms).

@will-moore
Copy link
Member Author

Used this PR in it's current state to export from IDR: https://minio-dev.openmicroscopy.org/idr/v0.4/2022-02-03/idr0062/6001240.zarr (with labels).

Copy link
Member

@sbesson sbesson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging to keep the omero-cli-zarr implementation in sync with the API of the latest pre-release of ome-zarr-py as well as the final layout of the OME-NGFF 0.4 specification.At minimum the pixel size metadata should be transformed into the new scale transformation.

I propose to carry out some more testing as we start creating official samples for the specification and capture various RFEs as issues. Immediate thoughts:

  • translate coordinate transformations: is there existing OME/OMERO metadata that could be turned into translation elements
  • image labels: at the moment, the label image create by omero zarr masks is expanded to match the image size. It should be possible to create labels using the mask width/height and use the transformation to represent the transformation
  • storing datasets vs multiscales coordinateTransformations: this will requires some upstream ome-zarr API
  • improve the programmatic edition of metadata: in the context of coordinateTransformations scale list napari-ome-zarr#32, translated images were created by editing manually the .zattrs but this could be facilitated by some utilities e.g. ome_zarr translate

@sbesson sbesson merged commit 9cce537 into ome:master Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants