Created to help backup data from a CyTOF system (Windows)
I needed a method to quickly compress the IMD files on a Fluidigm CyTOF (Helios) system so they could be more effectively backed up.
IMD files are VERY large (typically 10s of GBs) but compress well (e.g. 90%).
Speed is dependent on the CPU, HDD and 7zip algorithm, but with the default settings and a Fluidigm PC supplied late 2018 (Dual Intel Xeon E5-2643 v4 3.4 GHz, with 6 cores and 12 threads each), a 55 GB IMD file is compressed to <1GB in about 40 seconds.
This script will:
- Look in a specified directory, and all subdirectories, for IMD files.
- Check if they have previously been zipped.
- If not, each IMD file will be individually zipped into a 7z file with the same name as the IMD file.
This script will NOT:
- Delete the IMD files after compression (i.e. it only creates zipped copies of the IMD files. It's not intended to "clean up" the drive or save space.
- Backup the 7z files (you will have your own method for this).
https://github.com/mcmilk/7-Zip-zstd/releases (Optional - download the Codecs.7z if you want to use the slightly faster BROTLI algo)
Add the root directory you wish to backup at this location in the file:
SET WORKDIR=
e.g.
SET WORKDIR=E:\User_Data\
Optionally set the command line options for 7Zip. Currently, they are set as follows and therefore require the additional codecs:
SET ZIPOPTIONS=-mm=BROTLI -mx=2 -mmt24
https://github.com/nolanlab/cytof-backer-upper
https://onlinelibrary.wiley.com/doi/full/10.1002/cyto.a.23879
Thanks to Samuel Granjeaud for some help improving the script!