agentsclimarketplace

Bipartite graph layout optimization

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/bipartite-graph-layout-optimization

Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill bipartite-graph-layout-optimization

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 author says it does

Copied from the file, not written here

Use when after constructing a bipartite network graph with metabolites and proteins as nodes weighted by association strength and disease class, when you need to render the network visually for interpretation and publication.

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, as published. Nobody here has run it

bipartite-graph-layout-optimization

Summary

Apply force-directed or hierarchical layout algorithms to position metabolite and protein nodes in a bipartite network graph for interpretable visualization of disease-associated associations. This skill transforms an abstract weighted bipartite graph into a spatially arranged network suitable for publication.

When to use

After constructing a bipartite network graph with metabolites and proteins as nodes weighted by association strength and disease class, when you need to render the network visually for interpretation and publication. Use this when you have disease-metabolite correlation data and protein association predictions that must be displayed as a spatially coherent network rather than an abstract graph structure.

When NOT to use

  • Input is a unipartite or fully-connected graph (not bipartite metabolite-protein structure).
  • Network contains fewer than ~5 nodes per partition (layout optimization provides minimal interpretive value for sparse graphs).
  • Disease association data have not yet been computed or validated (layout without reliable weights produces misleading spatial clustering).

Inputs

  • Bipartite network graph object with metabolite and protein nodes
  • Node weights (association strength values)
  • Edge weights (confidence scores or correlation values)
  • Disease class labels for nodes
  • Metabolite-disease correlation matrix
  • Protein association predictions from deep learning module

Outputs

  • Spatially-positioned bipartite network graph
  • High-resolution network plot image file (publication-ready)
  • Positioned node coordinates with disease-type color mapping
  • Rendered network with scaled node sizes and transparent edges

How to apply

Select a layout algorithm—force-directed layout (e.g. spring-based) for discovering natural clustering of metabolite-protein relationships, or hierarchical layout for emphasizing disease stratification. Apply the chosen algorithm to position nodes such that edge weights (association strength) and disease-class membership inform spatial proximity. Configure node size scaling by association strength and edge transparency by confidence scores. The layout should minimize edge crossings and reveal meaningful metabolite-protein clusters within and across disease groups. Render the positioned network with disease-type color coding to enable visual interpretation of disease-specific metabolic signatures.

Related tools

Examples

from DeepMSProfiler import *; run_feature(job_dir='DeepMSProfiler/example/out/jobs007'); show_feature(job_dir='DeepMSProfiler/example/out/jobs007',mode='ensemble')

Evaluation signals

  • Verify that node positioning preserves bipartite structure (metabolites and proteins remain in distinct spatial regions or layers).
  • Confirm disease-type color coding is consistently applied and visually distinguishable across the rendered plot.
  • Check that high-confidence edges (higher association strength) are rendered with lower transparency, enabling visual identification of strong metabolite-protein relationships.
  • Validate that node size scaling reflects the underlying association strength values (larger nodes correspond to higher-strength associations).
  • Confirm the exported image file meets publication resolution standards and edge-crossing minimization is evident in the layout (fewer visual overlaps indicate effective algorithm application).

Limitations

  • Layout algorithm performance depends on graph size and connectivity; very large networks (>500 nodes) may require hierarchical decomposition or subset selection.
  • Force-directed layouts can converge to local minima; multiple random initializations or algorithm tuning may be needed for consistent, interpretable results.
  • Hierarchical layout may oversimplify disease-associated relationships by enforcing strict layering; disease heterogeneity may not be fully captured in rigid hierarchies.
  • Color coding by disease type alone may obscure overlapping or shared metabolite-protein associations across disease groups; additional visual encodings (edge styles, annotations) may be required for multi-disease comparisons.

Evidence

  • [other] Construct a bipartite network graph with metabolites and proteins as nodes, weighted by association strength and disease class.: "Construct a bipartite network graph with metabolites and proteins as nodes, weighted by association strength and disease class."
  • [other] Apply network layout algorithm (force-directed or hierarchical) to position nodes for interpretability.: "Apply network layout algorithm (force-directed or hierarchical) to position nodes for interpretability."
  • [other] Render the network plot with disease-type color coding, node size scaled by association strength, and edge transparency reflecting confidence.: "Render the network plot with disease-type color coding, node size scaled by association strength, and edge transparency reflecting confidence."
  • [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"

Keep looking

Skills are one crate of 328,083. 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.