Thanks, Andrew.
I'm intrigued by the statement in the schema that "Images can belong to more than one Dataset, and a Dataset may contain more than one Image. Images contain one or more DatasetRef elements to specify what datasets they belong to."
This seems like exactly the functionality that I'm after. I would like to specify when saving the single acquisition OME-TIFF that its data (or, more specifically, its Images) belong to a specific Dataset (by name? by UUID?). If I understand this correctly, the metadata do not have to include specifications for all other members of the dataset.
[BTW, in general I have a very hard time reading through the schema or any of the online docs and figuring out how to use the Bio-Formats/LOCI Java calls to create a particular notation - it usually involves trial and error. Is there a good place to look for example code?]
Furthermore, the description makes it sound like I could have all three image series ("Image"s) be part of one Dataset (embracing all the data for one of my "experiment"s), but then have another Dataset that embraces all of the "Image:0"s, another for all of the "Image:1"s, etc. Is this correct?
I have now done this provisionally in an OME-TIFF file by using
- Code: Select all
%% create the Datasets
metadata.setDatasetID('Dataset:All',0);
metadata.setDatasetName('BigExperimentToday',0);
metadata.setDatasetID('Dataset:dfi',1);
metadata.setDatasetName('BigExperimentToday_DFI',1);
metadata.setDatasetID('Dataset:xyt',2);
metadata.setDatasetName('BigExperimentToday_XYT',2);
metadata.setDatasetID('Dataset:dfh',3);
metadata.setDatasetName('BigExperimentToday_DFH',3);
and then associating individual image series with two datasets, the overall one and the specific one. For instance, for the second series ("Image:1"):
- Code: Select all
metadata.setDatasetImageRef(['Image:' sSeries],0,series);
metadata.setDatasetImageRef(['Image:' sSeries],2,series);
These metadata are written without errors and imported in a sensible-looking way into Fiji.
When imported into OMERO, will this result in grouping of images from multiple files into the various Datasets, so that 'BigExperimentToday' includes all of the images from multiple files, and 'BigExperimentToday_XYT' includes all of the Image:1 series?
As a secondary issue, will the Datasets be linked to the Experiment and Instrument metadata in each component image, or do I need to somehow set ExperimentRef's and InstrumentRef's for each Image?
Thanks,
Gary
[This same idea may also apply to Dan's query in "Ome-metadata distributed across multiple tiff-files"]