Converting TIFF to OME-TIFF (using Bio-Formats)
Learn to convert a TIFF stack ZIP file to an open source format (OME-TIFF) using the Bio-Formats command line tools:
Download the TIFF stack ZIP file that you want to convert. For example, go to this dataset https://doi.org/10.25550/2E-DST8, scroll down to the “Imaging Data” section and click the
EuTH12.5mm1.zipfile to download to your computer.
Unzip the downloaded file. This will create a folder in your computer containing the stack of TIFF files. For the example above, the name of this folder will be
DMSO12.5mm1_headand under that folder you’ll see a sequence of 511 TIFF files named
Download the Bio-Formats command line tools file (
bftools.zip) from: https://bio-formats.readthedocs.io/en/stable/users/comlinetools/index.html.
bftools.zipfile to a new folder in your computer. By default, this folder will be called
bftools. (This zip file contains the bundled jar and you no longer need to download
- Create a
.patternfile: In the folder with the stack of TIFF files, create a text file called
stack.patterncontaining a single line informing the converting tool how the files should be grouped. For the example given above, the line in the pattern file will be:
The pattern file can have any name but must use the extension
.patternand must be in the same folder as the TIFF files. (For more information on pattern files please see https://docs.openmicroscopy.org/bio-formats/6.9.1/formats/pattern-file.html) )
- Open a Terminal window (in Mac OSX or Linux) or a CMD window (in Windows) and change your directory to the
bftoolsfolder and type the following command:
./bfconvert /Path_to_FB_DATA_DIRECTORY/DMSO12.5mm1_head/stack.pattern /Path_to_FB_DATA_DIRECTORY/DMSO12.5mm1_head.ome.tif
Where we assume the FB_DATA_DIRECTORY is the folder where you initially saved the ZIP file downloaded from FaceBase (e.g.,
EuTH12.5mm1.zip). The bfconvert tool will create the resulting OME-TIFF file in this same folder.
- This OME-TIFF file may be visualized with an open source viewer such as Fiji, which is available from https://imagej.net/software/fiji/downloads.