Code used for simulations in Unveiling the role of local metabolic constraints on the structure and activity of spiking neural networks article
Following this approach all the results in the article could be replicated. I will assume that you have miniconda3 installed. If not, you can follow the instructions here.
- clone the repo
git clone [email protected]:Wiss/edsnn.git
and go to the new folder: cd edsnn
- create a conda environment
edsnn $ conda env create -f environment.yml
This would create an environment with all the required packages. To activate the environment do: conda activate nest_33_ehp
, which activate the environment with the default name given in the environment.yaml file
- There is a folder (
edsnn/network/models/built_models
) containing all the necessary built models that nest requires to run the code and experiments. The nest installation associated with the conda environment needs to be able to find and use this files. So they need to exist in~/miniconda3/envs/nest_33_ehp/lib_nest
. To automatically copy the built models into nest library run:
edsnn $ bash copy_built_models_to_nest_lib.sh
- If everything works well, now you can run a test experiment. First go to the network folder:
edsnn $ cd network
edsnn/network $ python -m src.experiment -f config/test.yaml
The results should appear in the edsnn/network/results/test
folder.
OBS: Using this approach, you will not be able to generate new models (its not possible to run network/neu-syn_cogeneration.py
).
If you want to create your own energy-dependent models, then specific version of nest and nestml are required, In particular:
The code works with NEST v3.3. Specifically, under commit:
master@61f08e0ea
You can find that commit here.
The code works with NESTML Version 5.0.0-post-deb. Particularly, under commit:
master@160253c61cad8b3facd2f3cdcd410015dc524c53
you can install that specific version by running:
pip install https://github.com/nest/nestml/archive/160253c61cad8b3facd2f3cdcd410015dc524c53.zip
I used gcc version 9.4.0
@article {Jaras2023,
author = {Jaras, Ismael and Orchard, Marcos E. and Maldonado, Pedro E. and Vergara, Rodrigo C.},
title = {Unveiling the role of local metabolic constraints on the structure and activity of spiking neural networks},
elocation-id = {2023.10.25.563409},
year = {2023},
doi = {10.1101/2023.10.25.563409},
publisher = {Cold Spring Harbor Laboratory},
URL = {https://www.biorxiv.org/content/early/2023/10/27/2023.10.25.563409},
eprint = {https://www.biorxiv.org/content/early/2023/10/27/2023.10.25.563409.full.pdf},
journal = {bioRxiv}
}