Skip to content
Back to skills

Mne Connectivity Graph Starter

ASecurity

Use this skill to build a tiny EEG connectivity graph with `mne` and `mne-connectivity`.

  • 38 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill mne-connectivity-graph-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mne Connectivity Graph Starter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mne Connectivity Graph Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-mne-connectivity-graph-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-mne-connectivity-graph-starter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# MNE Connectivity Graph Starter

Use this skill to build a tiny EEG connectivity graph with `mne` and `mne-connectivity`.

## What it does

- Creates deterministic toy epochs with three EEG channels.
- Computes alpha-band coherence with `spectral_connectivity_epochs`.
- Converts the resulting matrix into a thresholded edge list and writes a compact JSON summary.

## When to use it

- You need a verified starter for connectomics or graph-style neuroimaging analysis.
- You want a compact example of spectral connectivity before moving to real EEG/MEG datasets.
- You need stable graph summary fields for tests or demos.

## Example

```bash
slurm/envs/neuro/bin/python skills/neuroscience-and-neuroimaging/mne-connectivity-graph-starter/scripts/run_mne_connectivity_graph.py \
  --out scratch/neuro/mne_connectivity_graph_summary.json
```

## Verification

- Skill-local tests: `python3 -m unittest discover -s skills/neuroscience-and-neuroimaging/mne-connectivity-graph-starter/tests -p 'test_*.py'`
- Expected summary: the strongest edge is `Fz -> Cz` and only one edge survives the default `0.5` threshold

Files in this skill

  • SKILL.md1.1 KB
  • assets/README.md123 B
  • assets/mne_connectivity_graph_summary.json535 B
  • examples/README.md216 B
  • metadata.yaml1.2 KB
  • refs.md364 B
  • scripts/run_mne_connectivity_graph.py4 KB
  • tests/test_run_mne_connectivity_graph.py1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…