eeg-erp

Compute ERP evoked responses and component measures from EEG epochs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mne.

What problem does it solve?

It automates the process of computing event-related potentials (ERPs) from cleaned EEG epochs, including grand averages, difference waves, and component-level amplitude/latency measurements aligned to a pre-registered analysis plan.

Core Features & Use Cases

  • Condition- and contrast-aware evoked exports: averages per condition and generates per-contrast subject evoked difference waves for later statistics.
  • Component measurement per ANALYSIS_PLAN: measures component amplitude and latency (mean amplitude by default, with support for peak, adaptive mean, or fractional area latency) using ROI channels and time windows from the frozen plan.
  • Paper-oriented outputs: produces per-subject .fif evoked files, grand averages, GFP, measurement tables, and the documentation artifacts needed for downstream figure/stats/audit stages.

Use it when you need to respond to prompts like "compute ERPs", "average epochs", or "ERP components", or right after the epoch-stage finishes so the pipeline can proceed to stats and figures.

Quick Start

Run eeg-erp on your project by providing a frozen ANALYSIS_PLAN and an epoch-stage so the skill can compute evoked responses for the planned conditions and export the ERP outputs.

Frequently Asked Questions about eeg-erp

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

FAQPage Schema
How do I compute ERP evoked responses and grand averages from cleaned EEG epochs?

To compute ERP evoked responses and grand averages, this skill processes pre-cleaned EEG epochs to generate per-subject .fif evoked files, grand averages, and GFP aligned to a frozen ANALYSIS_PLAN.

How do I measure ERP component amplitude and latency using MNE?

Measuring ERP component amplitude and latency is done by applying ROI channels and time windows from an ANALYSIS_PLAN, supporting mean amplitude, peak, adaptive mean, or fractional area latency measures for downstream statistics.

How can I generate per-contrast difference waves for EEG statistics?

Generating per-contrast difference waves involves averaging planned conditions from pre-cleaned epochs and exporting subject-level evoked difference waves, enabling direct downstream statistical comparisons across conditions.

Do I need an ANALYSIS_PLAN to calculate event-related potentials from epochs?

Yes, calculating event-related potentials requires reading a frozen ANALYSIS_PLAN.md to resolve ROI channels and time windows, ensuring component measurements align with the pre-registered analysis plan.

What formats and files are needed to extract ERP components from EEG data?

Extracting ERP components requires pre-cleaned epoch-stage outputs, an ENVIRONMENT.json for backend validation, and a channel_mapping.json for ROI resolution to produce measurement tables and evoked .fif files.

When should I use grand averaging and GFP in ERP analysis?

Use grand averaging and GFP in ERP analysis when you need paper-ready summaries of condition-level evoked responses across subjects, producing documentation artifacts for downstream figure and stats stages.