viv icon indicating copy to clipboard operation
viv copied to clipboard

Support for OME-NGFF multiscales v4.0

Open keller-mark opened this issue 3 years ago • 0 comments
trafficstars

User story

The field axes of multiscales in OME-NGFF changed from v3.0 to v4.0.

In 3.0 axes was an array of strings like ["c", "z", "y", "z"] but in 4.0 it is an array of JSON objects:

  • https://ngff.openmicroscopy.org/latest/#axes-md
  • 3.0: https://github.com/ome/ngff/blob/main/0.3/schemas/image.schema#L36
  • 4.0: https://github.com/ome/ngff/blob/main/0.4/schemas/image.schema#L112

Preferred solution

Support the v4.0 schema for multiscales in a way that is backwards compatible

Changes needed at least in these places

  • https://github.com/hms-dbmi/viv/blob/master/src/loaders/zarr/lib/utils.ts#L73
  • https://github.com/hms-dbmi/viv/blob/master/src/types.ts#L41

keller-mark avatar Mar 02 '22 17:03 keller-mark