Use when you have (1) metabolite-disease correlation matrices and protein association predictions generated by a deep learning module (e.
Scanned 9/12/2026
Install to Claude Code
npx -y skills add HolobiomicsLab/asb-skill-collections --skill multi-class-network-annotation --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Multi Class Network Annotation?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/holobiomicslab-multi-class-network-annotation-asb-skill-collections)More formats (shields.io, HTML) on the badges page.
---
name: multi-class-network-annotation
description: Use when you have (1) metabolite-disease correlation matrices and protein association predictions generated by a deep learning module (e.
license: CC-BY-4.0
metadata:
edam_operation: http://edamontology.org/operation_3565
edam_topics:
- http://edamontology.org/topic_0602
- http://edamontology.org/topic_3520
- http://edamontology.org/topic_2269
tools:
- DeepMSProfiler
- NetworkX
- Graphviz / igraph / Cytoscape
- Matplotlib / Plotly
techniques:
- LC-MS
derived_from:
- doi: 10.1038/s41467-024-51433-3
title: DeepMSProfiler
evidence_spans: []
claims: []
provenance:
collection: https://w3id.org/holobiomicslab/asb-skill/collection/metabolomics/v2
assembled_by: scripts/collect_metabolomics_collection.py
sources:
- build: coll_deepmsprofiler_cq
doi: 10.1038/s41467-024-51433-3
title: DeepMSProfiler
dedup_kept_from: coll_deepmsprofiler_cq
schema_version: 0.2.0
attribution:
generator: AgenticScienceBuilder
original_doi: 10.1038/s41467-024-51433-3
all_source_dois:
- 10.1038/s41467-024-51433-3
zenodo_doi: 10.5281/zenodo.20794027
curators: []
promoter: Louis-Félix Nothias
sponsor: CNRS & Université Côte d'Azur
---
# multi-class-network-annotation
## Summary
Reconstruct and render disease-associated metabolite-protein bipartite network graphs from deep learning predictions, annotating nodes by metabolite-protein association strength and disease class with disease-type color coding and node-size scaling. This skill transforms raw correlation and association data into interpretable, publication-ready network visualizations that reveal disease-specific metabolic signatures.
## When to use
Apply this skill when you have (1) metabolite-disease correlation matrices and protein association predictions generated by a deep learning module (e.g., DeepMSProfiler's feature extraction output), (2) disease class labels for the samples, (3) association strength values (weights) for metabolite-protein pairs, and (4) a need to communicate multiclass relationships in a single visual where node identity, size, color, and edge transparency all encode distinct dimensions of biological information.
## When NOT to use
- Input data is already a pre-rendered static image or publication figure—re-rendering is unnecessary unless parameters (e.g., color palette, node size range) need adjustment.
- Metabolite-protein associations are binary (present/absent) with no association strength or confidence metric—network visualization requires weighted edges to encode quantitative relationships; binary networks may be better served by adjacency heatmaps or Sankey diagrams.
- The analysis goal is univariate (single disease class) or aims to compare pairwise differences—bipartite multi-class networks are optimized for simultaneous visualization of three or more disease groups; simpler layouts (e.g., single-class Venn diagrams, pairwise correlation heatmaps) are more appropriate for binary or single-class scenarios.
## Inputs
- Metabolite-disease correlation matrices (dense array or sparse CSR format, shape: n_metabolites × n_disease_classes)
- Protein association predictions with confidence scores (edge list: [metabolite_id, protein_id, weight, p_value] or adjacency matrix)
- Disease class labels and grouping metadata (e.g., 'cancer', 'nodule', 'healthy')
- Association strength values (normalized weights, typically [0, 1] or log-odds)
## Outputs
- Bipartite network graph object (NetworkX DiGraph or igraph object with node/edge metadata)
- 2D node layout coordinates (n_nodes × 2 array, typically from force-directed embedding)
- High-resolution network plot image (PNG, SVG, or PDF) with disease-type color scheme, scaled node sizes, and transparency-encoded edge confidence
## How to apply
Load the metabolite-disease correlation data and protein association predictions as dense matrices or edge lists with association weights. Construct a bipartite graph with metabolites and proteins as distinct node sets, weighted edges, and metadata (disease class, association confidence) attached to each edge and node. Apply a force-directed or hierarchical layout algorithm to position nodes in 2D space to maximize readability and reduce edge crossings. Render the network with disease-type color coding applied to node borders or backgrounds, node size scaled proportionally to association strength (e.g., node_size = min_size + (weight − weight_min) / (weight_max − weight_min) × (max_size − min_size)), and edge transparency (alpha) reflecting prediction confidence or p-value. Export the final network as a high-resolution raster (PNG, SVG) or vector format suitable for peer-reviewed publication.
## Related tools
- **DeepMSProfiler** (Generates metabolite-disease correlation data and protein association predictions via deep learning; provides the upstream feature extraction module that supplies edges and weights for network reconstruction) — https://github.com/yjdeng9/DeepMSProfiler
- **NetworkX** (Python library for constructing, manipulating, and analyzing bipartite graphs; used to build the metabolite-protein network graph structure with weighted edges and disease class metadata)
- **Graphviz / igraph / Cytoscape** (Network layout and rendering engines; apply force-directed or hierarchical layout algorithms to position nodes and render the final annotated visualization with color, size, and transparency encoding)
- **Matplotlib / Plotly** (Rendering and export library to generate publication-quality raster or vector output (PNG, SVG, PDF) with custom color palettes, node size scaling, and edge transparency)
## Examples
```
python mainRun.py -data ../example/data/ -label ../example/label.txt -out ../jobs -run_feature
```
## Evaluation signals
- Bipartite structure is preserved: all metabolites are in one node set, all proteins in the other; no edges connect nodes within the same set.
- Node size distribution matches the input association strength: larger nodes correspond to stronger metabolite-protein associations; verify by spot-checking node diameter against underlying weight values.
- Disease-type color coding is consistent and legible: each disease class (e.g., 'cancer', 'nodule', 'healthy') is assigned a distinct color; colors are distinguishable by standard color-blindness simulation (e.g., Deuteranopia, Protanopia).
- Edge transparency correlates with confidence: edges with high association scores or low p-values appear opaque; low-confidence associations fade to transparency; verify by overlaying edge list with rendered image.
- Layout algorithm converged: nodes are distributed across the plot area without clustering all near the origin; no node overlap except where unavoidable due to high density; edge crossings are minimized (particularly for force-directed layouts).
- Export format is publication-ready: output resolution is ≥300 dpi (raster) or vector-based (SVG/PDF); no artifacts, blurring, or text clipping visible at display/print size.
## Limitations
- Large networks (>500 nodes) may suffer from visual clutter and reduced interpretability even with force-directed layout; consider filtering by association strength threshold or hierarchical clustering to reduce complexity.
- Network layout algorithms (e.g., force-directed) are stochastic; multiple runs may produce slightly different layouts; fix random seed and document layout parameters for reproducibility.
- Color encoding of disease classes assumes ≤5–7 distinct classes for legibility; more classes require additional visual channels (e.g., node shape, border pattern) or faceted subplots.
- Edge transparency and node size scaling are subjective and dataset-dependent; the mapping function (e.g., linear, log, quantile-based) must be documented and justified by the distribution of association strengths in the input data.
- DeepMSProfiler's pre-trained model is trained on serum metabolomics data (859 samples: 210 healthy, 323 lung nodules, 326 lung cancer); network annotations and association patterns are specific to this context and may not generalize to other tissue types, diseases, or LC-MS platforms.
## Evidence
- [other] DeepMSProfiler produces disease-associated metabolite-protein network plots as its third main output, generated from raw metabolomics data input across different disease groups.: "DeepMSProfiler produces disease-associated metabolite-protein network plots as its third main output, generated from raw metabolomics data input across different disease groups."
- [other] Construct a bipartite network graph with metabolites and proteins as nodes, weighted by association strength and disease class. Apply network layout algorithm (force-directed or hierarchical) to position nodes for interpretability. Render the network plot with disease-type color coding, node size scaled by association strength, and edge transparency reflecting confidence.: "Construct a bipartite network graph with metabolites and proteins as nodes, weighted by association strength and disease class. Apply network layout algorithm (force-directed or hierarchical) to"
- [readme] It takes raw metabolomics data from different disease groups as input and provides three main outputs: 1. Sample disease type labels. 2. Heatmaps depicting the correlation of different metabolite: "It takes raw metabolomics data from different disease groups as input and provides three main outputs: 1. Sample disease type labels. 2. Heatmaps depicting the correlation of different metabolite"
- [other] Load the metabolite-disease correlation data and protein association predictions generated by DeepMSProfiler's deep learning module.: "Load the metabolite-disease correlation data and protein association predictions generated by DeepMSProfiler's deep learning module."
- [other] Export the finalized network plot as a high-resolution image file suitable for publication.: "Export the finalized network plot as a high-resolution image file suitable for publication."
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!