NetNeuroTools Guide (Claude Skill)
Guides Claude through connectome analysis with the Network Neuroscience Lab’s netneurotools package — building consensus networks, computing communication and assortativity metrics, and testing them against null models that preserve degree, distance or spatial autocorrelation.
| Type | Claude Skill |
| Supplier | Awesome Cognitive and Neuroscience Skills (community OSS, MIT) |
| Availability | GA — one of ~40 research skills in the collection |
| Pricing | Free / OSS (MIT) — netneurotools itself is BSD-3-Clause |
| Capabilities | Read/Write — methodology guidance; Claude writes and runs the analysis code locally |
| Verified | works · 2026-08-13 |
| Security | cleared · 2026-08-13 — genuine org transfer to NeuroAIHub confirmed, MIT, no external credentials |
How to install
- Claude Code — plugin marketplace (installs all skills in the collection):
/plugin marketplace add HaoxuanLiTHUAI/awesome_cognitive_and_neuroscience_skills /plugin install awesome-cognitive-and-neuroscience-skills@awesome-cognitive-and-neuroscience-skillsRestart Claude Code afterwards. The skills are description-activated — there is no slash command; ask a connectome or brain-network question and Claude loads the skill.
- Claude Code — single-skill alternative:
git clone https://github.com/HaoxuanLiTHUAI/awesome_cognitive_and_neuroscience_skills cp -r awesome_cognitive_and_neuroscience_skills/skills/netneurotools-guide ~/.claude/skills/(Project-scoped alternative: copy into
.claude/skills/instead. The repo’s default branch ismaster, notmain. Unlike most skills in this collection, this one declares noresearch-literacydependency — copy that directory too if you want the collection’s shared literature conventions.) - Underlying software — install the package the skill drives:
pip install "netneurotools[pyvista]"The extra pulls PyVista for surface plotting; drop it if you only need metrics. Core dependencies are numpy ≥ 1.16, scipy ≥ 1.4.0, scikit-learn, matplotlib, nibabel ≥ 3.0.0, nilearn,
bctpyandneuromaps.
What it does
Walks the eight netneurotools submodules as a pipeline:
datasets— fetch templates, parcellations and reference connectomes.networks— build group consensus connectivity and apply thresholding.metrics— communication measures, assortativity and related graph statistics.spatial— spatial autocorrelation statistics: Moran’s I, Geary’s C, Lee’s L.modularity— consensus community detection.stats— permutation tests and dominance analysis.- Null models — randomizations and surrogates that preserve degree and/or distance.
plotting— cortical surface renderings and heatmaps.
Parameter rules the skill states: consensus modularity requires non-negative input, so zero out negative weights with A[A < 0] = 0 before running Louvain; convert weights to distances for communication metrics via D = -np.log(W / (np.max(W) + 1)); and remember that a permutation p-value cannot go below 1 / (n_perm + 1) — 1,000 permutations floors you at ~0.001, so report the permutation count alongside any p-value.
Primary use cases: structural and functional connectome analysis, brain-map correspondence testing against spatial nulls, community/module detection in parcellated networks.
Notes
AI-generated content — verify before use. All skills in this collection carry review_status: ai-generated, and the README states the content “has not been individually verified by human domain experts.” This skill’s front-matter lists no cited papers — check its parameter guidance against the netneurotools documentation before relying on it.
The null-model layer is the reason to reach for this package over a generic graph library: brain-network statistics compared against a plain random-graph null routinely produce significance that reflects spatial embedding rather than biology.
Related catalogued tools: BrainNetworkTransformer and Com-BrainTF for deep-learning approaches to the same connectome matrices, Nilearn for constructing them from fMRI, Pycortex Guide for surface rendering, and Lesion-Symptom Mapping Guide for the lesion-network case.
Sources
HaoxuanLiTHUAI/awesome_cognitive_and_neuroscience_skillsskills/netneurotools-guide/SKILL.md- netneurotools documentation
Installed this tool?
Share feedback — install path, OS, errors, workarounds. The form opens with this tool pre-selected and a link back to this page.