Adding Modulo annotation to metadata
Posted: Thu May 15, 2014 2:49 pm
Hi All,
We work with Bioformats and Matlab, and want to create OME-tiffs with Modulo specifications.
Modulo is the OME XML annotation specifying additional XY-plane indexing attribute (e.g. the lifetime in FLIM, agreed to be ModuloAlongT).
Bioformats provides mechanism for adding ModuloAlong to metadata, and I now want to use it, as it should result in desired effect in corresponding OME.tiff files and Omero-imports made of them.
To pass metadata to the writer, I copy the code from "bfsave" function:
"OMEXMLService" object there contains "addModuloAlong" functions, "getModuloAlongZ"(C,T), and likely this is the place where one can add Modulo annotation to metadata.
Will be grateful for any hint.
Best,
Y.
We work with Bioformats and Matlab, and want to create OME-tiffs with Modulo specifications.
Modulo is the OME XML annotation specifying additional XY-plane indexing attribute (e.g. the lifetime in FLIM, agreed to be ModuloAlongT).
Bioformats provides mechanism for adding ModuloAlong to metadata, and I now want to use it, as it should result in desired effect in corresponding OME.tiff files and Omero-imports made of them.
To pass metadata to the writer, I copy the code from "bfsave" function:
- Code: Select all
OMEXMLService = loci.formats.services.OMEXMLServiceImpl();
metadata = OMEXMLService.createOMEXMLMetadata();
...
writer = loci.formats.ImageWriter();
...
writer.setMetadataRetrieve(metadata);
...
"OMEXMLService" object there contains "addModuloAlong" functions, "getModuloAlongZ"(C,T), and likely this is the place where one can add Modulo annotation to metadata.
Will be grateful for any hint.
Best,
Y.