Skip to content
Back to skills

Tandem Mass Spectrum Normalization

ASecurity

Use when preparing tandem MS/MS datasets for cross-dataset similarity

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
ai-agentsgogit

Works with

  • cursor

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add HolobiomicsLab/asb-skill-collections --skill tandem-mass-spectrum-normalization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tandem Mass Spectrum Normalization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tandem Mass Spectrum Normalization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/holobiomicslab-tandem-mass-spectrum-normalization/badge)](https://www.skillsdirectory.com/skills/holobiomicslab-tandem-mass-spectrum-normalization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tandem-mass-spectrum-normalization
description: Use when preparing tandem MS/MS datasets for cross-dataset similarity
  analysis or spectral matching, particularly when datasets originate from different
  instruments, acquisition dates, or sample preparation protocols that may introduce
  systematic variations in peak intensities.
license: CC-BY-4.0
metadata:
  edam_operation: http://edamontology.org/operation_3434
  edam_topics:
  - http://edamontology.org/topic_0121
  - http://edamontology.org/topic_3520
  tools:
  - compareMS2
  techniques:
  - LC-MS
  license_tier: open
  provenance_tier: literature
derived_from:
- doi: 10.1021/acs.jproteome.2c00457
  title: compareMS2 2.0
evidence_spans:
- compareMS2 calculates the global similarity between tandem mass spectrometry datasets
claims: []
provenance:
  collection: https://w3id.org/holobiomicslab/asb-skill/collection/metabolomics/v2
  assembled_by: scripts/collect_metabolomics_collection.py
  sources:
  - build: coll_comparems2_2_0_cq
    doi: 10.1021/acs.jproteome.2c00457
    title: compareMS2 2.0
  dedup_kept_from: coll_comparems2_2_0_cq
schema_version: 0.2.0
attribution:
  generator: AgenticScienceBuilder
  original_doi: 10.1021/acs.jproteome.2c00457
  all_source_dois:
  - 10.1021/acs.jproteome.2c00457
  zenodo_doi: 10.5281/zenodo.20794027
  curators: []
  promoter: Louis-Félix Nothias
  sponsor: CNRS & Université Côte d'Azur
---

# tandem-mass-spectrum-normalization

## Summary

Normalize fragment ion intensities within individual tandem mass spectra to enable fair pairwise comparison across datasets with varying instrument sensitivities and acquisition conditions. This preprocessing step produces intensity vectors suitable for cosine similarity computation without bias from absolute abundance differences.

## When to use

Apply this skill when preparing tandem MS/MS datasets for cross-dataset similarity analysis or spectral matching, particularly when datasets originate from different instruments, acquisition dates, or sample preparation protocols that may introduce systematic variations in peak intensities. Use it before computing pairwise spectral similarities or constructing distance matrices for phylogenetic or quality-control applications.

## When NOT to use

- When absolute quantitative information (e.g., protein abundance, isoform ratios) must be preserved across datasets—normalization removes abundance information.
- When comparing spectra from the same instrument run with consistent tuning and calibration; normalization within a single homogeneous dataset may introduce noise.
- When input spectra are already pre-normalized or when the analysis goal is instrument-specific intensity profiling rather than spectral pattern matching.

## Inputs

- tandem mass spectrometry datasets (mzML or mzXML format)
- parsed spectrum objects containing precursor mass, retention time, and fragment ion peaks (m/z and intensity pairs)

## Outputs

- normalized fragment ion intensity vectors (per spectrum)
- normalized spectra ready for pairwise cosine similarity computation

## How to apply

For each spectrum independently, extract the fragment ion m/z values and their corresponding intensities. Apply a normalization scheme (typically L2 normalization or intensity rank-based rescaling) to scale intensities to a common reference range (e.g., 0–1 or unit vector norm) within that spectrum only. Preserve the m/z axis unchanged; normalize only the intensity dimension. This ensures that two spectra with identical fragment patterns but different absolute intensities produce high cosine similarity, while preventing high-abundance spectra from dominating pairwise comparisons. After normalization, store normalized intensity vectors alongside m/z values for downstream similarity computation.

## Related tools

- **compareMS2** (performs pairwise cosine similarity computation on normalized spectra and aggregates similarities into global dataset distance metrics) — https://github.com/524D/compareMS2

## Evaluation signals

- Each normalized spectrum's intensity vector should have unit L2 norm (or fall within [0, 1] if rank/percentile normalization is used)
- Two spectra with identical m/z values but 10-fold intensity differences should produce cosine similarity ≥ 0.99 after normalization
- Pairwise similarity distribution should remain bounded in [0, 1] with no negative or out-of-range values
- Retention time and precursor mass values should remain unchanged after normalization
- Global similarity scores computed from normalized spectra should be symmetric and reflexive (identical datasets yield distance 0)

## Limitations

- Normalization removes absolute abundance information; cannot be used to quantify protein copy numbers or isoform ratios post-hoc
- Low-intensity fragment ions (below noise threshold) may be lost or distorted by normalization; noise filtering should precede normalization
- Choice of normalization scheme (L2, L1, rank-based) affects downstream similarity thresholds and requires instrument-specific validation
- Normalization assumes all spectra have sufficient signal; spectra with very few or very abundant peaks may become distorted

## Evidence

- [other] Normalize fragment ion intensities within each spectrum independently.: "Normalize fragment ion intensities within each spectrum independently."
- [other] Compute pairwise cosine similarity between all spectra across the two datasets using normalized m/z and intensity vectors.: "Compute pairwise cosine similarity between all spectra across the two datasets using normalized m/z and intensity vectors."
- [readme] compareMS2 is a tool for direct comparison of tandem mass spectrometry datasets, typically from liquid chromatography-tandem mass spectrometry (LC-MS/MS), defining similarity as a function of shared (similar) spectra and distance as the inverse of this similarity.: "compareMS2 is a tool for direct comparison of tandem mass spectrometry datasets, typically from liquid chromatography-tandem mass spectrometry (LC-MS/MS), defining similarity as a function of shared"
- [readme] Data with identical spectral content thus have similarity 1 and distance 0.: "Data with identical spectral content thus have similarity 1 and distance 0."

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.