agentsclimarketplace

Spectral network propagation analysis

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/spectral-network-propagation-analysis

Use when after running MetaMiner's Dereplicator stage to identify some RiPPs via direct database matching against a constructed structure database, apply this skill to enlarge the set of identifications by propagating those matches through spectral clusters and visualizing the connected components.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill spectral-network-propagation-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

9.6 KB, ~1.7k tokens by cl100k_base, as published. Nobody here has run it

spectral-network-propagation-analysis

Summary

Enlarge and visualize identified RiPP (ribosomally synthesized and post-translationally modified peptide) identifications by propagating spectral networking results through connected clusters of tandem mass spectra. This skill uses molecular networking to extend peptide discovery beyond direct database matches by leveraging spectral similarity relationships.

When to use

After running MetaMiner's Dereplicator stage to identify some RiPPs via direct database matching against a constructed structure database, apply this skill to enlarge the set of identifications by propagating those matches through spectral clusters and visualizing the connected components of significant PSM (peptide spectrum matches) in the molecular network.

When NOT to use

  • No spectral network has been pre-computed for your mass spectrometry data; you must first run GNPS Spectral Networking on your spectra files.
  • Your input spectra are not in a ProteoWizard-supported format (MGF, mzXML, mzML, mzData) and cannot be converted; spectral networking requires standardized centroided MS/MS data.
  • You have not yet identified at least some RiPP matches via Dereplicator or direct database search; propagation requires initial seed matches to propagate through the network.

Inputs

  • mzML spectra files (or other ProteoWizard-supported LC-MS/MS formats)
  • Unpacked spectral network directory (ProteoSAFe-METABOLOMICS-SNETS-V2 archive structure)
  • RiPP precursor peptide FASTA file
  • MetaMiner output or pre-computed Dereplicator results

Outputs

  • propagations.pdf (graphical report with one page per connected component of significant PSM)
  • propagations_detailed.txt (detailed text report listing all spectra from same cluster and clusters at distance 1 and 2)
  • propagations_short.txt (same as detailed but with one representative per cluster)
  • spec_nets output folder within MetaMiner output directory

How to apply

Provide MetaMiner with the unpacked spectral network output directory (generated from GNPS Spectral Networking / Molecular Networking, e.g., ProteoSAFe-METABOLOMICS-SNETS-V2 format) via the --spec-network flag, along with the tandem mass spectrometry files and RiPP precursor sequence FASTA. MetaMiner will propagate initial Dereplicator hits through the spectral network by identifying spectra in the same cluster and clusters at distance 1 and 2 from matched spectra. The propagation reports are generated in three forms: (1) propagations.pdf for graphical visualization with one page per connected component, (2) propagations_detailed.txt listing all spectra per cluster with remote clusters, and (3) propagations_short.txt with one representative per cluster. Ensure matplotlib and networkx Python libraries are installed for PDF graph generation; without them, output is plain text only.

Related tools

  • MetaMiner (Orchestrates spectral network propagation; accepts --spec-network flag to point to unpacked spectral network directory and generates propagation reports) — https://github.com/mohimanilab/MetaMiner
  • GNPS Spectral Networking / Molecular Networking (Pre-computes spectral network (molecular network) structure from tandem mass spectra; output must be unpacked and passed to MetaMiner)
  • Dereplicator (Identifies initial RiPP matches against structure database; these seed matches are then propagated through the spectral network) — https://github.com/ablab/npdtools
  • matplotlib (Renders spectral network propagation graphs as PDF visualizations; required for graphical output; falls back to plain text if absent)
  • networkx (Analyzes and traverses the spectral network graph structure to identify connected components and propagate matches; required for graph rendering)
  • ProteoWizard (Converts tandem mass spectrometry data to MGF format for spectral networking and MetaMiner analysis)

Examples

python metaminer.py test_data/metaminer/msms/ -s test_data/metaminer/molnet/example_RiPP.fasta --blind --spec-network test_data/metaminer/molnet/ProteoSAFe-METABOLOMICS-SNETS-V2-unpacked -o metaminer_outdir

Evaluation signals

  • spec_nets output folder is created within the MetaMiner output directory; its absence indicates the --spec-network flag was not applied or the spectral network path is incorrect
  • propagations.pdf contains at least one page per connected component of significant PSM; visual inspection confirms matches are grouped by spectral similarity
  • propagations_detailed.txt and propagations_short.txt are non-empty and list representative spectra with consistent cluster identifiers; verify that distance-1 and distance-2 neighbors are populated for each match
  • The number of RiPP identifications in the propagation reports exceeds the number of Dereplicator seed matches, confirming that spectral propagation enlarged the identification set
  • All spectra listed in propagation reports are present in the input spectral network; cross-check spectrum IDs against the ProteoSAFe-METABOLOMICS-SNETS-V2 metadata

Limitations

  • Spectral network propagation is only as accurate as the GNPS Spectral Networking clustering; poor quality or noisy spectra may produce spurious connections and false propagations
  • Propagation relies on initial seed matches from Dereplicator; if few or no RiPPs are initially matched, the propagation set will be small regardless of network quality
  • Graph visualization (PDF output) requires matplotlib and networkx; environments without these libraries will only produce plain text reports, limiting interpretability
  • The --blind flag used for demonstration purposes may reduce specificity; production runs should use appropriate enzymatic cleavage rules and precursor mass tolerance settings
  • Distance-based propagation (clusters at distance 1 and 2) is fixed by the implementation; no user-adjustable distance threshold is exposed to control propagation breadth

Evidence

  • [other] The MetaMiner pipeline includes a spectral networking stage that enlarges the set of identified RiPPs via spectral networking and allows users to visualize the results after identifying some RiPPs.: "spectral networking stage that enlarges the set of identified RiPPs via spectral networking and allows users to visualize the results"
  • [other] Execute MetaMiner with the --spec-network option pointing to the unpacked spectral network directory, the example RiPP FASTA file (DATITTVTVTSTSIWASTVSNHC), and the --blind flag for demonstration purposes: python metaminer.py <spectra_files> -s test_data/metaminer/molnet/example_RiPP.fasta --blind --spec-network test_data/metaminer/molnet/ProteoSAFe-METABOLOMICS-SNETS-V2-unpacked -o metaminer_outdir.: "Execute MetaMiner with the --spec-network option pointing to the unpacked spectral network directory"
  • [other] Verify that the spec_nets output folder is created within metaminer_outdir containing the three required output files: propagations.pdf (graphical report with one page per connected component of significant PSM), propagations_detailed.txt (detailed text report listing all spectra from same cluster and clusters at distance 1 and 2), and propagations_short.txt (same as detailed but with one representative per cluster).: "propagations.pdf (graphical report with one page per connected component of significant PSM), propagations_detailed.txt (detailed text report listing all spectra from same cluster and clusters at"
  • [readme] For presenting Spectral Network propagation graphs, MetaMiner requires matplotlib and networkx Python libraries. If they are not installed, the propagation will be generated in a plain text format only (see --spec-network option).: "MetaMiner requires matplotlib and networkx Python libraries. If they are not installed, the propagation will be generated in a plain text format only"
  • [other] (iv) enlarges the set of described RiPPs via spectral networking: "enlarges the set of described RiPPs via spectral networking"

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.