This is the code underlying a research project where we investigate how spatial phase information in grid cells is processed in a biophysically realistic model of the dentate gyrus. The main purpose of this repository is to make the code we wrote for the project available and reproduce our findings.
git clone https://github.com/barisckuru/phase-to-rate.git
.conda create -n phasetorate python=3.9
.conda activate phasetorate
.conda install git
(pip runs into problems without git in the environment).pip install -e .
C:\nrn
. Once installed you need to find a way to add C:\nrn\lib\python
to your Python path. Try something like this. Sometimes you also need to manually set the environmental variable NEURONHOME
to C:\nrn
but most of the time the installer should take care of that. To check if it worked, start python
and try from neuron import h, gui
. If this runs without error NEURON is installed.import phase_to_rate
to check that the setup worked.python 01_simulate.py
to start generating some raw data or run figure1.py if you have the raw data to reproduce the first figure.If you encounter problems with creating the setup that relate to pydentate you can look for a solution in the pydentate repo. There are some known issues that relate to installing NEURON on windows. You can contact danielmuellermsc@gmail.com for technical questions relating to this repository and the setup.
The easiest way to reproduce the findings is with the original raw data. Since it is 70GB large we unfortunately cannot ship it with the GitHub repo. If you want to get the raw data, contact the corresponding author Oliver Branganza (oliver.braganza@ukbonn.de). With the original data in your phase-to-rate directory you can simply run the scripts figure1.py
to figure5.py
interactively to reproduce the figures. If you want to generate and analyze the raw data yourself or just want to see the code behind it, you will need to use the following scripts in order:
These scripts depend on modules in phase_to_rate
. A brief explanation on those:
The 'supplemental' directory contains scripts to generate the supplemental figure.
Barış Can Kuru - Institute of Experimental Epileptology and Cognition Research
Daniel Müller-Komorowska - Neural Coding and Brain Computing Unit, Okinawa Institute of Science and Technology Graduate University, Okinawa, Japan
Oliver Braganza - Institute of Experimental Epileptology and Cognition Research