agentsclimarketplace

Spectral data processing and annotation

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/spectral-data-processing-and-annotation

Use when when you have raw LC-MS/MS DDA spectral data (positive and/or negative ionization modes) paired with sample metadata (originating taxon), and you need to detect molecular features, build a molecular network from fragmentation spectra, and annotate those features using both spectral.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill spectral-data-processing-and-annotation

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

11.1 KB, ~2.1k tokens by cl100k_base, as published. Nobody here has run it

spectral-data-processing-and-annotation

Summary

End-to-end processing of LC-MS/MS DDA metabolomics data through feature detection, molecular networking, and multi-method compound annotation to produce knowledge-graph-ready annotated outputs. This skill transforms raw mass spectrometry and metadata inputs into structurally and taxonomically contextualized molecular annotations.

When to use

When you have raw LC-MS/MS DDA spectral data (positive and/or negative ionization modes) paired with sample metadata (originating taxon), and you need to detect molecular features, build a molecular network from fragmentation spectra, and annotate those features using both spectral matching and ab initio structure prediction methods to integrate into a knowledge graph.

When NOT to use

  • Input data are already fully annotated and integrated into a knowledge graph — this skill is for raw spectral processing, not refinement of completed annotations.
  • Spectral data lack associated metadata (e.g., taxon information) — taxonomical reweighting and ChEMBL integration depend on this context.
  • Only untargeted MS1 data (precursor ions) are available without MS/MS fragmentation spectra — Molecular Networking and Sirius annotation require fragmentation patterns.

Inputs

  • LC-MS/MS DDA raw spectral data files (positive and/or negative ionization modes)
  • Sample metadata file containing originating taxon information
  • MZmine feature table (after peak detection and alignment)
  • Fragmentation spectra in standardized format (mzML or proprietary MZmine output)

Outputs

  • Detected molecular features with retention time and m/z values
  • Molecular Network in GraphML or similar format
  • Annotated feature table with spectral matches and confidence scores
  • Sirius/CSI:FingerID/CANOPUS predictions (structure, class, probability)
  • Compound metadata enrichment (Wikidata ID, NPClassifier ontology)
  • Sample-specific RDF knowledge graph (TTL format) ready for graph database import

How to apply

The ENPKG workflow processes each sample individually through a defined sequence: (1) organize raw LC-MS/MS data and metadata into sample-specific directories; (2) run MZmine feature detection to identify and quantify peaks; (3) resolve the sample's taxonomic origin against Open Tree of Life (ottID) for downstream reweighting; (4) generate a Molecular Network from fragmentation spectra and annotate features via spectral matching to an in silico database coupled with taxonomical reweighting; (5) perform orthogonal Sirius/CSI:FingerID/CANOPUS annotation for structure prediction and chemical class assignment; (6) retrieve Wikidata IDs and NPClassifier ontology terms for all annotated compounds; and (7) integrate all processed data into an RDF knowledge graph. The workflow is orchestrated by shell scripts and Python modules that enforce dependency order and manage intermediate output schemas.

Related tools

Examples

sh workflow/00_workflow_all.sh

Evaluation signals

  • All intermediate workflow outputs are present and non-empty: feature tables, molecular network, annotation results from both spectral matching and Sirius/CSI:FingerID methods.
  • Feature annotations show agreement between two independent methods (spectral matching + Sirius) — overlapping compound hits indicate robust predictions.
  • Molecular Network exhibits expected topology: degree distribution, connected components, and cluster sizes are consistent with known metabolomic datasets (referenced in paper: 1600 tropical plants, 337 medicinal plants).
  • Final RDF knowledge graph passes structural validation: TTL syntax is valid, triples conform to ENPKG vocabulary schema, and entity links to Wikidata and NPClassifier resolve correctly.
  • Taxonomical reweighting reduces false annotations: spectral matches that conflict with sample taxonomy are downranked or flagged; annotations for closely related taxa are preferred.

Limitations

  • Workflow processes each sample individually; cross-sample metabolite comparison and consensus annotation require post-processing via MEMO analysis or custom SPARQL queries.
  • Sirius/CSI:FingerID predictions depend on the quality and mass accuracy of MS/MS fragmentation spectra; low-resolution or noisy spectra may yield unreliable structure predictions.
  • Spectral matching annotation relies on in silico database completeness; natural products absent from the ISDB or custom spectral library will be unannotated or misannotated.
  • Taxonomical reweighting improves precision but assumes accurate sample metadata (originating taxon); incorrect or ambiguous taxonomy can introduce systematic annotation bias.
  • Knowledge graph integration requires stable Wikidata and Open Tree of Life identifiers; identifier changes or deprecations may disrupt linked data integrity over time.

Evidence

  • [readme] For each sample, the required input data are 1) A minimal metadata file containing the sample's originating taxon. 2) The LC-MS/MS DDA data (positive and/or negative ionization modes).: "For each sample, the required input data are 1) A minimal metadata file containing the sample's originating taxon. 2) The LC-MS/MS DDA data (positive and/or negative ionization modes)."
  • [readme] After MZmine processing, the workflow automatically resolves the species taxonomy against Open Tree of Life (ottID), generates a Molecular Network from fragmentation spectra (MN) and annotates features using two different methods (spectral matching to in silico DB coupled to taxonomical reweighting and Sirius/CSI:FingerID).: "After MZmine processing, the workflow automatically resolves the species taxonomy against Open Tree of Life (ottID), generates a Molecular Network from fragmentation spectra (MN) and annotates"
  • [readme] Once the processing on individual samples is done, for annotated compounds, Wikidata ID and NPClassifier ontology is automatically retrieved and it is possible to integrate compounds with activity reported against one (or more) selected biological target in ChEMBL DB.: "Once the processing on individual samples is done, for annotated compounds, Wikidata ID and NPClassifier ontology is automatically retrieved and it is possible to integrate compounds with activity"
  • [readme] Finally, all of the data previously generated is integrated into a sample-specific RDF knowledge graph. These sample-specific KG from multiple specific can be combined to effectively compare samples based on their metadata and their spectral and structural data.: "Finally, all of the data previously generated is integrated into a sample-specific RDF knowledge graph. These sample-specific KG from multiple specific can be combined to effectively compare samples"
  • [other] The ENPKG full workflow comprises three primary operational stages: installation, setup, and execution, which together transform raw input into annotated outputs ready for knowledge-graph integration.: "The ENPKG full workflow comprises three primary operational stages: installation, setup, and execution, which together transform raw input into annotated outputs ready for knowledge-graph integration."
  • [other] Validate the final annotated output files (molecular annotations, spectral matches, knowledge-graph triples) against the expected output schema and integrity checks.: "Validate the final annotated output files (molecular annotations, spectral matches, knowledge-graph triples) against the expected output schema and integrity checks."
  • [readme] These steps needs to be run only once for each sample. Individual sample scale processing: (1) Organize data, (2) Taxonomical enhancement, (3) MN, ISDB annotation and taxonomical/chemical consistency reweighting, (4) SIRIUS/CSI:FingerID/CANOPUS annotation, (5) Compounds metadata enhancement, (6) Graph building.: "These steps needs to be run only once for each sample. Individual sample scale processing includes: data organization, taxonomical enhancement, MN and ISDB annotation with reweighting, Sirius/CSI"

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.