From 056b4e905a0edfaa275fd352888f5b7edd410adb Mon Sep 17 00:00:00 2001 From: Melissa Linkert Date: Tue, 5 Jul 2022 15:54:25 -0500 Subject: [PATCH] Add "series" attribute in "OME" group under bioformats2raw.layout Documents the current state of https://github.com/glencoesoftware/bioformats2raw/pull/157 --- latest/examples/bf2raw/ome.json | 3 +++ latest/index.bs | 13 ++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 latest/examples/bf2raw/ome.json diff --git a/latest/examples/bf2raw/ome.json b/latest/examples/bf2raw/ome.json new file mode 100644 index 00000000..be7e9ed6 --- /dev/null +++ b/latest/examples/bf2raw/ome.json @@ -0,0 +1,3 @@ +{ + "series" : [ "0", "1" ] +} diff --git a/latest/index.bs b/latest/index.bs index 5a2727e9..ba0fc50d 100644 --- a/latest/index.bs +++ b/latest/index.bs @@ -272,13 +272,23 @@ Conforming groups: - SHOULD have OME metadata representing the entire collection of images in a file named "OME/METADATA.ome.xml" which: - MUST adhere to the OME-XML specification but - MAY make use of the minimum specification available at https://docs.openmicroscopy.org/ome-model/6.2.2/specifications/minimum.html; -- if so, MUST represent every "multiscales" group as exactly one OME-XML "Image" in the same order as the group numbers. +- if so, MUST represent every "multiscales" group as exactly one OME-XML "Image" in the same order as the group numbers; +- if "OME/METADATA.ome.xml" is present, "OME" MUST be a Zarr group which: + - MUST contain a "series" attribute. "series" MUST be a list of string objects, each of which is a path to an image group. + The order of the paths MUST match the order of both the "multiscales" metadata and the "Image" elements in "OME/METADATA.ome.xml". + +
+path: examples/bf2raw/ome.json
+highlight: json
+
 series.ome.zarr               # One converted fileset from bioformats2raw
     ├── .zgroup
     ├── .zattrs               # Contains "bioformats2raw.layout" metadata
     ├── OME                   # Special group for containing OME metadata
+    │   ├── .zgroup
+    │   ├── .zattrs           # Contains "series" metadata
     │   └── METADATA.ome.xml  # OME-XML file stored within the Zarr fileset
     ├── 0                     # First image in the collection
     ├── 1                     # Second image in the collection
@@ -290,6 +300,7 @@ possible to mix collections of images with plates at present.
 
 Conforming readers:
 - SHOULD detect the presence of more than one image and make users aware of the fact;
+- MAY use the "series" attribute in the "OME" group to determine a list of valid groups;
 - MAY choose to show all images within the collection or offer the user a choice of images, as with HCS plates;
 - MAY ignore other groups or arrays under the root of the hierarchy.