Automated Classification of Mass Spectra
Overview
Functions to classify mass spectra in known categories and to determine discriminant mass-to-charge values (m/z). Includes easy-to-use preprocessing pipelines for Matrix Assisted Laser Desorption Ionisation - Time Of Flight Mass Spectrometry (MALDI-TOF) mass spectra, methods to select discriminant m/z from labelled libraries, and tools to predict categories (species, phenotypes, etc.) from selected features. Also provides utilities to build design matrices from peak intensities and labels. While this package was developed with the aim of identifying very similar species or phenotypes of bacteria from MALDI-TOF MS, the functions of this package can also be used to classify other categories associated to mass spectra; or from mass spectra obtained with other mass spectrometry techniques. Parallelized processing and optional C++-accelerated functions are available (notably to deal with large datasets) from version 0.5.0. If you use this package in your research, please cite the associated publication (doi:10.1016/j.eswa.2025.128796). For a comprehensive guide, additional applications, and detailed examples, see https://github.com/agodmer/MSclassifR_examples.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
Show 6 earlier changesHide 6 earlier changes
- ERROR11 OK, 1 ERROR2026-04-25
- NOTE13 OK, 1 NOTE2026-04-22
- ERROR12 OK, 1 NOTE, 1 ERROR2026-04-18
- NOTE13 OK, 1 NOTE2026-04-08
- ERROR12 OK, 1 NOTE, 1 ERROR2026-04-07
- NOTE13 OK, 1 NOTE2026-03-10
Documentation
- Help pages
- 25 (3 internal)
- Examples that run
- 31%4 run in a plain check (2 of them under a condition) · 4 only when donttest examples are enabled (R CMD check --as-cran) · 5 never run
- Exported functions with examples
- 93%
- Documented parameters
- 96%
- Return-value docs
- 100%
- Help pages citing references
- 28%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/agodmer/msclassifr_examples on 2026-10-11.
GitHub Pages site last deployed 2025-07-09
Dependencies
Installing MSclassifR adds 150 packages (81 with compiled code, 128 MB of source tarballs). Heaviest: stringi 11 MB, ggformula 6.0 MB, ggplot2 6.0 MB. 3 more not on CRAN are not measured.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.5.0Latest2025-12-09 · current release · diff ↗ ·
removed 1 export
pattern:^[[:alpha:]]+added 14 exports
PeakDetection, build_X_from_peaks_fast, build_XY_from_peaks, PredictLogReg, PredictFastClass, SelectionVar, SelectionVarStat, PlotSpectra, fast_mda, fast_cvpvi, LogReg, LogReg_rf_fast, SignalProcessing, smote_classif - unarchivedReturned to CRAN2025-07-02
- 0.4.02025-07-02 · diff ↗
- archivedRemoved from CRAN2025-06-30requires archived package 'UBL'
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.3.32023-08-09 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.3.22023-03-28 · diff ↗
- 0.3.12022-09-29 · diff ↗
- 0.3.02022-08-13 · diff ↗
- RR 4.2.0 released · 2022-04-22
- unarchivedReturned to CRAN2022-02-25
- archivedRemoved from CRAN2022-02-25check problems were not corrected in time
- 0.2.02022-02-25 · diff ↗
Show 2 earlier eventsHide 2 earlier events
- 0.1.02022-01-18
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-01-18
- Total releases
- 8 / 4 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.0
- Bundled data
- 2.3 MB / 2 files
- Download size
- 2.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("MSclassifR")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.