PyCompound: An Open-Source Python Package for Spectral-Library Matching in Mass Spectrometry-Based Metabolomics.
Hunter Dlugas, Xiang Zhang, Xun Bao, Jing Li, Ikuko Kato, Seongho Kim
Biostatistics and Bioinformatics Core, Karmanos Cancer Institute, Wayne State University, Detroit, MI 48201, USA. · Department of Chemistry, University of Louisville, Louisville, KY 40292, USA.
Key points
From the paper's conclusion- We present PyCompound, an open-source Python package for spectral-library matching with flexible preprocessing, parameter optimization, and diverse similarity measures for both nominal-resolution and high-resolution mass spectrometry data.
Abstract
Spectral-library matching is a widely used approach for compound annotation in mass spectrometry (MS)-based metabolomics, yet annotation performance is influenced by spectrum preprocessing, parameter selection, and similarity-measure choice. We present PyCompound, an open-source Python package for spectral-library matching with flexible preprocessing, parameter optimization, and diverse similarity measures for both nominal-resolution and high-resolution mass spectrometry data. PyCompound implements six preprocessing procedures, nineteen similarity measures, including the newly developed Rényi entropy similarity in this work for spectral-library matching, user-defined composite similarity scores, and automated parameter optimization using grid search and differential evolution. The software supports common spectral formats and is accessible through a Python API, command-line interface, and interactive Shiny application. The software was validated using public GNPS LC-MS/MS and WebNIST GC-MS datasets, where the newly developed Rényi entropy similarity demonstrated annotation performance comparable to that of the established Shannon and Tsallis entropy similarity measures. PyCompound provides a flexible platform for practical compound annotation through configurable preprocessing workflows, diverse similarity measures, and automated parameter optimization.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- COSine: An Open, GUI-Based Tool for Robust Cosine-Similarity Scoring and Mirror Plotting of High-Resolution Mass Spectra MatchingAnalytica · 2026
- mzmine: Unifying Mass Spectrometry Data Processing.Methods in molecular biology (Clifton, N.J.) · 2026
- MetaboAnnotate: An AI-powered Multiagent Framework for Integrating Annotation Tools for Untargeted Metabolomics.Analytical chemistry · 2026
- Comprehensive Curation and Harmonization of Small-Molecule MS/MS Libraries in SpectraverseAnalytical Chemistry · 2026
- Real-time repository-scale spectral search and global molecular networking with HNSW-MSbioRxiv · 2026
- Structure-centric searching enables global mapping of the public metabolomeNature Biotechnology · 2026