Codes for generating and analyzing the synthetic field potential recordings used to validate our proposed forward modeling approach linking mesoscopic CSD derived from LFP to macroscopic ERPs (Figure 2 - Herrera and Westerberg et al. (2022)).
- python_sim_scripts: scripts for running the biophysical simulations to generate the synthetic field potentials shown in Figure 2 of Herrera and Westerberg et al. (2022).
- matlab_ana_scripts: matlab scripts used to process the synthetic field potentials and create Figure 2 C-K.
- MATLAB (release 2021b, The MathWorks). Toolboxes: Signal Processing Toolbox, Parallel Computing Toolbox, Statistics and Machine Learning Toolbox.
- NEURON simulator (release 8.0, http://www.neuron.yale.edu/neuron)
- Python 3.8
- LFPy 2.2.2 (https://github.com/LFPy/LFPy)
- CSDplotter (https://github.com/espenhgn/CSDplotter)
- Brainstorm
- Elephant (https://elephant.readthedocs.io/en/latest/)
- Neo (https://neo.readthedocs.io/en/latest/)
- eegfilt.m function from EEGLAB
- RasterPlot
- point2trimesh.m (ver. 1.0.0, https://www.mathworks.com/matlabcentral/fileexchange/52882-point2trimesh-distance-between-point-and-triangulated-surface)