Implementations of the chemical structural and compositional similarity metric in R and Python
Asker BrejnrodiD, Madeleine ErnstiD, Piotr DworzyńskiiD, Lasse Buur Rasmussen, Pieter C. DorresteiniD, Justin J. J. van der HooftiD, Manimozhiyan ArumugamiD
Abstract
MotivationTandem mass spectrometry (MS/MS) has the potential to substantially improve metabolomics by acquiring spectra of fragmented ions. These fragmentation spectra can be represented as a molecular network, by measuring cosine distances between them, thus identifying signals from the same or similar molecules. Metrics that enable comparison between pairs of samples based on their metabolite profiles are in great need. Taking inspiration from the successful phylogeny-aware beta-diversity measures used in microbiome research, integrating chemical similarity information about the features in addition to their abundances could lead to better insights when comparing metabolite profiles. Chemical Structural and Compositional Similarity (CSCS) is a recently published similarity metric comparing the full set of signals and their chemical similarity between two samples. Efficient, scalable and easily accessible implementations of this algorithm is currently lacking. Here, we present an easily accessible and scalable implementation of CSCS in both python and R, including a version not weighted by intensity information. ResultsWe provide a new implementation of the CSCS algorithm that is over 300 times faster than the published implementation in R, making the algorithm suitable for large-scale metabolomics applications. We also show that adding chemical information enriches existing methods. Furthermore, the R implementation includes functions for exporting molecular networks directly from the mass spectral molecular networking platform GNPS for ease of use for downstream applications. Contactbrejnrod@sund.ku.dk Availabilitygithub.com/askerdb/rCSCS, github.com/askerdb/pyCSCS
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 9
- Assay
- 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
- Spec2Vec: Improved mass spectral similarity scoring through learning of structural relationships
Florian Huber, Lars Ridder, … Justin J. J. van der Hooft·PLoS Computational BiologyPeer-reviewed·Feb 16, 2021
- MS2DeepScore - a novel deep learning similarity measure for mass fragmentation spectrum comparisons
Florian Huber, Sven van der Burg, … Lars Ridder·bioRxiv·Apr 18, 2021
- SIMILE enables alignment of fragmentation mass spectra with statistical significance
Daniel G. C. Treen, Trent R. Northen, Benjamin P. Bowen·bioRxiv·Feb 24, 2021
- BLINK: Ultrafast tandem mass spectrometry cosine similarity scoring
Thomas V. Harwood, Daniel G. C. Treen, … Benjamin P. Bowen·bioRxiv·Feb 14, 2023
- BertMS-enabled molecular networking for unknown compounds dereplication
Luning Zhou, Wu Shuang, … Li Dehai·bioRxiv·Mar 19, 2026
- Identification of metabolites from tandem mass spectra with a machine learning approach utilizing structural features
Yuanyue Li, Michael Kuhn, … Peer Bork B·BioinformaticsPeer-reviewed·Sep 26, 2019