agentsclimarketplace

Spectral data quality assurance

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/spectral-data-quality-assurance

Use when when importing raw mass spectrometry data in formats like mzML, mzXML, msp, MGF, or JSON and you need to ensure spectral data quality before proceeding to similarity comparisons or other downstream analyses.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill spectral-data-quality-assurance

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.6 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it

spectral-data-quality-assurance

Summary

Apply basic peak filtering and metadata validation to mass spectrometry spectral data to ensure data accuracy and integrity during pre-processing. This skill removes noise peaks, normalizes intensities, and validates cleaned peak lists against test suites before downstream analysis.

When to use

When importing raw mass spectrometry data in formats like mzML, mzXML, msp, MGF, or JSON and you need to ensure spectral data quality before proceeding to similarity comparisons or other downstream analyses. Apply this skill when raw spectra contain low-intensity noise peaks or when metadata requires cleaning and validation.

When NOT to use

  • When spectral data has already been pre-processed and validated by upstream quality control (QC) pipelines
  • When the analysis goal does not require peak-level filtering (e.g., metadata-only comparisons)
  • When working with vendor-curated reference libraries already guaranteed to meet quality standards

Inputs

  • Raw mass spectrometry spectral data files (mzML, mzXML, msp, MGF, JSON formats)
  • Spectral objects with peak lists and metadata
  • Existing pytest test suite for validation

Outputs

  • Pre-processed spectral data with filtered peak lists
  • Cleaned and validated metadata
  • Spectral objects ready for similarity comparisons or further analysis
  • Test results confirming filtering logic correctness

How to apply

Load raw mass spectrometry spectral data using matchms import functionality for supported formats (mzML, mzXML, msp, MGF, JSON). Apply basic peak filtering operations including removal of low-intensity and noise peaks, followed by peak intensity normalization to standardize spectral representations. Perform metadata cleaning and validation in parallel. Validate that filtered peak lists pass the existing pytest test suite to confirm filtering logic correctness. Export pre-processed spectral data with cleaned peak lists in the original or compatible format for use in downstream workflow stages.

Related tools

  • matchms (Primary Python package providing peak filtering, metadata cleaning, and validation functionality for mass spectrometry data pre-processing) — https://github.com/matchms/matchms
  • pytest (Testing framework for validating that filtered peak lists pass existing test suite to confirm filtering logic correctness)

Examples

from matchms.importing_utils import load_from_msp; from matchms.filtering import default_filters; spectra = load_from_msp('raw_data.msp'); spectra = [default_filters(s) for s in spectra]; import pytest; pytest.main(['-v', 'test_filtering.py'])

Evaluation signals

  • Filtered peak lists contain no peaks below the configured intensity threshold and noise removal criteria are consistently applied across all spectra
  • Peak intensity values are normalized to a consistent scale (e.g., 0–1 or 0–100 range) across all filtered spectra
  • All pytest test cases pass without failure, confirming filtering logic is correct and no regressions were introduced
  • Metadata fields are populated, validated, and free of inconsistencies (e.g., missing or conflicting values)
  • Pre-processed spectral data can be successfully re-imported and re-exported in the same or compatible format without data loss

Limitations

  • Basic peak filtering does not account for instrument-specific artifacts or advanced denoising strategies; domain-specific tuning may be required for specialized analytical methods
  • Metadata validation relies on matchms-defined schemas; custom or non-standard metadata fields may not be recognized or validated
  • The skill is designed for pre-processing; it does not perform spectral alignment, deconvolution, or other advanced processing steps that may be necessary for certain MS/MS applications

Evidence

  • [readme] Matchms offers an array of tools for metadata cleaning and validation, alongside basic peak filtering, to ensure data accuracy and integrity: "Matchms offers an array of tools for metadata cleaning and validation, alongside basic peak filtering, to ensure data accuracy and integrity"
  • [other] Apply basic peak filtering operations including peak removal (e.g., low-intensity or noise peaks) and peak intensity normalization to ensure data accuracy and integrity.: "Apply basic peak filtering operations including peak removal (e.g., low-intensity or noise peaks) and peak intensity normalization to ensure data accuracy and integrity"
  • [other] Load raw mass spectrometry spectral data in supported formats (mzML, mzXML, msp, MGF, JSON) using matchms import functionality.: "Load raw mass spectrometry spectral data in supported formats (mzML, mzXML, msp, MGF, JSON) using matchms import functionality"
  • [other] Validate filtered peak lists pass existing pytest test suite to confirm filtering logic is correct.: "Validate filtered peak lists pass existing pytest test suite to confirm filtering logic is correct"
  • [readme] It facilitates the implementation of straightforward, reproducible workflows, transforming raw data from common mass spectra file formats into pre- and post-processed spectral data: "It facilitates the implementation of straightforward, reproducible workflows, transforming raw data from common mass spectra file formats into pre- and post-processed spectral data"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.