forked from ModelDBRepository/183300
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.NSG
73 lines (57 loc) · 3.1 KB
/
readme.NSG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
This is the readme for configuring and running simple circuit
simulations on the NSG for the manuscript under preparation
Short et al. 2015
To configure the simulation to run edit these files in 1) and 2) and
then follow step 3) etc.:
1) create_arrays.py: first edit create_arrays.py to assign values of
the breathing (B) and light-stimulated (S) event peak rates and also
the number of additional columns (add_columns python list). The
"additional" refers to that there is always one glomerular column
containing the mitral cell which has its voltage recorded analagous to
the wetlab experiments.
2) pre_init.py: The basic idea with pre_init.py is that it creates two
python lists "parameters", and "columns", each of length equal to the
number of simulations. By copying verbatim corresponding elements of
these lists, a parameter.hoc and a num_of_columns.hoc file is written
in each simulation folder run_X, where X=1,2,3, ...,
number_of_simulations. For example: the run_0 folder gets a
parameter.hoc file assigned from parameters[0] and num_of_columns.hoc
file from columns[0]. The number of simulations is figured out
automatically by taking the create_arrays data into consideration with
a net_type list: Set the net_type list (found near the top of this
program) to something like
net_type=['full_net','pg_net','gc_net']
These variables will trigger network simulations with these types
being created, with each of these network types having the commands to
make them present in the parameters.hoc file. (See the code that
creates "parameters" elements with an append and then modifies these with
indexed assignments).
Also edit the lines in the parameters.append(""" section which will
look something like:
breath_peak_rate = %d
light1_peak_rate = 0
light2_peak_rate = %d
so that the second %d is either on light1 or light2 depending on
whether you want the light stimulation (S) to fall either on the
primary column being recorded from (light1) or adjacent column(s)
(light2).
3) Run pre_init.py by typing ./pre_init.py on the command line. run_X
simulation folders will be created. See what the highest number of
the X is. This is one less than the number of simulations since X
starts at 0. Check that this number of simulations is present in the
line in init.py that checks id's, for example:
if id<2888:
(This checking is present because there is no gaurentee that you can
ask for the same number of processors (nodes*cores_per_node) as there
number of simulations.)
4) zip the folder containing all these files into an input file for
the NSG.
5) Sign onto the NSG and follow the directions in its help to create a
data folder containing the input file created in step 4) and a task
folder where you select NEURON with Python on a machine that contains
at least as many processors as there are number of simulations as
determined in step 3) (probably stampede which note has 16 cores per
node). Set the number of nodes to be such that the number of nodes
times the number of cores per node is the smallest number greater than
the number of simulations (there will be left over processors with nothing to do).
6) save and run the task!