Skip to content

Simulates EEG signals generated exclusively by action potentials. Reproduces all figures used in manuscript.

License

Notifications You must be signed in to change notification settings

niklasbrake/apEEG_modelling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preprint

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

Overview

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.

System requirements

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

Installation guide

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.

Instructions for use

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.

License

GPL3
This repository is licensed under a GNU GENERAL PUBLIC LICENSE Version 3.

About

Simulates EEG signals generated exclusively by action potentials. Reproduces all figures used in manuscript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published