Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Jul 29;16(1):88.
doi: 10.1186/s13321-024-00878-1.

Reproducible MS/MS library cleaning pipeline in matchms

Affiliations

Reproducible MS/MS library cleaning pipeline in matchms

Niek F de Jonge et al. J Cheminform. .

Abstract

Mass spectral libraries have proven to be essential for mass spectrum annotation, both for library matching and training new machine learning algorithms. A key step in training machine learning models is the availability of high-quality training data. Public libraries of mass spectrometry data that are open to user submission often suffer from limited metadata curation and harmonization. The resulting variability in data quality makes training of machine learning models challenging. Here we present a library cleaning pipeline designed for cleaning tandem mass spectrometry library data. The pipeline is designed with ease of use, flexibility, and reproducibility as leading principles.Scientific contributionThis pipeline will result in cleaner public mass spectral libraries that will improve library searching and the quality of machine-learning training datasets in mass spectrometry. This pipeline builds on previous work by adding new functionality for curating and correcting annotated libraries, by validating structure annotations. Due to the high quality of our software, the reproducibility, and improved logging, we think our new pipeline has the potential to become the standard in the field for cleaning tandem mass spectrometry libraries.

Keywords: Library cleaning; Mass spectrometry; Metabolomics; Metadata; Python Package.

PubMed Disclaimer

Conflict of interest statement

MW is a cofounder of Ometa Labs LLC. JJJvdH is currently a member of the Scientific Advisory Board of NAICONS Srl., Milano, Italy, and is consulting for Corteva Agriscience, Indianapolis, IN, USA. All other authors declare no conflict of interest.

Figures

Fig. 1
Fig. 1
Graphical overview of the library cleaning pipeline
Fig. 2
Fig. 2
Visualization of the number of spectra in the GNPS library affected by the different filters. The central stacked bar graph splits the spectra into 3 groups. The orange group represents spectra that were completely removed by a filter, since they did not pass a metadata requirement. The blue group represents spectra that were repaired by at least one of the newly added repair functions focused on repairing the annotation. The grey group represents all other spectra, for which the metadata was harmonized, but the annotation or metadata was not affected by the newly added filters
Fig. 3
Fig. 3
Two real examples of GNPS library spectra that were cleaned in multiple ways by the library cleaning pipeline. The colors indicate the type of changes that were made to the metadata

References

    1. Aron AT, Gentry EC, McPhail KL, Nothias L-F, Nothias-Esposito M, Bouslimani A, Petras D, Gauglitz JM, Sikora N, Vargas F (2020) Reproducible molecular networking of untargeted mass spectrometry data using GNPS. Nat Protoc 15(6):1954–1991 10.1038/s41596-020-0317-5 - DOI - PubMed
    1. Beniddir MA, Kang KB, Genta-Jouve G, Huber F, Rogers S, Van Der Hooft JJ (2021) Advances in decomposing complex metabolite mixtures using substructure-and network-based computational metabolomics approaches. Nat Prod Rep 38(11):1967–1993 10.1039/D1NP00023C - DOI - PMC - PubMed
    1. Bittremieux W, Wang M, Dorrestein PC (2022) The critical role that spectral libraries play in capturing the metabolomics community knowledge. Metabolomics 18(12):94 10.1007/s11306-022-01947-y - DOI - PMC - PubMed
    1. Brungs C, Schmid R, Heuckeroth S, Mazumdar A, Drexler M, Šácha P, Dorrestein PC, Petras D, Nothias L-F, Nencka R (2024) Efficient generation of open multi-stage fragmentation mass spectral libraries
    1. de Jonge NF, Hecht H, van der Hooft J, Huber F (2023a) Cleaned libraries and settings matchms library cleaning pipeline Zenodo. 10.5281/zenodo.10160791. Accessed 20 Nov 2023

LinkOut - more resources