We're Hiring!

MATLAB client: wholesale access to metadata of fileset?

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

MATLAB client: wholesale access to metadata of fileset?

Postby gyellen » Tue Nov 04, 2014 7:17 pm

Hi -
I have successfully exported our data to OME-TIFF and imported it into OMERO, and now am learning how the MATLAB OMERO client retrieves the data.

Is there a way that I can retrieve the full XML metadata (as DOM/DocumentImpl or as String) for a fileset? I have already written code to convert the OME XML metadata to a MATLAB structure, and I would prefer to reuse this code rather than to retrieve all of the individual annotations and metadata values using the client calls.

Thanks - gary
gyellen
 
Posts: 24
Joined: Fri Oct 24, 2014 1:19 am

Re: MATLAB client: wholesale access to metadata of fileset?

Postby sbesson » Wed Nov 05, 2014 1:09 pm

Hi Gary,

retrieving the full OME-XML Metadata from an Image is not something that is achievable via the OMERO API at the moment. In order to do so, you will need to have access to the original files and then use Bio-Formats to retrieve the OME-XML metadata from it. This implies:
- either downloading the image from OMERO into a local client,
- or, if possible, setting up an in-place import strategy for your OME-TIFF files so that you can access the raw data for images imported into OMERO via the filesystem. This option will require coordination with the administrator of your OMERO system but may scale better depending on how many times you will need to access this metadata.

Best,
Sebastien
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm

Re: MATLAB client: wholesale access to metadata of fileset?

Postby gyellen » Wed Nov 05, 2014 1:54 pm

Hi Sebastien,
I don't think the import in place is an option (if I understand it correctly), as the local files are not present on the server machine outside of OMERO.

So for now, I would like to ask:
1) How can I programmatically (in MATLAB) retrieve the original file for a given image/fileset from the OMERO server?

2) Could you please add a feature request for the ability to retrieve the DOM of the whole metadata via the OMERO.api?

Thanks! - gary
gyellen
 
Posts: 24
Joined: Fri Oct 24, 2014 1:19 am

Re: MATLAB client: wholesale access to metadata of fileset?

Postby sbesson » Thu Nov 06, 2014 8:41 pm

Hi Gary,

regarding your second point, the ability to retrieve the OME-XML via the API is already listed in our feature request. Hopefully this feature will be implemented as part of 5.1.0.

We are working and testing a small script showing how to download an original file of an image/dataset and will keep you posted on this front as soon as possible.

Best,
Sebastien
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm

Re: MATLAB client: wholesale access to metadata of fileset?

Postby jmoore » Fri Nov 07, 2014 8:35 am

Hi Gary,

sorry, but in discussing with Sebastien there was some confusion. The OME-XML Download idea is certainly on the list of things we'd like to work into the download/export API, but it is highly unlikely that that it will make it into 5.1.0. In the meantime, the best server-side workaround I can propose is to use a script which parses out the XML without the need to download the files.

Cheers,
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 1 guest