SpectriPy: Enhancing Cross-Language Mass Spectrometry Data Analysis with R and Python

Mass spectrometry (MS) is a key technology used across multiple fields, including biomedical research and life sciences. Technological advancements result in increasingly large and complex data sets and analyses must be tailored to the experimental and instrumental setups. Excellent software libraries for such data analysis are available in both R and Python, including R packages from the RforMassSpectrometry initiative and Python libraries like matchms, spectrum_utils, Pyteomics and pyOpenMS. Having partially complimentary functionality, these software cover different aspects of MS-based proteomics or metabolomics data analysis. The reticulate R package provides an R interface to Python enabling interoperability between the two programming languages. Here we present the SpectriPy R package that builds upon reticulate and provides functionality to efficiently translate between R and Python MS data structures. It can convert between R’s Spectra::Spectra and Python’s matchms.Spectrum and spectrum_utils.spectrum.MsmsSpectrum objects and includes functionality to directly apply spectral similarity, filtering, normalization, etc. routines from the Python matchms library on MS data in R. SpectriPy hence enables and simplifies the integration of R and Python for MS data analysis, empowering data analysts to benefit from the full power of algorithms in both programming languages. Furthermore, software developers can reuse algorithms across languages rather than re-implementing them, enhancing efficiency and collaboration.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-09-15
DOI
https://doi.org/10.5281/zenodo.17119120
Primary Topic
Geochemistry and Geologic Mapping
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SpectriPy: Enhancing Cross-Language Mass Spectrometry Data Analysis with R and Python

Zenodo (CERN European Organization for Nuclear Research)
Geochemistry and Geologic Mapping
article

SpectriPy: Enhancing Cross-Language Mass Spectrometry Data Analysis with R and Python

article en

Abstract

Mass spectrometry (MS) is a key technology used across multiple fields, including biomedical research and life sciences. Technological advancements result in increasingly large and complex data sets and analyses must be tailored to the experimental and instrumental setups. Excellent software libraries for such data analysis are available in both R and Python, including R packages from the RforMassSpectrometry initiative and Python libraries like matchms, spectrum_utils, Pyteomics and pyOpenMS. Having partially complimentary functionality, these software cover different aspects of MS-based proteomics or metabolomics data analysis. The reticulate R package provides an R interface to Python enabling interoperability between the two programming languages. Here we present the SpectriPy R package that builds upon reticulate and provides functionality to efficiently translate between R and Python MS data structures. It can convert between R’s Spectra::Spectra and Python’s matchms.Spectrum and spectrum_utils.spectrum.MsmsSpectrum objects and includes functionality to directly apply spectral similarity, filtering, normalization, etc. routines from the Python matchms library on MS data in R. SpectriPy hence enables and simplifies the integration of R and Python for MS data analysis, empowering data analysts to benefit from the full power of algorithms in both programming languages. Furthermore, software developers can reuse algorithms across languages rather than re-implementing them, enhancing efficiency and collaboration.

Zenodo (CERN European Organization for Nuclear Research)
Eurac Research (IT)
Responsible consumption and production
Openalex Percentile: Top 42%
Geochemistry and Geologic Mapping
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.