Related Experiment Video
Updated: Aug 28, 2026

Large Scale Non-targeted Metabolomic Profiling of Serum by Ultra Performance Liquid Chromatography-Mass Spectrometry (UPLC-MS)
Published on: March 14, 2013
PyCompound: An Open-Source Python Package for Spectral-Library Matching in Mass Spectrometry-Based Metabolomics
Hunter Dlugas1, Xiang Zhang2, Xun Bao3,4
1Biostatistics and Bioinformatics Core, Karmanos Cancer Institute, Wayne State University, Detroit, MI 48201, USA.
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.
More Related Videos
Related Concept Videos
Mass Spectrometry: Overview
Mass Spectrum: Interpretation
Mass Spectrum
Mass Spectrometry: Complex Analysis
GC–MS is a powerful hyphenated method commonly used in forensics and environmental...
Peptide Identification Using Tandem Mass Spectrometry
This technique helps gather information regarding the protein from which the peptide was obtained and to study the peptides’ amino acid sequence. Identifying peptides from a complex mixture is an important component of the growing field of...
Mass Spectrometry of Amines

