NEST patch and python files for the model: Addolorata Marasco, Emiliano Spera, Vittorio De Falco, Annalisa Iuorio, Carmen Alina Lupascu, Sergio Solinas and Michele Migliore. An Adaptive Generalized Leaky Integrate-and-Fire model for hippocampal CA1 pyramidal neurons and interneurons.

We propose an adaptive generalized leaky integrate-and-fire model, for hippocampal CA1 neurons and interneurons, in which the nonlinear nature of the firing dynamics was successfully reproduced by linear ordinary equations equipped with nonlinear and more realistic initial and update conditions after each spike event, which strictly depends on the external stimulation current.

Dependencies and installation instructions: follow instructions below.

In order to reproduce Fig. 7 and 8 of the paper run:
python -i Fig7_ModelDB.py
or
python -i Fig8_ModelDB.py

To reproduce the same figures with the NEST model run:
python -i Fig7_ModelDB_nest.py
or
python -i Fig8_ModelDB_nest.py

The scripts will produce the following images:
Fig7 from python code
Figure 7

Fig8 from python code
Figure 8

Fig7 from python-NEST code
Figure 7 NEST

Fig8 from python-nest code
Figure 8

Under Ubuntu unix systems:
install cmake and build-essential:
sudo apt install cmake
sudo apt-get install build-essential
install anaconda3 follwoing instructions from:
...

Create a Conda Enviroment following instructions at https://github.com/nest/nest-simulator/blob/master/environment.yml OR
create a conda environment:
conda create -n nest python=3.9
conda activate nest

install the following packages:
conda install -c anaconda numpy
conda install -c forge matplotlib
conda install -c conda-forge openmpi
conda install -c anaconda gsl
conda install -c anaconda cython

to compile the NEST simulator with our AGLIF model:
download the correct nest version using:
git clone https://github.com/nest/nest-simulator.git
git fetch
git checkout 01f6e5a763906a3b7cf6713b887366af7bc20a44

Apply the patch:
git apply AGLIF_model_nest.patch

mkdir ../nest-build
cd ../nest-build
cmake ../nest-simulator
make
make install

Questions on how to use this model
should be directed to michele.migliore at pa.ibf.cnr.it
Questions on how to modifiy or run this
model should be addressed to smgsolinas at uniss.it