agentsclimarketplace

Molecular networking construction

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/molecular-networking-construction

Use when you have LC-MS/MS DDA data from one or more samples and need to organize fragmentation spectra by similarity relationships to support compound annotation, enable cross-sample comparisons, and identify known and unknown metabolites sharing structural features.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill molecular-networking-construction

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.4 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

molecular-networking-construction

Summary

Generate a Molecular Network (MN) from LC-MS/MS DDA fragmentation spectra to group related compounds and enable spectral similarity-based annotation and structural relationships across a metabolomics dataset.

When to use

You have LC-MS/MS DDA data from one or more samples and need to organize fragmentation spectra by similarity relationships to support compound annotation, enable cross-sample comparisons, and identify known and unknown metabolites sharing structural features.

When NOT to use

  • Input data is already a curated spectral library (use direct matching instead)
  • Only targeted/SRM data are available without fragmentation spectra (MN requires DDA MS/MS)
  • Sample size is very small (single scan) or fragmentation data are missing/poor quality

Inputs

  • LC-MS/MS DDA spectra in mzML or mzXML format (positive and/or negative ionization modes)
  • MZmine-processed feature detection output
  • Sample metadata with taxon information

Outputs

  • Molecular Network graph structure (nodes=MS2 spectra, edges=cosine similarity ≥ threshold)
  • Network-annotated feature table with cluster assignments
  • Spectral adjacency matrix or GraphML format compatible with MEMO analysis

How to apply

After MZmine processing of raw LC-MS/MS DDA data (positive and/or negative ionization modes), invoke the molecular networking module within the ENPKG workflow. The workflow automatically generates the MN from fragmentation spectra and integrates it with downstream spectral matching and taxonomical reweighting. The MN construction uses cosine similarity metrics to cluster related fragmentation patterns, creating a graph where nodes represent MS2 spectra and edges represent similarity above a defined threshold. Validate the resulting network structure for connected components, edge weight distributions, and consistency with known compound clusters. The output MN is then compatible with MEMO analysis for cross-sample spectral fingerprint comparison and serves as input for subsequent annotation steps.

Related tools

Examples

bash src/install_sirius.sh /opt/sirius && sh workflow/00_workflow_all.sh

Evaluation signals

  • Network contains expected number of connected components relative to sample complexity and MS/MS quality
  • Edge weights (cosine similarity scores) cluster known compound pairs above threshold; absence of false-positive edges between structurally unrelated spectra
  • Degree distribution and clustering coefficient are consistent with expected metabolite diversity (not all nodes isolated; not fully connected)
  • Feature annotations align with network neighbor identities—high-confidence matches co-localize in network neighborhoods
  • Output is compatible with downstream MEMO analysis and produces valid GraphML/adjacency matrices

Limitations

  • MN quality depends critically on MS/MS spectrum quality; low-abundance or noisy spectra may produce spurious or missing edges
  • Cosine similarity threshold is data-dependent; suboptimal thresholds can over-cluster or fragment true compound families
  • MN alone does not provide compound identities; must be coupled with spectral matching and taxonomical reweighting for actionable annotations
  • Network construction is computationally intensive for very large datasets (>10,000 spectra); scalability depends on available hardware

Evidence

  • [readme] For each sample, 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).: "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"
  • [readme] The different steps are described below, with the link to the corresponding repository to perform the analysis: MN, ISDB annotation and taxonomical/chemical consistency reweighting. Aim: MN generation, ISDB and MS1 annotation coupled to taxonomical and chemical consistency reweighting on each sample.: "MN generation, ISDB and MS1 annotation coupled to taxonomical and chemical consistency reweighting on each sample"
  • [readme] The generated data structure is compatible with a MEMO analysis. Finally, all of the data previously generated is integrated into a sample-specific RDF knowledge graph.: "The generated data structure is compatible with a MEMO analysis."
  • [readme] These sample-specific KG from multiple specific can be combined to effectively compare samples based on their metadata and their spectral and structural data.: "These sample-specific KG from multiple specific can be combined to effectively compare samples based on their metadata and their spectral and structural 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.