This USER GUIDE will help you to understand the concept of this project and finally give you step-by-step instructions how to create, run model and analyse results, using this project.
The model are totally defined in model description file, which has standard configuration format with Python expansion. The basic syntax of model description file allows you define set on stimuli for model activation, population of neurons, connections between populations, simulation parameters and results analyze.
There are three stages of each simulation which are
Let look at each stage separately.
Fro preprocessing script may be run both under Python or NEURON environment. To lunch script with python you should run following command to prepare the model to Run Locally
$python (path to mainmodel.py) --no-run
or fallowing command to prepare model to Run through NSG portal
$python (path to mainmodel.py) --preset-only
Same commands with NEURON environment:
$nrngui -nogui -python -isatty (path to mainmodel.py) --no-run
# OR to prepare for NSG portal:
$nrngui -nogui -python -isatty (path to mainmodel.py) --preset-only
In this stage:
- The script creates stimuli to activate model based on STIMULI section of model description file. The project uses Python wrapper for Zilany, M. S. A. and Carney, L.H. 2010 auditory nerve model to generate spike trains of auditory nerve fibers. The result files for each stimulus has simple format which may be read by check-pkl script;
- Then it reads POPULATIONS, SYNAPSES, CONNECTIONS and RECORD sections and creates network file. The name of network file is defined by networkfilename option in GENERAL section of model description file.
- Finally, it copies NEURON mod files into root directory and if it runs Locally call nrnivmodl (or any other compiler which may be defined by
--mod-compiler=
command line key) to compile them.
In this stage script should be run ONLY under NEURON environment.
$[mpyrun -hosts=... -n=...] nrngui -nogui -python -isatty [-mpi] (path to mainmodel.py)
The NEURON may be run in parallel environment, i.e. MPI, and each thread or each MPI instance performs next actions:
- Reads network file and creates cell which should be hosted at this particular node.
- Creates synapses and connects these synapses to the source with global ID
- Sets up recorders
- > Loads stimulus and activates input elements
- > Runs the simulation
- > Saves result of simulation into a file
- Repeats steps 4, 5 and 6 for all stimuli
This stage may be done under both Python and NEURON environment. To get a graphs and statistic launch the script with three extra keys.
$python (path to mainmodel.py) --no-run --graphs --stat
In this stage:
- The script collects and indexes all files for all stimuli. It may be process separately if script is lunched with '--no-run --collect' command line keys only.
- If it is launched with '--graphs' key, it reads GRAPHS section and shows graphs in screen or/and save into a file(s).
- If it is launched with '--stat' key, it reads STAT section and prints the results of statistic analyses to the standard output console as well as to csv file
< Previous | Home | NEXT> Model configuration file |
---|