Skip to content

dvanmoorselaar/DvM

Repository files navigation

DvM

Analysis scripts for EEG, eye tracking and behaviour. EEG analysis scripts are based on MNE (www.martinos.org/mne/stable/index.html) with added functionality.

EEG analysis includes - Semi automatic preprocessing pipeline - ERP analysis - Multivariate decoding - Forward encoding models

Especially suited to integrate EEG data with behavioural and/or eye tracking experiments s using OpenSesame

Installation

To make use of this toolbox you have to set up a virtual python environment. The necessary steps are outlined below:

  1. install anaconda (switching all code to python 3 now)
  2. launch terminal
  3. conda create -n mne python=3.11 pip
  4. conda activate mne
  5. pip install --upgrade pip
  6. conda install scipy matplotlib scikit-learn mayavi jupyter spyder
  7. conda install seaborn statsmodels
  8. pip install --upgrade mne
  9. pip install PySurfer autoreject python-picard opencv-python openpyxl

Folderstructure

Analysis are run from specific project scripts (e.g. Wholevspartial.py). To make sure this setup works on your own computer within this script you have to make sure that the project folder is specified. This folder needs to contain the following subfolders:

  1. eeg/raw (raw eeg files .bdf or .edf)
  2. behavioral/raw (raw behavior files .csv)
  3. eye/raw (raw eye files if available .asc or .csv)

For detailed file naming conventions and folder organization standards, see NAMING_CONVENTIONS.md.

Also make sure that the system is pointed to the folder where you stored the ANALYSIS toolbox. For any questions or suggestions, please email me: dirkvanmoorselaar@gmail.com

NOTE: The scipts, documentation and instructions are still being developed

Citation

Please cite:

Gramfort, A., Luessi, M., Larson, E., Engemann, D. A., Strohmeier, D., Brodbeck, C., ... & Hämäläinen, M. S. (2014). MNE software for processing MEG and EEG data. Neuroimage, 86, 446-460.

If you use the pygazeanalyser functionality to analyse eyetracker data in any way please cite:

Dalmaijer, E.S., Mathôt, S., & Van der Stigchel, S. (2013). PyGaze: an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments. Behaviour Research Methods. doi:10.3758/s13428-013-0422-2

About

python scripts for analyzing eeg data and behavior

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors