eeg-connectivity

Compute EEG functional connectivity metrics across conditions and frequency bands.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dengzhe-hou/auto-eeg-analysis --skill eeg-connectivity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eeg-connectivity
Source: https://github.com/dengzhe-hou/auto-eeg-analysis/tree/main/skills/eeg-connectivity
Command: npx skills add https://github.com/dengzhe-hou/auto-eeg-analysis --skill eeg-connectivity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It turns cleaned EEG epochs into defensible functional connectivity and optional network metrics, reducing the risk of misleading sensor-space synchronization claims.

Core Features & Use Cases

  • Connectivity computation with validated metrics: Computes wPLI, PLV, coherence, imaginary coherence, Granger causality, or PAC, with explicit warnings about sensor-space volume conduction and metric validity checks.
  • Flexible sensor vs source-space support: Runs on sensor-space epochs by default, and supports source-space connectivity if source-stage exists (with leakage/orthogonalization guardrails).
  • Graph-theoretic summaries and reporting outputs: Optionally thresholds connectivity matrices and outputs graph metrics plus group aggregation artifacts suitable for downstream stats and figure generation.

Quick Start

Run the connectivity stage for your study by asking for a specific metric and space, for example: "/eeg-connectivity projects/my-study — metric: wpli — space: sensor".

Frequently Asked Questions about eeg-connectivity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute EEG functional connectivity matrices from cleaned epochs?

EEG functional connectivity computation processes cleaned epochs across conditions and frequency bands to generate connectivity matrices using metrics like wPLI, PLV, coherence, imaginary coherence, Granger causality, or PAC. It requires frozen analysis plans and existing epoch-stage inputs.

Can I run source-space EEG connectivity analysis without volume conduction issues?

Source-space EEG connectivity analysis is supported with leakage and orthogonalization guardrails if a source-stage exists. It applies validated metrics and issues explicit warnings about sensor-space volume conduction to ensure defensible synchronization claims.

What is the best way to calculate graph metrics from EEG connectivity networks?

Graph metrics calculation from EEG connectivity networks optionally thresholds connectivity matrices and outputs graph-theoretic summaries plus group aggregation artifacts. These outputs are suitable for downstream statistics and paper-ready figure generation.

How do I set up my environment before computing EEG connectivity?

EEG connectivity computation requires a frozen ANALYSIS_PLAN.md, existing epochs-stage inputs, ENVIRONMENT.json backend resolution, and consistent channel or source mappings before writing connectivity-stage outputs and updating FINDINGS.

Does wPLI work better than PLV for sensor-space EEG connectivity?

wPLI is validated for sensor-space EEG connectivity and mitigates volume conduction artifacts better than PLV. The tool performs metric validity checks and provides explicit warnings about sensor-space synchronization limitations.

What are the limitations of sensor-space EEG connectivity analysis?

Sensor-space EEG connectivity analysis risks misleading synchronization claims due to volume conduction. The tool issues explicit warnings about these limitations and recommends source-space analysis with leakage correction when defensible connectivity claims are needed.