Page 1 of 1

Matlab import of Aperio .svs file not retrieving XML data

PostPosted: Wed Nov 28, 2012 3:00 pm
by epaulw
I have gotten Matlab to import Aperio .svs files. However, the data I get back seem a little odd. It comes as a cell array that replicates the original image in smaller and smaller thumbnails (if you can call a 6500x5500 image a thumbnail).

Further, it only grabs some of the ancillary information, but it does not retrieve the XML data. The XML is my whole reason for using bio-formats. Otherwise, just renaming the image file to tiff or jpeg makes it importable (without all the extra baggage showing up). The XML data contains the overlays, hand drawn outlines of the pathologist's regions of interest.

Should I be expecting that XML to show up as data? Or should I assume that I need to import the XML data separately, and program my way through it?

Paul

Re: Matlab import of Aperio .svs file not retrieving XML dat

PostPosted: Thu Nov 29, 2012 11:33 pm
by mlinkert
I have gotten Matlab to import Aperio .svs files. However, the data I get back seem a little odd. It comes as a cell array that replicates the original image in smaller and smaller thumbnails (if you can call a 6500x5500 image a thumbnail).

Further, it only grabs some of the ancillary information, but it does not retrieve the XML data. The XML is my whole reason for using bio-formats. Otherwise, just renaming the image file to tiff or jpeg makes it importable (without all the extra baggage showing up). The XML data contains the overlays, hand drawn outlines of the pathologist's regions of interest.

Should I be expecting that XML to show up as data? Or should I assume that I need to import the XML data separately, and program my way through it?


If you're referring to the OME-XML that Bio-Formats creates, then you should be able to retrieve it like so:

Code: Select all
reader = bfGetReader('/path/to/file');
omexml = loci.formats.MetadataTools.getOMEXML(reader.getMetadataStore());


I've never seen an .svs file that contained actual XML, so if your files do contain extra XML data (or have an associated XML file) then it's likely that Bio-Formats does not read this. The best thing to do then would be to send at least one dataset so that we can verify the problem and test any changes. If you need a place to upload data, let me know and I will send instructions in a private message.

Regards,
-Melissa

Re: Matlab import of Aperio .svs file not retrieving XML dat

PostPosted: Mon Mar 04, 2013 3:21 pm
by epaulw
Melissa-

If you are still there and listening, I'd like to take you up on the offer to look at the Aperio .svs files and accompanying .xml files.

Paul

Re: Matlab import of Aperio .svs file not retrieving XML dat

PostPosted: Mon Mar 04, 2013 5:47 pm
by mlinkert
Thank you for offering to send files. Instructions on how to upload files have been sent in a private message.

-Melissa

Re: Matlab import of Aperio .svs file not retrieving XML dat

PostPosted: Mon Mar 11, 2013 9:48 pm
by mlinkert
Thank you for uploading data. I have filed a ticket on our issue tracking system to add support for these XML files:

http://trac.openmicroscopy.org.uk/ome/ticket/10504

-Melissa

Re: Matlab import of Aperio .svs file not retrieving XML dat

PostPosted: Tue Apr 02, 2013 12:32 pm
by epaulw
Melissa-

Did you ever follow up on import of the Aperio XML accessory files?

Thanks

Paul

Re: Matlab import of Aperio .svs file not retrieving XML dat

PostPosted: Tue Apr 02, 2013 4:09 pm
by mlinkert
No, this feature has not yet been completed. The above ticket will be marked as "closed" when it is finished.