-
Notifications
You must be signed in to change notification settings - Fork 1
/
0-cylinder-taper.ses
248 lines (244 loc) · 7.72 KB
/
0-cylinder-taper.ses
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
objectvar save_window_, rvp_
objectvar scene_vector_[5]
objectvar ocbox_, ocbox_list_, scene_, scene_list_
{ocbox_list_ = new List() scene_list_ = new List()}
//Begin I/V Clamp Electrode
{
load_file("electrod.hoc")
}
{
ocbox_=new Electrode(0)
execute("can_locate=1 sec=\"axon\" xloc=1 locate(0)", ocbox_)
execute("vc.dur[0]=0.1 vc.amp[0]=-65", ocbox_)
execute("vc.dur[1]=5 vc.amp[1]=10", ocbox_)
execute("vc.dur[2]=100 vc.amp[2]=-65", ocbox_)
execute("stim.del=0 stim.dur=0.5 stim.amp=9", ocbox_)
execute("vcsteps=5", ocbox_)
execute("samp=stim.amp store_vclamp() glyph()", ocbox_)
ocbox_ = ocbox_.v1
ocbox_.map("I/V Clamp Electrode", 957, 19, 224.25, 371.25)
}
objref ocbox_
//End I/V Clamp Electrode
//Begin I/V Clamp Electrode
{
load_file("electrod.hoc")
}
{
ocbox_=new Electrode(0)
execute("can_locate=1 sec=\"soma\" xloc=0.5 locate(0)", ocbox_)
execute("vc.dur[0]=0.1 vc.amp[0]=-65", ocbox_)
execute("vc.dur[1]=5 vc.amp[1]=10", ocbox_)
execute("vc.dur[2]=100 vc.amp[2]=-65", ocbox_)
execute("stim.del=0 stim.dur=17 stim.amp=0", ocbox_)
execute("vcsteps=5", ocbox_)
execute("samp=stim.amp store_vclamp() glyph()", ocbox_)
ocbox_ = ocbox_.v1
ocbox_.map("I/V Clamp Electrode", 819, 19, 224.25, 371.25)
}
objref ocbox_
//End I/V Clamp Electrode
{
xpanel("NEURON Main Panel", 0)
xcheckbox("Quiet",&stdrun_quiet,"")
realtime = 1
xvalue("Real Time","realtime", 0,"", 0, 1 )
celsius = 20.3
xvalue("celsius","celsius", 1,"", 0, 1 )
global_ra = 80
xvalue("Axial Resistivity","global_ra", 1,"set_ra()", 1, 1 )
xbutton("RunControl","nrncontrolmenu()")
xmenu("New Graph", 0)
xbutton("Voltage axis","newPlotV()")
xbutton("Current axis","newPlotI()")
xbutton("State axis","newPlotS()")
xbutton("Shape plot","newshapeplot()")
xbutton("Vector movie","newvectorplot()")
xbutton("Phase Plane","newphaseplane()")
xbutton("Grapher","load_proc(\"makegrapher\") makegrapher()")
xmenu()
xmenu("Point Processes", 0)
xmenu("Managers", 0)
xbutton("Point Manager","load_template(\"PointProcessManager\") makeppm()")
xbutton("Point Group","load_template(\"PointProcessGroupManager\") makeppgm()")
xbutton("Electrode","load_proc(\"makeelectrode\") makeelectrode()")
xmenu()
xmenu("Viewers", 0)
xmenu("PointProcesses", 0)
xbutton("IClamp","makePointBrowser(\"IClamp\")")
xbutton("AlphaSynapse","makePointBrowser(\"AlphaSynapse\")")
xbutton("SEClamp","makePointBrowser(\"SEClamp\")")
xbutton("VClamp","makePointBrowser(\"VClamp\")")
xbutton("APCount","makePointBrowser(\"APCount\")")
xmenu()
xmenu()
xmenu()
xmenu("Distributed Mechanisms", 0)
xmenu("Managers", 0)
xbutton("Inserter","load_template(\"Inserter\") makeinserter()")
xbutton("Homogeneous Spec","load_proc(\"makeshowmechanism\") makeshowmechanism()")
xmenu()
xmenu("Viewers", 0)
xbutton("Shape Name","load_template(\"MenuExplore\") makeMenuExplore()")
xbutton("Name Values","nrnallsectionmenu()")
xmenu("Mechanisms (Globals)", 0)
xbutton("na_ion","nrnglobalmechmenu(\"na_ion\")")
xbutton("k_ion","nrnglobalmechmenu(\"k_ion\")")
xbutton("hh","nrnglobalmechmenu(\"hh\")")
xmenu()
xmenu()
xmenu()
xmenu("Miscellaneous", 0)
xmenu("Clipboard", 0)
xbutton("Save to File","load_proc(\"clipboard_save\") clipboard_save()")
xbutton("Retrieve from File","load_proc(\"clipboard_retrieve\") clipboard_retrieve()")
xmenu()
xbutton("Family","load_template(\"Family\") makeFamily()")
xbutton("Parameterized Function","load_template(\"FunctionFitter\") makefitter()")
xbutton("Run Fitter","load_template(\"RunFitter\") makerunfitter()")
xmenu("Impedance", 0)
xbutton("Frequency","load_template(\"ImpedanceRatio\") makeImpRatio()")
xbutton("Path","load_template(\"Impx\") makeImpx()")
xbutton("log(A) vs x","load_template(\"LogAvsX\") makelogax()")
xbutton("Shape","load_template(\"ImpShape\") makeImpShape()")
xmenu()
xmenu()
xpanel(25,217)
}
{
xpanel("soma(0 - 1) (Parameters)", 0)
xlabel("soma(0 - 1) (Parameters)")
xlabel("nseg = 1")
soma.L = 60
xvalue("L","soma.L", 1,"define_shape()", 0, 0 )
soma.diam = 60
xvalue("diam","soma.diam", 1,"", 0, 0 )
soma.cm = 1
xvalue("cm","soma.cm", 1,"", 0, 0 )
soma.gnabar_B_Na = 0
xvalue("gnabar_B_Na","soma.gnabar_B_Na", 1,"", 0, 0 )
soma.ena = 53
xvalue("ena","soma.ena", 1,"", 0, 0 )
soma.gkbar_B_A = 0
xvalue("gkbar_B_A","soma.gkbar_B_A", 1,"", 0, 0 )
soma.gkbar_B_DR = 0
xvalue("gkbar_B_DR","soma.gkbar_B_DR", 1,"", 0, 0 )
soma.ek = -84
xvalue("ek","soma.ek", 1,"", 0, 0 )
soma.g_pas = 0.0045
xvalue("g_pas","soma.g_pas", 1,"", 0, 0 )
soma.e_pas = -80
xvalue("e_pas","soma.e_pas", 1,"", 0, 0 )
xpanel(305,540)
}
{
xpanel("RunControl", 0)
v_init = -80
xvalue("Init","v_init", 1,"stdinit()", 1, 1 )
xbutton("Init & Run","run()")
xbutton("Stop","stoprun=1")
runStopAt = 5
xvalue("Continue til","runStopAt", 1,"{continuerun(runStopAt) stoprun=1}", 1, 1 )
runStopIn = 1
xvalue("Continue for","runStopIn", 1,"{continuerun(t + runStopIn) stoprun=1}", 1, 1 )
xbutton("Single Step","steprun()")
t = 4
xvalue("t","t", 2 )
tstop = 4
xvalue("Tstop","tstop", 1,"tstop_changed()", 0, 1 )
dt = 0.01
xvalue("dt","dt", 1,"setdt()", 0, 1 )
steps_per_ms = 100
xvalue("Points plotted/ms","steps_per_ms", 1,"setdt()", 0, 1 )
xpanel(440,389)
}
{
xpanel("hillock(0 - 1) (Parameters)", 0)
xlabel("hillock(0 - 1) (Parameters)")
xlabel("nseg = 10")
hillock.L = 15
xvalue("L","hillock.L", 1,"define_shape()", 0, 0 )
hillock.cm = 1
xvalue("cm","hillock.cm", 1,"", 0, 0 )
xlabel("diam is not constant")
hillock.gnabar_B_Na = 4.8
xvalue("gnabar_B_Na","hillock.gnabar_B_Na", 1,"", 0, 0 )
hillock.ena = 53
xvalue("ena","hillock.ena", 1,"", 0, 0 )
hillock.gkbar_B_A = 0
xvalue("gkbar_B_A","hillock.gkbar_B_A", 1,"", 0, 0 )
hillock.gkbar_B_DR = 0.8
xvalue("gkbar_B_DR","hillock.gkbar_B_DR", 1,"", 0, 0 )
hillock.ek = -84
xvalue("ek","hillock.ek", 1,"", 0, 0 )
hillock.g_pas = 0.0045
xvalue("g_pas","hillock.g_pas", 1,"", 0, 0 )
hillock.e_pas = -80
xvalue("e_pas","hillock.e_pas", 1,"", 0, 0 )
xpanel(631,545)
}
{
xpanel("axon(0 - 1) (Parameters)", 0)
xlabel("axon(0 - 1) (Parameters)")
xlabel("nseg = 20")
axon.L = 30
xvalue("L","axon.L", 1,"define_shape()", 0, 0 )
axon.cm = 1
xvalue("cm","axon.cm", 1,"", 0, 0 )
axon.diam = 3.5
xvalue("diam","axon.diam", 1,"", 0, 0 )
axon.gnabar_B_Na = 4.8
xvalue("gnabar_B_Na","axon.gnabar_B_Na", 1,"", 0, 0 )
axon.ena = 53
xvalue("ena","axon.ena", 1,"", 0, 0 )
axon.gkbar_B_A = 0
xvalue("gkbar_B_A","axon.gkbar_B_A", 1,"", 0, 0 )
axon.gkbar_B_DR = 0.8
xvalue("gkbar_B_DR","axon.gkbar_B_DR", 1,"", 0, 0 )
axon.ek = -84
xvalue("ek","axon.ek", 1,"", 0, 0 )
axon.g_pas = 0.0045
xvalue("g_pas","axon.g_pas", 1,"", 0, 0 )
axon.e_pas = -80
xvalue("e_pas","axon.e_pas", 1,"", 0, 0 )
xpanel(948,533)
}
{
xpanel("dend[0](0 - 1) (Parameters)", 0)
xlabel("dend[0](0 - 1) (Parameters)")
xlabel("nseg = 20")
dend[0].L = 7000
xvalue("L","dend[0].L", 1,"define_shape()", 0, 0 )
dend[0].cm = 1
xvalue("cm","dend[0].cm", 1,"", 0, 0 )
xlabel("diam is not constant")
dend[0].gnabar_B_Na = 0
xvalue("gnabar_B_Na","dend[0].gnabar_B_Na", 1,"", 0, 0 )
dend[0].ena = 53
xvalue("ena","dend[0].ena", 1,"", 0, 0 )
dend[0].gkbar_B_DR = 0
xvalue("gkbar_B_DR","dend[0].gkbar_B_DR", 1,"", 0, 0 )
dend[0].ek = -84
xvalue("ek","dend[0].ek", 1,"", 0, 0 )
dend[0].g_pas = 0.00014
xvalue("g_pas","dend[0].g_pas", 1,"", 0, 0 )
dend[0].e_pas = -80
xvalue("e_pas","dend[0].e_pas", 1,"", 0, 0 )
xpanel(8,567)
}
{
save_window_ = new Graph(0)
save_window_.size(0,4,-80,40)
scene_vector_[4] = save_window_
{save_window_.view(0, -80, 4, 120, 387, 10, 309, 217)}
graphList[0].append(save_window_)
save_window_.save_name("graphList[0].")
save_window_.addexpr("hillock.v(0.5)", 1, 1, 0.732771, 0.855112, 2)
save_window_.addexpr("hillock.v(1.0)", 1, 1, 0.737791, 1.0197, 2)
save_window_.addexpr("axon.v(0.2)", 2, 1, 0.755183, 0.567082, 2)
save_window_.addexpr("soma.v(0.5)", 2, 1, 0.745278, 0.933666, 2)
save_window_.addexpr("axon.v(0.1)", 2, 1, 0.762728, 0.578304, 2)
save_window_.addexpr("axon.v(0.3)", 1, 1, 0.761929, 0.832668, 2)
}
objectvar scene_vector_[1]
{doNotify()}