Skip to content

This repository provides analysis code to analyze spatial mixing in electrophysiological data through lead field and spatial pattern coefficients.

License

Notifications You must be signed in to change notification settings

nschawor/meg-eeg-leadfield-mixing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Is sensor space analysis good enough? Spatial patterns as a tool for assessing spatial mixing of EEG/MEG rhythms

This repository provides analysis code to analyze spatial mixing in electrophysiological data through lead field and spatial pattern coefficients.

Reference

Schaworonkow N & Nikulin VV: Is sensor space analysis good enough? Spatial patterns as a tool for assessing spatial mixing of EEG/MEG rhythms. NeuroImage (2022).

Dataset

The results are based on following available openly available data set: "Leipzig Cohort for Mind-Body-Emotion Interactions" (LEMON dataset), from which we used the preprocessed EEG data Additionally, we used the MOUS data set. The associated data set research articles:

We also use the New York Head, a head model and pre-computed lead field. The asssociated research articles are:

To reproduce the results, the preprocessed EEG and MEG data and leadfield matrix (file name: sa_nyhead.mat) should be downloaded and placed into the folder data (or otherwise, the path to the data needs to be adjusted).

Requirements

The provided python3 scripts are using scipy and numpy for general computation, pandas for saving intermediate results to csv-files. matplotlib for visualization. For EEG-related analysis, the mne package is used. For computation of aperiodic exponents: specparam. Specifically used versions can be seen in requirements.txt.

Pipeline

To reproduce the figures from the command line, navigate into the code folder and execute make all. This will run through the preprocessing steps and generate the figures. The scripts can also be executed separately in the order described in the Makefile.

About

This repository provides analysis code to analyze spatial mixing in electrophysiological data through lead field and spatial pattern coefficients.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published