Skip to content

🧠 ERP analysis of EEG data from Simon task recordings.

Notifications You must be signed in to change notification settings

armi3/simon-task-eeg

Repository files navigation

simon-task-eeg

🧠 ERP analysis of EEG data from Simon task recordings.

πŸ“„ Description

This repository contains a fully automated EEG processing and analysis pipeline for extracting and analyzing N2 waveforms (~200–350 ms) at frontocentral electrodes (Fz, FCz, Cz).

The script processes EEG data from raw Β΄.setΒ΄ files, applies preprocessing steps, and extracts event-related potentials (ERPs) for congruent (S1) and incongruent (S2) trials in the Simon task.

πŸ“‚ Running the pipeline

This is how the repo is structured:

/simon-task-eeg/
β”œβ”€β”€ datasets/                          # EEG datasets (input & output)
β”‚   β”œβ”€β”€ sub_100_Simon_eeg.set          # Raw EEG data (Subject 100)
β”‚   β”œβ”€β”€ sub_101_Simon_eeg.set          # Raw EEG data (Subject 101)
β”œβ”€β”€ img/
β”‚   β”œβ”€β”€ n2_avg.png
β”‚   β”œβ”€β”€ n2_separate.png
β”œβ”€β”€ pipeline_1_preprocess_manual.m
β”œβ”€β”€ pipeline_2_preprocess_automated.m
β”œβ”€β”€ pipeline_3_preprocess_analysis.m
β”œβ”€β”€ pipeline_full.m
β”œβ”€β”€ report.pdf

And this is a simplified example on how to place the pipeline scripts in order to run them in Matlab's EEGLAB:

/eeglab2024.2/
β”œβ”€β”€ datasets/
β”‚   β”œβ”€β”€ sub_100_Simon_eeg.set
β”‚   β”œβ”€β”€ sub_101_Simon_eeg.set
β”œβ”€β”€ eeglab.m
β”œβ”€β”€ pipeline_full.m
...

After placing the pipeline_full.m in the EEGLAB directory, run in Matlab's console:

pipeline_full

About

🧠 ERP analysis of EEG data from Simon task recordings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages