📜 Klotzsche, Gaebler, Villringer, Sommer, Nikulin, & Ohl (2023). Psychophysiology, 00, e14378.
https://doi.org/10.1111/psyp.14378
💽 Data: https://doi.org/10.17617/3.WRDUGO
📑 Preprint: https://www.biorxiv.org/content/10.1101/2023.01.23.525140v1
Combining EEG with virtual reality, we studied how the eccentricity of a memory array during encoding affects well-known neural markers of visual short-term memory. We reveal that previously reported EEG-markers of visual memory can be replicated in such a setup. These EEG-markers were differently affected by eccentricity, hence providing valuable constraints for future experimental designs.
If you want to reproduce the statistics (or the [pre]processing steps) reported in the paper, we suggest that you follow these steps:
tl;dr
Code relevant for the EEG (pre)processing can be found in the.ipynb
notebooks in Analyses_Py/Pipeline_clean.
Most of the statistical analysis are performed in Analyses_R/VME_mainAnalysis.Rmd.
The code for the eye tracking analysis is in Analyses_R/EyeTracking/analyze_gaze.R.
Most important: If you run into problems, please do not hesitate to contact me (e.g., via email) or open an issue here. Much of the code is acceptably well documented and the notebooks should (theoretically) run from top to bottom but it probably is not 100% self-explanatory.
So if you want to work with the code, I am happy to support you in getting it to work.
How to get started:
- Download the data set from Edmond – The Open Research Data Repository of the Max Planck Society
There are data-readme files on Edmond which explain which files you might want to work with (the entire data set is quite spacious). - Clone this repository to a clean local directory (called
ROOT
in the next sections). Recommended:
Set up a dedicated virtual environment (e.g., via conda). I provide arequirements.txt
in the repository which reflects the conda environemnt I was working in. This, however, is quite extensive and includes more than needed. You can try to create a new conda environment from this file (if you have time and like fighting with conda). I would recommend starting out with a minimal environment (based onPython 3.9+
), manually install MNE-Python, and install furher required packages on the fly (i.e., when you need them).- Activate your new environment and change into your
ROOT
:conda acitvate <your_env_name> cd path\to\ROOT
- Add the python module in the repo to the conda environment:
or via pip (if you don't work with conda):
conda develop vMemEcc-Analyses/Analyses_Py
pip install -e vMemEcc-Analyses/Analyses_Py
- Now, in order to make it easier to put the data in the right place, I recommend importing
config.py
once. It will initialize theData
folder structure:Alternatively, you can run the top cell in one of thepython3.10 -c "from library import config"
.ipynb
notebooks, which will do the same. - in
ROOT
you should now find a folderData
which contains a bunch of nested empty subfolders.- If you downloaded the data folder
VME_EEG
from Edmond you will in it find the same structure. The subfolderDataMNE
has to be placed directly intoROOT\Data
and the downstream structure must stay intact if you want to work with the scripts in this repo (without having to tweak 1000 paths). - If you want to work with the raw data (in the zip-folder
VME_RawFiles.zip
on Edmond, you need to place the folders with all the single subject files (VME_S23
, etc) in a folderROOT\Data\SubjectData
. Do not forget that some of the subfolders are separately zipped. - If you want to work in R, the data from
VME_DataR
needs to be placed next toDataMNE
(i.e., inROOT\Data\
).
- If you downloaded the data folder
- Now you should be ready to go. 😊
You can use the
tags
in the repo to identify the according commits.
2023-07
: Code associated with the peer-reviewed paper:
- Klotzsche, Gaebler, Villringer, Sommer, Nikulin, & Ohl (2023). Psychophysiology, 00, e14378.
https://doi.org/10.1111/psyp.14378
[ Code now reflects additions made over the course of the revision. ]
2023-01
: Code associated with the preprint:
Sven Ohl