Open martinschorb opened 4 years ago
Hi @martinschorb, thank you for providing a detailed breakdown of the missing extended metadata and a sample file for testing. Currently this extended header data is skipped in the reader but this is something which we may now be able to include in a future release.
Dear all, (probably @melissalinkert )
we are acquiring TEM datasets (any type of specimen cryo/plastic) using SerialEM in tiled XY montages. These are stored by default in an MRC Stack file with each slice representing a tile.
In order to make TEM data available for BigDataViewer (and finally deposition to public repositories), we like to incorporate BigStitcher to merge these tiles and use BioFormats to read the data.
loci/formats/in/MRCReader.java seems to not yet have functionality to extract the information on the tiles' positions from the MRC files.
As I am unfortunately not into Java development, I like to at least provide you with the details on where/how to find that data:
The key information is stored in the extended header. (if header.extType == 'SERI') http://bio3d.colorado.edu/imod/doc/mrc_format.txt explains the byte-ordering of the extended header and the flags that describe it in the regular header.
I have uploaded an example 2x2 tiled montage and the corresponding tile coordinate file here: https://oc.embl.de/index.php/s/Pve8HeKjC1EQk09
This is the IMOD command line executable that extracts the tile position information (http://bio3d.colorado.edu/imod/nightlyBuilds/IMOD/flib/image/extractpieces.f90)
This is the function that extracts the data (http://bio3d.colorado.edu/imod//nightlyBuilds/IMOD/libcfshr/extraheader.c)
Let me know if I can support you in any other way of getting this vital information into BioFormats!
Thanks a lot, Martin