MSclassifR: an R package for supervised classification of mass spectra with machine learning methods
Alexandre GodmeriD, Yahia BenzeraraiD, Emmanuelle VaroniD, Nicolas VézirisiD, Karen DruartiD, Renaud Mozet, Mariette MatondoiD, Alexandra AubryiD, Quentin Giai GianettoiD
Abstract
MSclassifR is an R package that has been specifically designed to improve the classification of mass spectra obtained from MALDI-TOF mass spectrometry. It offers a comprehensive range of functions that are focused on processing mass spectra, identifying discriminant m/z values, and making accurate predictions. The package introduces innovative algorithms for selecting discriminating m/z values and making predictions. To assess the effectiveness of these methods, extensive tests were conducted using challenging real datasets, including bacterial subspecies of the Mycobacterium abscessus complex, virulent and avirulent phenotypes of Escherichia coli, different species of Streptococci and nasal swabs from individuals infected and uninfected with SARS-CoV-2. Additionally, multiple datasets of varying sizes were created from these real datasets to evaluate the robustness of the algorithms. The results demonstrated that the Machine Learning-based pipelines in MSclassifR achieved high levels of accuracy and Kappa values. On an in-house dataset, some pipelines even achieved more than 95% mean accuracy, whereas commercial system only achieved 62% mean accuracy. Certain methods showed greater resilience to changes in dataset sizes when constructing Machine Learning-based pipelines. These simulations also helped determine the minimum sizes of training sets required to obtain reliable results. The package is freely available online, and its open-source nature encourages collaborative development, customization, and fosters innovation within the community focused on improving diagnosis based on MALDI-TOF spectra. Key pointsO_LIMSclassifR is a comprehensive R package enabling the construction of data analysis pipelines for the precise classification of mass spectra. C_LIO_LIOur R package contains an innovative method for variable selection from random forests, which delivered excellent results on real data. C_LIO_LIIn-depth analysis of various machine learning-based pipelines using our package allowed us to make conclusions about the optimal m/z selection and prediction methods depending on the size of the training dataset. C_LIO_LIUsing a publicly available dataset of mass spectra obtained from various MALDI-TOF instruments across different countries, MSclassifR is able to build robust pipelines capable of adapting to different instruments in an automatic way. C_LIO_LIWhen tested on an in-house dataset, MSclassifR pipelines consistently outperformed a commercial software in terms of prediction accuracy. C_LI
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 7
- FWCI
- 2.59
- Field percentile
- top 11%
- Organism
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Pre-trained Maldi Transformers improve MALDI-TOF MS-based prediction
Gaetan De Waele, Gerben Menschaert, … Willem Waegeman·Computers in Biology and MedicinePeer-reviewed·Jan 22, 2025
- MicrobeMS - A MATLAB Toolbox for Microbial Identification Based on Mass Spectrometry
Peter Lasch·bioRxiv·May 12, 2026
- Effect of Data Heterogeneity in Clinical MALDI-TOF Mass Spectra Profiles on Direct Antimicrobial Resistance Prediction through Machine Learning
Youngjun Park, Michael Weig, … Anne-Christin Hauschild·bioRxiv·Oct 18, 2024
- MS2Lipid: a lipid subclass prediction program using machine learning and curated tandem mass spectral data
Nami Sakamoto, Takaki Oka, … Hiroshi Tsugawa·MetabolitesPeer-reviewed·Nov 7, 2024
- Improved MALDI-TOF MS based antimicrobial resistance prediction through hierarchical stratification
Caroline Weis, Bastian Rieck, … Karsten Michael Borgwardt·bioRxiv·Apr 13, 2022
- Spec2Class: Accurate Prediction of Plant Secondary Metabolite Class using Deep Learning
Victoria Poltorak, Nir Shachaf, … David Zeevi·bioRxiv·Mar 17, 2024