An automated translation tool for converting SNNAP models into NEURON models
-
Download this project, extract it, and navigate to the extracted directory.
-
Install the tool by running
python setup.py develop
. -
From any directory, you can now run the
snnap2neuron
command on a SNNAP.smu
simulation file, e.g.,snnap2neuron my_sim.smu
Alternatively, use the Python API:
>>> from snnap2neuron import snnap2neuron >>> snnap2neuron('my_sim.smu')
In the directory containing the SNNAP .smu
file, a new folder named
NRNModel_[name]
will be created, containing the necessary .hoc
files to
replicate the results of the SNNAP simulation in NEURON.
All the necessary .mod
files will be found in the directory of this project:
SNNAP2NEURON/utilityFiles/snnap_modFiles
.
-
Compile the
*.mod
files: -
Run
NRNModel_[name]/sim_[name].hoc
with NEURON.
Your SNNAP results should be reproduced. For help visualizing them, check
UseExample.ipynb
.