This code repository is associated with the following manuscript:
Brake N and Khadra A. Contributions of action potentials to scalp EEG: theory and biophysical simulations. BioRxiv [Preprint]. June 1, 2024. Available from: https://doi.org/10.1101/2024.05.28.596262
This repository contains four folders: figures, modelling, auxiliary_functions, and data_files.
figures contains MATLAB code to reproduce all the figures of the manuscript. See Installation guide and Instructions for use below.
modelling contains several analysis functions that are called by the figure generation scripts. Additionally, this folder contains the code used to simulate the model. The results of these simulations are provided as data files (see below).
auxiliary_functions contains auxiliary MATLAB function unrelated to the modelling work.
data_files contains the output of the simulations, as well as other necessary data files. To reduce the repository size, these data files should be download from this link and moved to the data_files directory. For more information, read the README in the data_files folder.
Generating the manuscript figures requires only a standard computer. This software has been tested using MATLAB 2023a running on Windows 10.
Required MATLAB toolboxes
- Signal Processing Toolbox
- Statistics and Machine Learning Toolbox
git clone https://github.com/niklasbrake/apEEG_modelling
cd apEEG_modelling/figures
matlab
This should run in less than a minute and open a matlab instance with the working directory set to the figures folder.
Quantiative results in our manuscript can be reproduced by running the script
plot_all_results
This script should produce 26 figures that together reproduce the modelling results in Figs. 1-7 and Figs. S1-S5. Estimate run time ~3.5 minutes.
This repository is licensed under a GNU GENERAL PUBLIC LICENSE Version 3.