agentsclimarketplace

Species candidate ranking from spectral alignment

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/species-candidate-ranking-from-spectral-alignment

Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill species-candidate-ranking-from-spectral-alignment

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

  • 14 stars14 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 author says it does

Copied from the file, not written here

Use when you have an unknown sample spectrum (m/z peaks and intensities from DI-MS, ASAP-MS, or other high-throughput mass spectrometry modalities) and a reference species database of known spectra, and you need to identify the most likely species or authenticate the sample by ranking how well each.

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

7.7 KB, as published. Nobody here has run it

species-candidate-ranking-from-spectral-alignment

License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->

Summary

Ranks reference species candidates by computing alignment-based similarity scores between an unknown mass spectrometry sample spectrum and a reference database of known spectra. This skill enables direct discrimination of unknown sample species through quantitative spectral matching, producing a ranked candidate list with match scores and visual outputs.

When to use

You have an unknown sample spectrum (m/z peaks and intensities from DI-MS, ASAP-MS, or other high-throughput mass spectrometry modalities) and a reference species database of known spectra, and you need to identify the most likely species or authenticate the sample by ranking how well each reference matches the unknown.

When NOT to use

  • Raw, unpreprocessed mass spectrometry data without peak identification or intensity normalization — pre-processing must occur first.
  • Reference database is empty, incomplete, or does not contain the target species.
  • Input spectrum has insufficient m/z peaks or very low signal-to-noise ratio, making reliable alignment impossible.

Inputs

  • unknown sample spectrum (m/z peaks and intensities)
  • reference species database (collection of known spectra with species identifiers and accession numbers)

Outputs

  • ranked candidate list (tabular format: CSV or TSV with rank, species, reference_id, similarity_score)
  • visual outputs (species discrimination plots)

How to apply

Load the preprocessed unknown sample spectrum (m/z peaks and intensities) and the reference species database containing known spectra. For each reference spectrum in the database, compute a similarity score between the unknown sample and the reference using a distance or correlation metric such as cosine similarity or Euclidean distance on aligned m/z features. Rank all reference entries by descending similarity score. Output the full scored candidate list with columns for rank, species name, reference accession identifier, and similarity score. The workflow integrates data pre-processing (peak identification and normalization) prior to alignment to ensure consistent feature comparison across spectra.

Related tools

  • RapidMass (Integrates data pre-processing, analysis, and database search scoring to perform spectral alignment and candidate ranking with automatic MS peak identification and visual outputs) — https://github.com/Katherine00689/RapidMass

Evaluation signals

  • Output candidate list is ranked in descending order by similarity score with no gaps or inconsistencies in the ranking.
  • All reference entries in the database receive a similarity score; no entries are missing or duplicated in the output.
  • Similarity scores fall within a valid range (e.g., 0–1 for normalized metrics or −1 to +1 for correlation-based scores) and are internally consistent.
  • Species names and accession identifiers in the output match exactly with entries in the reference database.
  • Visual outputs correctly display the unknown spectrum overlaid or compared against top-ranked reference spectra, with m/z features aligned.

Limitations

  • Performance depends on the completeness and quality of the reference database; if the true species is absent or poorly represented, ranking will be unreliable.
  • Easily confused plant materials or closely related species may receive similar scores, reducing discrimination power; visual inspection of top candidates is recommended.
  • The choice of distance/correlation metric (cosine similarity, Euclidean distance, etc.) affects ranking results; sensitivity to metric selection is not quantified in the article.
  • Preprocessing steps (peak detection, intensity normalization, m/z alignment tolerance) must be consistently applied to both unknown and reference spectra to ensure valid comparison.

Evidence

  • [other] Load the preprocessed unknown sample spectrum (m/z peaks and intensities) and the reference species database containing known spectra.: "Load the preprocessed unknown sample spectrum (m/z peaks and intensities) and the reference species database containing known spectra."
  • [other] For each reference spectrum in the database, compute a similarity score between the unknown sample and the reference using a distance or correlation metric (e.g., cosine similarity or Euclidean distance on aligned m/z features).: "For each reference spectrum in the database, compute a similarity score between the unknown sample and the reference using a distance or correlation metric (e.g., cosine similarity or Euclidean"
  • [other] Rank all reference entries by descending score and output the full scored candidate list with species names, accession identifiers, and match scores.: "Rank all reference entries by descending score and output the full scored candidate list with species names, accession identifiers, and match scores."
  • [other] Return results in a tabular format (CSV or TSV) with columns for rank, species, reference_id, and similarity_score.: "Return results in a tabular format (CSV or TSV) with columns for rank, species, reference_id, and similarity_score."
  • [other] RapidMass integrates data pre-processing, analysis, and evaluation to enable direct discrimination of unknown sample species through database search algorithms that produce candidate scores with visual outputs.: "RapidMass integrates data pre-processing, analysis, and evaluation to enable direct discrimination of unknown sample species through database search algorithms that produce candidate scores with"
  • [intro] RapidMass offers several database search algorithms to achieve unknown sample scoring: "RapidMass offers several database search algorithms to achieve unknown sample scoring"
  • [intro] The performance of RapidMass was validated using easily confused plant materials, with satisfactory results.: "The performance of RapidMass was validated using easily confused plant materials, with satisfactory results."
  • [readme] This tool integrates data pre-processing, analysis, and evaluation, enabling direct discrimination of unknown sample species with intuitive visual outputs.: "This tool integrates data pre-processing, analysis, and evaluation, enabling direct discrimination of unknown sample species with intuitive visual outputs."

Keep looking

Skills are one crate of 328,083. 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.