Now that we can support the outputs of bioformats2raw, we should use that tool to generate our zarr-based image pyramids. However, bioformats does not create the omero metadata which we'd like to use to specify how to render our images. They've put a lot of thought into what this information should look like, and I think we should replicate for our purposes. We can include this both in the source itself for zarr as well as in the image metadata in raster.json.
"id": 1, # ID in OMERO
"name": "example.tif", # Name as shown in the UI
"channels": [ # Array matching the c dimension size
{
"active": true,
"coefficient": 1,
"color": "0000FF",
"family": "linear",
"inverted": false,
"label": "LaminB1",
"window": {
"end": 1500,
"max": 65535,
"min": 0,
"start": 0
}
}
],
"rdefs": {
"defaultT": 0, # First timepoint to show the user
"defaultZ": 118, # First Z section to show the user
"model": "color" # "color" or "greyscale"
}
Now that we can support the outputs of
bioformats2raw
, we should use that tool to generate our zarr-based image pyramids. However, bioformats does not create theomero
metadata which we'd like to use to specify how to render our images. They've put a lot of thought into what this information should look like, and I think we should replicate for our purposes. We can include this both in the source itself for zarr as well as in the imagemetadata
inraster.json
.https://github.com/ome/omero-ms-zarr/blob/master/spec.md