Related Experiment Video
Updated: Oct 21, 2025

Navigating the Mass Spectrometry-Based Proteomic Data Using Free Computational Tools
Published on: August 19, 2025
mspack: efficient lossless and lossy mass spectrometry data compression
Felix Hanau1, Hannes Röst2, Idoia Ochoa3,4
1Department of Computer Science, University of Illinois at Urbana-Champaign, Urbana, IL 61801, USA.
Motivation:
Mass spectrometry (MS) data, used for proteomics and metabolomics analyses, have seen considerable growth in the last years. Aiming at reducing the associated storage costs, dedicated compression algorithms for MS data have been proposed, such as MassComp and MSNumpress. However, these algorithms focus on either lossless or lossy compression, respectively, and do not exploit the additional redundancy existing across scans contained in a single file. We introduce mspack, a compression algorithm for MS data that exploits this additional redundancy and that supports both lossless and lossy compression, as well as the mzML and the legacy mzXML formats. mspack applies several preprocessing lossless transforms and optional lossy transforms with a configurable error, followed by the general purpose compressors gzip or bsc to achieve a higher compression ratio.
Results:
We tested mspack on several datasets generated by commonly used MS instruments. When used with the bsc compression backend, mspack achieves on average 76% smaller file sizes for lossless compression and 94% smaller file sizes for lossy compression, as compared with the original files. Lossless mspack achieves 10-60% lower file sizes than MassComp, and lossy mspack compresses 36-60% better than the lossy MSNumpress, for the same error, while exhibiting comparable accuracy and running time.
Availability And Implementation:
mspack is implemented in C++ and freely available at https://github.com/fhanau/mspack under the Apache license.
Supplementary Information:
Supplementary data are available at Bioinformatics online.
Related Concept Videos
Mass Spectrometry: Overview
Mass Spectrometry: Molecular Fragmentation Overview
One type of fragmentation pattern is the cleavage of a single bond in the molecular ion. The cleavage leads to a radical and a cation. The cleavage can...
Mass Spectrometry: Complex Analysis
GC–MS is a powerful hyphenated method commonly used in forensics and environmental...
Mass Spectrometers
High-Resolution Mass Spectrometry (HRMS)
Tandem Mass Spectrometry
Secondary fragmentations occur in the interaction cell and can be induced by various factors. Fragmentation induced by collision with inert gases, such as N2, Ar, He, etc., is called collision-induced...

