agentsclimarketplace

Chemical class node mapping

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/chemical-class-node-mapping

Use when you have a GNPS mass spectral molecular network (in graphml or cytoscape format) and want to enrich its nodes with chemical class information derived from GNPS public library spectral matches.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill chemical-class-node-mapping

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

chemical-class-node-mapping

Summary

Maps chemical class annotations from GNPS public library matches onto nodes of a mass spectral molecular network, enabling direct integration of structural classification data into network visualization and analysis. This skill enables researchers to annotate molecular families with their putative chemical classifications.

When to use

You have a GNPS mass spectral molecular network (in graphml or cytoscape format) and want to enrich its nodes with chemical class information derived from GNPS public library spectral matches. Use this when you need to visualize which molecular families belong to specific chemical classes (e.g., alkaloids, terpenoids, polyketides) directly on the network graph.

When NOT to use

  • Your input is an unannotated or de novo molecular network with no GNPS public library matches available.
  • You only have MS1 spectral data without MS2 fragmentation patterns required for GNPS networking.
  • You need to integrate MS2LDA substructural motif information only—use the feature-based motif mapping skill instead.

Inputs

  • GNPS mass spectral molecular network file (graphml or cytoscape format)
  • GNPS public library matches or chemical class metadata
  • GNPS job ID (for automated retrieval of network and annotations)

Outputs

  • Annotated mass spectral molecular network (graphml or cytoscape format) with chemical class attributes embedded in nodes
  • Network nodes labeled with chemical class information
  • Nodes and edges TSV files with chemical class metadata (optional alternative output)

How to apply

Load your GNPS mass spectral molecular network file and retrieve or prepare chemical class metadata from GNPS public library matches using either pyMolNetEnhancer (Python) or RMolNetEnhancer (R). Map chemical class information to network nodes by matching library annotations to cluster IDs; the modules handle this via a feature-based matching approach. Export the annotated network in graphml or cytoscape format with chemical class labels and attributes embedded as node properties. Validate by importing into Cytoscape and confirming that nodes display chemical class attributes and can be styled or filtered by class.

Related tools

Evaluation signals

  • All nodes in the exported network graph contain chemical class attributes (verified by opening graphml in a text editor or Cytoscape property inspector).
  • Chemical class labels are non-null and match GNPS library taxonomy for a random sample of nodes.
  • Network can be imported into Cytoscape without errors and nodes are styleable/filterable by the chemical class attribute.
  • Node count and network topology are preserved after mapping (no nodes dropped due to missing chemical class data).
  • Exported TSV files (if produced) list each node ID with its corresponding chemical class and match confidence score.

Limitations

  • Chemical class annotation is limited to matches present in the GNPS public library; nodes without public library matches will have missing or null chemical class values.
  • Mapping quality depends on spectral library coverage and the quality of the input GNPS network (requires high cosine similarity and ion overlap thresholds in the GNPS job).
  • Chemical class information reflects only spectral-based classification from library matching, not structural elucidation; putative assignments may not resolve to a single class.
  • Feature-based molecular networking (required for some workflows) may produce fragmented networks that reduce the effectiveness of chemical class-based family grouping.

Evidence

  • [intro] Mapped chemical class information from GNPS public library: "pyMolNetEnhancer is a python module that integrates chemical class information within mass spectral molecular networks created through the GNPS platform"
  • [other] Method: load network and map chemical class to nodes: "Load a GNPS mass spectral molecular network file (e.g., graphml or cytoscape format). Prepare chemical class metadata or retrieve it from the GNPS public library. Use pyMolNetEnhancer to map chemical"
  • [other] Export annotated network with embedded chemical class attributes: "Export the annotated network in a standard format (e.g., graphml, cytoscape) with chemical class labels and attributes embedded"
  • [readme] Visualization and styling by chemical class in Cytoscape: "To visualize results import the .graphml output file into Cytoscape. To color nodes by the most shared Mass2Motifs per molecular family (network component index) select 'Image/Chart' in the 'Node'"
  • [readme] RMolNetEnhancer provides R implementation of same functionality: "RMolNetEnhancer is an R package integrating chemical class and substructure information within mass spectral molecular networks created through the Global Natural Products Social Molecular Networking"

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.