From awesome-cognitive-and-neuroscience-skills
Guides ERP analysis for EEG data: preprocessing pipelines, filter/reference choices, ICA artifact correction, epoching, component ID, and stats strategies.
npx claudepluginhub neuroaihub/awesome_cognitive_and_neuroscience_skills --plugin awesome-cognitive-and-neuroscience-skillsThis skill uses the workspace's default tool permissions.
This skill encodes expert methodological knowledge for analyzing event-related potentials (ERPs) from EEG data. It provides domain-specific parameter recommendations, processing order guidance, component identification criteria, and statistical analysis strategies that a general-purpose programmer or data scientist would not know without specialized training.
Guides EEG paradigm design to isolate ERP components, specifying domain-validated timing, trial counts, control conditions, and montages.
Processes biosignals like ECG, EEG, EDA, PPG, EMG, EOG for HRV analysis, complexity measures, event-related potentials, and psychophysiology using NeuroKit2.
Processes physiological signals including ECG, EEG, EDA, PPG, EMG, EOG for HRV analysis, complexity measures, and psychophysiology research using NeuroKit2.
Share bugs, ideas, or general feedback.
This skill encodes expert methodological knowledge for analyzing event-related potentials (ERPs) from EEG data. It provides domain-specific parameter recommendations, processing order guidance, component identification criteria, and statistical analysis strategies that a general-purpose programmer or data scientist would not know without specialized training.
Before executing the domain-specific steps below, you MUST:
For detailed methodology guidance, see the research-literacy skill.
This skill was generated by AI from academic literature. All parameters, thresholds, and citations require independent verification before use in research. If you find errors, please open an issue.
The standard ERP preprocessing pipeline involves 7 ordered steps. Processing order matters and can influence results (the "multiverse" problem; see Lonedo et al., 2020).
Multiverse note: Steps 2-5 interact. Filtering before ICA improves decomposition quality (Winkler et al., 2015). Some researchers re-reference after ICA. Document your choices and consider running key alternatives to assess robustness.
For detailed parameters at each step, see references/preprocessing-pipeline.md.
| Step | Parameter | Default | Source |
|---|---|---|---|
| Filter | High-pass | 0.1 Hz | Luck, 2014, Ch. 5; Tanner et al., 2015 |
| Filter | Low-pass | 30 Hz | Luck, 2014, Ch. 5 |
| Filter | Filter type | FIR, zero-phase | Widmann et al., 2015 |
| Re-reference | Scheme | Average reference | Luck, 2014, Ch. 5; Keil et al., 2014 |
| Artifact rejection | Threshold | +/-100 uV | Luck, 2014 |
| Bad channels | Max proportion | < 10% of total channels | Keil et al., 2014 |
| Epoching | Window | -200 ms to 800 ms | Luck, 2014, Ch. 5 |
| Baseline | Window | -200 ms to 0 ms | Luck, 2014, Ch. 5 |
To measure an ERP component correctly, you need three pieces of information:
references/erp-components.mdreferences/erp-components.md before committing to a theoretical interpretation| Domain | Key Components | Reference File Section |
|---|---|---|
| Visual perception | P1, N1, N170, N2pc | erp-components.md Section 1 |
| Language | N400, P600/LPC, ELAN, LAN | erp-components.md Section 2 |
| Executive control | ERN/Ne, Pe, N2, CNV | erp-components.md Section 3 |
| Memory | FN400, parietal old/new, Dm | erp-components.md Section 4 |
Choose your measurement approach based on the component:
| Measure | Best For | Avoid When | Source |
|---|---|---|---|
| Mean amplitude | Broad components (N400, P300, LPC) | Component is sharp and brief | Luck, 2014, Ch. 9 |
| Peak amplitude | Sharp, well-defined peaks (P1, N1) | Component has no clear peak or has multiple peaks | Luck, 2014, Ch. 9 |
| Peak latency | Measuring processing speed | Component lacks a clear peak | Luck, 2014, Ch. 9 |
| 50% fractional area latency | Latency with unequal amplitudes across conditions | Rarely inappropriate; preferred over peak latency | Luck, 2014, Ch. 9; Kiesel et al., 2008 |
| Signed/unsigned area | Components spanning positive and negative voltages | Simple, unipolar components | Luck, 2014, Ch. 9 |
Critical: Never select a time window or ROI by looking at the difference between conditions. This inflates Type I error (Luck & Gaspelin, 2017).
Is your hypothesis about a specific, well-characterized component?
|
+-- YES --> Do you have a priori time window and ROI?
| |
| +-- YES --> Traditional ANOVA on mean/peak amplitude
| |
| +-- NO --> Use collapsed localizer, then ANOVA
|
+-- NO --> Is your effect potentially distributed across time/space?
|
+-- YES --> Cluster-based permutation test (Maris & Oostenveld, 2007)
|
+-- NO --> Mass univariate with FDR correction (Groppe et al., 2011)
For detailed statistical method descriptions, see references/statistical-approaches.md.
Based on Keil et al. (2014) and Luck (2014):
See references/ for detailed parameter tables, component database, and statistical method descriptions.