Debian Codegraph @

examples/ei_networks/bionet/README.md

raw
1 # Excitatory/Inhibitory Network for BioNet
2
3 ## Requirements
4
5 * BMTK
6 * Neuron 7.4+
7
8 ## Files
9 * network/ - Circuit file of E/I cells and external network. If folder doesn't exists use the build_network.py script.
10 * inputs/ - Spike-train files corresponding to the external network used to drive the simulation.
11 * config.json - simulation and network parameters.
12 * build_network.py - Used to build the network/ files.
13 * build_input.py - Used to build the inputs/ file(s).
14 * run_bionet.py - Script for running the network simulation.
15
16
17 ## Building the Network
18
19 The Network model files must be built for running the simulation using the build_network.py script. It may take
20 anywhere between 5-10 minutes to complete and will save all required files in network/ folder.
21
22 ```bash
23 $ python build_network.py
24 ```
25
26 ## Running the Simulation
27
28 You can use config.json to change parameters for simulating the network. By default everything recorded during the
29 simulation is saved in the output/ directory, including a running log.txt to keep track of progress.
30
31 ```bash
32 $ python run_bionet.py config.json
33 ```
34
35 The network may have problems running on a single computer core. It is recommended to use a computing cluster, or
36 if running on a single machnie use MPI to run on multtple cores:
37 ```bash
38 $ mpirun -n <N> nrniv -mpi -python run_bionet.py config.json
39 ```