agentsclimarketplace

Molecular network clustering and analysis

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/molecular-network-clustering-and-analysis

Use when after generating candidate transformed structures from biotransformation rules and when you have MS/MS spectral feature data that you wish to organize into putative molecular families.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill molecular-network-clustering-and-analysis

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 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-network-clustering-and-analysis

Summary

This skill constructs spectral similarity networks from untargeted metabolomics MS/MS data, applies graph-based clustering to identify molecular families, and annotates network nodes with predicted structures from biotransformation rules. It is essential for discovering unknown metabolites by connecting structurally related compounds in high-dimensional spectral space.

When to use

Apply this skill after generating candidate transformed structures from biotransformation rules and when you have MS/MS spectral feature data that you wish to organize into putative molecular families. Use it when you need to annotate unknown features by leveraging spectral similarity and structural relationships predicted by biotransformation networks.

When NOT to use

  • Input spectra are already assigned to known reference compounds with high confidence; targeted annotation is more appropriate.
  • MS/MS spectral data are missing or of insufficient quality to compute reliable similarity scores.
  • The biotransformation rules module has not been run; candidate structures are not available.

Inputs

  • Candidate transformed structures (SMILES format, from biotransformation rules output)
  • MS/MS spectral feature data (MS1/MS2 peak lists with m/z and intensity)
  • Spectral similarity metric (cosine similarity or variant)
  • Similarity threshold parameter

Outputs

  • Molecular network file (GraphML, JSON, or GXF format)
  • Feature annotation table (MS feature → predicted structure(s) and network cluster membership)

How to apply

Load candidate transformed structures from the biotransformation-rules module output together with MS/MS spectral data. Compute spectral similarity scores (e.g., cosine similarity) between all feature pairs in the dataset. Filter edges using a similarity threshold to retain only high-confidence spectral matches. Apply graph-based clustering or community detection algorithms to identify connected components representing putative molecular families. Annotate each network node with corresponding candidate structures and MS1/MS2 feature associations. Export the molecular network in a standard format (GraphML, JSON, or GXF) and generate a feature annotation table linking each MS feature to predicted structure(s) and network cluster membership.

Related tools

Evaluation signals

  • Network contains no isolated nodes (every feature either clusters with similar spectra or is annotated with a biotransformation candidate).
  • Edges in the network exhibit spectral similarity scores above the defined threshold; no spurious low-confidence matches remain.
  • Connected components (molecular families) are non-overlapping and each node is assigned to exactly one cluster.
  • Feature annotation table contains valid SMILES/InChI strings for predicted structures and explicit cluster IDs.
  • Graph structure validates: degree distribution, modularity, and cluster size distributions are consistent with expected biotransformation family relationships.

Limitations

  • Spectral similarity thresholds are sensitive to MS/MS collision energy and instrumentation; threshold tuning may be required across different datasets.
  • Graph-based clustering results depend on the completeness and accuracy of the underlying biotransformation rules; incomplete or incorrect rules will propagate errors into network annotation.
  • Molecular families identified by spectral similarity may include structural isomers or unrelated compounds with similar fragmentation patterns; validation against orthogonal data (e.g., retention time, NMR) is recommended.
  • The method requires pre-computed MS/MS spectra; data quality issues (low signal-to-noise, contamination) can compromise similarity scoring and clustering.

Evidence

  • [other] Construct a similarity network by computing spectral similarity scores (e.g., cosine similarity or variant thereof) between all feature pairs in the dataset.: "Construct a similarity network by computing spectral similarity scores (e.g., cosine similarity or variant thereof) between all feature pairs"
  • [other] Filter edges based on a similarity threshold to retain only high-confidence spectral matches.: "Filter edges based on a similarity threshold to retain only high-confidence spectral matches."
  • [other] Apply graph-based clustering or community detection to identify connected components representing putative molecular families.: "Apply graph-based clustering or community detection to identify connected components representing putative molecular families."
  • [intro] BAM method uses biotransformation rules and global molecular networking for structure annotation: "BAM method uses biotransformation rules and global molecular networking for structure annotation"
  • [other] Export the molecular network in a standard format (e.g., GraphML, JSON, or GXF) and generate a feature annotation table linking each MS feature to its predicted structure(s) and network cluster membership.: "Export the molecular network in a standard format (e.g., GraphML, JSON, or GXF) and generate a feature annotation table linking each MS feature to its predicted structure(s) and network cluster"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,871. 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.