Networkx network propagation starter
Skill ma-compbio-lab/SkillFoundry/skills/systems-biology/networkx-network-propagation-starter
A framework for discovering, compiling, and validating reusable skills for scientific agents.From the repository description
npx -y skills add ma-compbio-lab/SkillFoundry --skill networkx-network-propagation-starterAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.2 KB, 266 tokens by cl100k_base, as published. Nobody here has run it
NetworkX Network Propagation Starter
Use this skill to propagate signal from one or more seed nodes over a small weighted interaction graph with personalized PageRank.
What it does
- Loads a deterministic weighted edge list and a small seed-node set.
- Runs NetworkX personalized PageRank as a lightweight propagation surrogate.
- Emits ranked node scores, top non-seed hits, and basic graph statistics in JSON.
When to use it
- You need a verified local starter for
network propagation. - You want a deterministic way to score neighbors around seed genes before using larger pathway or interaction resources.
Example
python3 skills/systems-biology/networkx-network-propagation-starter/scripts/run_networkx_network_propagation.py \
--input skills/systems-biology/networkx-network-propagation-starter/examples/toy_network.tsv \
--seeds skills/systems-biology/networkx-network-propagation-starter/examples/toy_seeds.txt \
--top-k 5 \
--out scratch/networkx-propagation/summary.json
Verification
- Skill-local tests:
python3 -m unittest discover -s skills/systems-biology/networkx-network-propagation-starter/tests -p 'test_*.py' - Repository smoke target:
make smoke-network-propagation
What ships with it: 7 files
9.6 KB alongside SKILL.md, 2 of them executable
assets/
examples/
- toy_network.tsv220 B
- toy_seeds.txt11 B
scripts/
- run_networkx_network_propagation.pyruns4.1 KB
tests/
- test_run_networkx_network_propagation.pyruns2.3 KB
- metadata.yaml1.4 KB
- refs.md256 B