Network topology validation
Skill HolobiomicsLab/asb-skill-collections/packs/metabolomics/gc-ms/skills/network-topology-validation
Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder
npx -y skills add HolobiomicsLab/asb-skill-collections --skill network-topology-validationAssembled 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 after retrieving a molecular network file (GraphML or JSON format) from GNPS_GC following submission of deconvolved GC-MS spectra. Use this skill to confirm the network structure is sound before performing chemical similarity searches, community detection, or annotation.
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
5.6 KB, 860 tokens by cl100k_base, as published. Nobody here has run it
network-topology-validation
Summary
Validate the structural integrity and connectivity of a molecular network output from GC-MS deconvolution by checking node and edge counts, connectivity metrics, and GraphML/JSON format compliance. This ensures the network was correctly assembled and is suitable for downstream interpretation.
When to use
After retrieving a molecular network file (GraphML or JSON format) from GNPS_GC following submission of deconvolved GC-MS spectra. Use this skill to confirm the network structure is sound before performing chemical similarity searches, community detection, or annotation.
When NOT to use
- Input network is already published or from a trusted, previously validated run with documented topology — skip validation if provenance is known.
- Raw (non-deconvolved) GC-MS spectra are being submitted — this skill applies only to deconvolved output already in GNPS_GC input format.
- Network topology metrics are not relevant to your downstream analysis (e.g., you only need node identities for targeted lookup, not graph structure).
Inputs
- molecular network file in GraphML format
- molecular network file in JSON format
- deconvolved GC-MS spectra batch metadata (sample count, expected networking parameters)
Outputs
- validated network topology report (node count, edge count, connectivity metrics)
- flagged anomalies or missing attributes
- confirmed GraphML/JSON structural integrity
How to apply
Parse the returned molecular network file (GraphML or JSON) and programmatically extract node and edge counts. Compute basic connectivity metrics such as average degree, clustering coefficient, and number of connected components. Compare these metrics against expected ranges for the input spectra batch size (e.g., for N input spectra, expect node count ≥ N if network is fully connected, or identify isolated components). Validate that all nodes have assigned mass-to-charge (m/z) and retention time (RT) attributes, and that edges carry cosine similarity or other spectral similarity scores. Flag any nodes with missing metadata, self-loops, or edges with similarity scores below the submission threshold. Document the network structure before proceeding to interpretation.
Related tools
- GNPS_GC (generates the molecular network (GraphML/JSON) whose topology is validated by this skill) — https://github.com/bittremieux/GNPS_GC
Evaluation signals
- Node count ≥ number of input deconvolved spectra; edge count > 0 indicating connected spectra pairs.
- All nodes carry valid m/z and retention time attributes; no missing or null metadata fields.
- Network connectivity metrics (average degree, clustering coefficient) are consistent with the input batch size and similarity threshold used during networking.
- GraphML or JSON file parses without schema errors; all edges reference valid source and target nodes.
- No isolated nodes (degree = 0) unless they represent true singletons from the deconvolution; document singletons separately if present.
Limitations
- This skill validates structure only; it does not assess the chemical accuracy or biological relevance of the network.
- Metric thresholds (e.g., minimum edge count, expected degree range) depend on the deconvolution algorithm and GNPS_GC parameters (cosine threshold, minimum matched peaks) used upstream; no universal cutoffs are provided in the paper.
- Very large networks (>10,000 nodes) may require specialized graph databases or memory-efficient parsing; basic validation scripts may be slow.
- The paper does not specify expected connectivity patterns for different sample types (e.g., complex mixtures vs. standards), so anomalies must be interpreted with domain knowledge.
Evidence
- [other] Validate network structure (node and edge counts, connectivity metrics).: "Validate network structure (node and edge counts, connectivity metrics)."
- [other] Retrieve and parse the resulting molecular network file (GraphML or JSON format).: "Retrieve and parse the resulting molecular network file (GraphML or JSON format)."
- [other] The method integrates auto-deconvolution with molecular networking for gas chromatography–mass spectrometry data, enabling structured network analysis of deconvolved spectra.: "The method integrates auto-deconvolution with molecular networking for gas chromatography–mass spectrometry data, enabling structured network analysis of deconvolved spectra."
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.