Skip to content

Instantly share code, notes, and snippets.

@sbesson
Created April 7, 2016 15:32
Show Gist options
  • Select an option

  • Save sbesson/79a73ad1c04595c337d924709cb0de6d to your computer and use it in GitHub Desktop.

Select an option

Save sbesson/79a73ad1c04595c337d924709cb0de6d to your computer and use it in GitHub Desktop.
A simple script for extracting the OME-XML version from an OME-TIFF file - assumes valid OME-TIFF / no exception handling
parser = loci.formats.tiff.TiffParser(ometiffpath);
service = loci.formats.services.OMEXMLServiceImpl();
version = char(service.getOMEXMLVersion(parser.getComment()))
@imunro
Copy link

imunro commented Apr 8, 2016

Great thanks. I don't suppose you happen to know the OMERO api equivalent off the top of your head?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment