Skip to content

Pitt-IshiharaLab/compressiontools

Repository files navigation

compressiontools

This repository contains scripts and instructions for applying Jetraw image compression to microscopy data. The repository is maintained by the Ishihara lab at the University of Pittsburgh and serves as an internal resource for the lab and its collaborators.

While this is a public repository, request for technical support should be directed to the Jetraw team.

0. About Jetraw

Jetraw technology achieves ~80% reduction of file size with essentially no loss of image quality thanks to its metrologically correct compression algorithm.

Jetraw can only compress images from sCMOS cameras. Thus, Jetraw compression is applicable to most modern widefield, lighsheet, and spinning disc confocal microscopes, but NOT applicable to detector-based systems such as scanning confocal and multiphoton microscopes.

Opening Jetraw images is free, while image compression requires a software license and hardware specific parameters.

1. Basic usage with Fiji and Jetraw UI

1.1 Open compressed images in Fiji

Tested to work on: Windows/macOS + Fiji 20231211-1317 with Bio-Formats 7.1.0

All necessary files are found in these links (ask Keisuke for access): for VBC and for Pitt

  1. Install Jetraw UI from the link above.
  • Installation files are *.msi for Windows and *.dmg for macOS.
  • For Windows computer, make sure C:\Program Files\Jetraw\bin64 is added to the "Path" in Environmental Variables > System Variables. This may require admin privileges.
  1. Determine the Bio-Formats version in your Fiji installation (go to: path_to_fiji_app/jars/bio-formats/).
  2. Overwrite formats-bsd-x.y.z.jar with the file of the same name, found in the link above.
  3. Restart Fiji and check that you can open CQ1-compressed.tiff under the \images folder in this repository.

Warning: Avoid updating this Fiji installation or its Bio-Formats plugin as it can break the Jetraw image read capability. If this breaks, you will need to reinstall Fiji and repeat all the steps. A pro-tip for using Fiji is to keep an archive of a working Fiji installation.

Windows users: If you're annoyed at how long it takes to decompress the Fiji zip file upon installation, consider using a free archive utility like 7zip. It's much faster.

1.2 Compress images with Jetraw UI

  1. Obtain the DAT file specific to your microscope from the link above.
  2. Obtain the associated software license key.
  3. Open Jetraw UI. Load DAT file. Apply license key.
  4. To compress an image (or all images within a folder):
  • Load an input image such as CQ1-raw.tiff.
  • Select Action: compress.
  • Select identifier: 306296 No binning. (Select appropriate setting for binned images.)
  • Specify destination.
  • Click GO.
  1. Check that the resulting file size is smaller than the input.
  2. Check that you can open the compressed image in Fiji.

Note: Jetraw UI will not copy non-TIFF files to the destination folder. One way to overcome this is to use the --copy-others flag when calling dpcore. Another is to use a custom script that copies non-TIFF files. see Advanced usage.

1.3 Decompress images with Jetraw UI

  1. Load a compressed image such as CQ1-compressed.tiff.
  2. Select Action: decompress.
  3. Specify destination.
  4. Click GO.

2. Advanced usage

3. Other information

Microscopes tested by Keisuke

Note to self: add DAT file and default settings here

Location Microscope Camera
M40 VBC BioOptics Olympus spinning disc confocal Hamamatsu Orca Flash x 2
M44 VBC BioOptics Olympus spinning disc confocal Hamamatsu Orca Fusion
M45 VBC BioOptics Viventis Lightsheet LS1 Andor Zyla 4.2
CQ1 Daido Ishihara lab Yokogawa CQ1 spinning disc confocal Hamamatsu Orca Flash

Other resources

About

scripts to facilitate Jetraw compression of image files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors