mzwiki Mass spectrometry
knowledge commons by UniMZ
Guides & terminologyAll Guides
Terminology

Library match

A query–reference comparison accepted under stated rules, with evidence that must remain distinct from an identity claim.

Definition

A library match links a query spectrum to a reference entry after a search's candidate and acceptance rules have been applied. The useful result includes the reference accession, score definition, matched-peak count, precursor relationship, and experimental metadata. It is more informative than a compound name copied from the first result row. Search tools can expose several hits per spectrum; retaining alternatives makes review possible. [1]

One result, several questions

Hypothetical example: a positive-mode [M+H]+ query returns candidate A at cosine 0.92 with six matched peaks and candidate B at 0.90 with seven. A is first under that scoring rule. The small difference does not establish that A is uniquely correct, and a greater matched-peak count does not automatically make B preferable. Inspect which peaks distinguish them, unmatched signal, adduct compatibility, and possible mixed spectra.

Keep separate records for the raw comparison and the interpretation: “A passed the search threshold” is not equivalent to “A was confirmed with an authentic standard.” If the real compound is missing from the searched collection, the highest-scoring available entry can still be wrong.

Common confusion

A cosine of 0.92 does not mean 92% correctness. Error estimation depends on the method, data, candidate collection, and accepted set; research on small-molecule matching demonstrates project-dependent behavior. [2] State an exact-compound or analog search explicitly, and preserve unresolved alternatives.

Check your understanding

What should accompany a reported name?

The query identifier, reference accession and release, ion assignment, search settings, supporting spectrum, alternatives, and evidence-specific confidence statement.

Use it in a Guide

References & further reading

  1. GNPS. Spectral Library Search documentation.

    Official documentation checked 7 October 2026. Supports distinct precursor/fragment tolerances, peak filters, score and matched-peak requirements, and exact versus analog search options. Interface defaults are not recommended as universal scientific thresholds.

  2. Scheubert et al. (2017). Significance estimation for large scale metabolomics annotations by spectral matching. Nature Communications 8, 1494.

    Primary publisher-indexed discussion and methods checked; a later direct open encountered an authentication redirect. Supports project-dependent score/error relationships and method-specific significance estimation. No fixed cosine cutoff, universal FDR, or guarantee of isomer identification is transferred.

Help make this article clearer.Edit this article →Suggest a correction →