A GUI application for batch conversion of SerialEM montages (.mrc files) to OME-TIFF format with proper calibration and BigDataViewer-compatible HDF5 files for large images.
This tool processes SerialEM montage files (.mrc + .mdoc) and converts them to:
- OME-TIFF files with correct pixel size calibration and pyramidal structure (always created)
- HDF5 files (optional) for images >2G pixels, compatible with ImageJ BigDataViewer
- Reduced resolution TIFF files (optional) for large images - can be created independently of HDF5
The processing includes:
- Montage blending using IMOD tools (extractpieces + blendmont)
- Conversion to calibrated OME-TIFF with pyramid levels (always created)
- Optional HDF5 creation for large images (>2G pixels)
- Optional reduced resolution TIFF creation for large images (independent of HDF5)
-
Cygwin (Windows Unix environment)
- Download from: https://cygwin.com/
- Install to:
C:\cygwin64\
(recommended) - Required packages during installation:
- Base packages (automatically selected)
- gcc-core, gcc-g++ (for compilation)
- make, cmake (build tools)
-
IMOD (Image processing software)
- Download from: https://bio3d.colorado.edu/imod/
- Install IMOD inside Cygwin environment
- Required tools:
extractpieces
,blendmont
- After installation, verify tools are accessible in Cygwin
- Download Cygwin installer from https://cygwin.com/
- Run installer and install to
C:\cygwin64\
- During package selection, ensure these are included:
- gcc-core, gcc-g++
- make, cmake
- wget, curl (for downloading)
- Download IMOD from https://bio3d.colorado.edu/imod/
- Install IMOD following their instructions for Cygwin
- Verify installation:
Both commands should return valid paths.
# Open Cygwin terminal and test: which extractpieces which blendmont
Run the verification script:
python check_standalone_ready.py
This will check:
- Python packages installation
- Cygwin accessibility
- IMOD tools availability
- Disk space
- Download
OME_TIFF_Batch_Converter.exe
- Double-click to run the application
- No Python installation required!
- Install Python dependencies:
pip install -r requirements.txt
- Run the application:
python ome_tiff_batch_gui_v2.py
-
Select Folder: Choose folder containing .mrc files
-
Options:
- ✅ Recursive: Search subfolders for .mrc files
- For large images (>2G pixels):
- ✅ Create H5 file: Creates HDF5 files compatible with BigDataViewer
- ✅ Create reduced resolution TIFF: Creates downsampled TIFF files
- Note: Both options are independent - you can select none, one, or both
-
Processing: Click "Start Batch Processing"
For each input file image.mrc
, the tool creates:
Always created:
image.ome.tif
- Original resolution OME-TIFF with calibration
For large images (>2G pixels), optional files:
image.h5
+image.xml
- HDF5 format for BigDataViewer (if "Create H5 file" is checked)image_reduced.ome.tif
- Reduced resolution TIFF (if "Create reduced resolution TIFF" is checked)
Note: For large images, you can choose to create:
- Only HDF5 files
- Only reduced resolution TIFF
- Both HDF5 and reduced TIFF
- Neither (only original OME-TIFF)
- OME-TIFF files: Open directly in ImageJ/Fiji
- HDF5 files: Use BigDataViewer plugin in ImageJ
Plugins > BigDataViewer > Open XML/HDF5
- Select the
.xml
file
python create_standalone.py
This creates dist/OME_TIFF_Batch_Converter.exe
Each .mrc file must have a corresponding .mdoc file with the same name:
montage001.mrc
→montage001.mrc.mdoc
The .mdoc file must contain a PixelSpacing
entry for calibration.
-
"Cygwin not found"
- Ensure Cygwin is installed in standard location
- Check paths in error message
-
"IMOD tools not found"
- Verify IMOD installation in Cygwin
- Test
extractpieces
andblendmont
in Cygwin terminal
-
"No .mdoc file found"
- Ensure .mdoc files exist alongside .mrc files
- Check file naming convention
-
"Could not read pixel size"
- Verify .mdoc file contains
PixelSpacing = X.X
line - Check file encoding (should be UTF-8 or ASCII)
- Verify .mdoc file contains
check_standalone_ready.py
- Comprehensive system check- Test with small files first
- Check Windows Event Viewer for detailed error logs
- Input: SerialEM .mrc montages with .mdoc metadata
- Output: OME-TIFF (pyramidal), HDF5 + XML (BigDataViewer)
- Extract pieces from montage using IMOD
extractpieces
- Blend montage using IMOD
blendmont
- Convert to OME-TIFF with proper calibration
- Generate pyramid levels for efficient viewing
- Optional HDF5 creation for large images
- Pixel size read from .mdoc
PixelSpacing
field (in Ångström) - Automatically converted to micrometers for OME-XML
- Pyramid levels maintain correct calibration ratios
This software is provided as-is for research purposes. Please cite appropriately if used in publications.
For issues or questions:
- Check this README
- Run verification scripts
- Check GitHub issues
- Ensure all prerequisites are correctly installed