-
Notifications
You must be signed in to change notification settings - Fork 2
/
CA3AAC.hoc
374 lines (331 loc) · 9.37 KB
/
CA3AAC.hoc
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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
// Artificial cells no longer need a default section.
//Network cell templates
// AACell
// Simplified version (BPG 27-9-08)
// - geometry and channels from Santhakumar et al 2005
// - geometry modified to preserve VCUs different dendrites
begintemplate CA3AACell
public is_art
public init, topol, basic_shape, subsets, geom, biophys
public pre_list, connect2target
public soma, radT2, radM2, radt2, lmM2, lmt2, radT1
public radM1, radt1, lmM1, lmt1, oriT1, oriM1, orit1
public oriT2, oriM2, orit2
public all
objref pre_list
proc init() {
topol()
subsets()
geom()
biophys()
geom_nseg()
pre_list = new List()
synapses()
}
create soma, radT2, radM2, radt2, lmM2, lmt2, radT1
create radM1, radt1, lmM1, lmt1, oriT1, oriM1, orit1
create oriT2, oriM2, orit2
proc topol() { local i
connect radT2(0), soma(1)
connect radM2(0), radT2(1)
connect radt2(0), radM2(1)
connect lmM2(0), radt2(1)
connect lmt2(0), lmM2(1)
connect radT1(0), soma(0)
connect radM1(0), radT1(1)
connect radt1(0), radM1(1)
connect lmM1(0), radt1(1)
connect lmt1(0), lmM1(1)
connect oriT1(0), soma(0)
connect oriM1(0), oriT1(1)
connect orit1(0), oriM1(1)
connect oriT2(0), soma(1)
connect oriM2(0), oriT2(1)
connect orit2(0), oriM2(1)
//basic_shape()
}
proc basic_shape() {
soma {pt3dclear() pt3dadd(0, 0, 0, 1) pt3dadd(15, 0, 0, 1)}
radT2 {pt3dclear() pt3dadd(15, 0, 0, 1) pt3dadd(45, 30, 0, 1)}
radM2 {pt3dclear() pt3dadd(45, 30, 0, 1) pt3dadd(75, 60, 0, 1)}
radt2 {pt3dclear() pt3dadd(75, 60, 0, 1) pt3dadd(90, 75, 0, 1)}
lmM2 {pt3dclear() pt3dadd(90, 75, 0, 1) pt3dadd(105, 90, 0, 1)}
lmt2 {pt3dclear() pt3dadd(105, 90, 0, 1) pt3dadd(120, 105, 0, 1)}
radT1 {pt3dclear() pt3dadd(0, 0, 0, 1) pt3dadd(-14, 15, 0, 1)}
radM1 {pt3dclear() pt3dadd(-14, 15, 0, 1) pt3dadd(-29, 30, 0, 1)}
radt1 {pt3dclear() pt3dadd(-29, 30, 0, 1) pt3dadd(-44, 45, 0, 1)}
lmM1 {pt3dclear() pt3dadd(-44, 45, 0, 1) pt3dadd(-59, 60, 0, 1)}
lmt1 {pt3dclear() pt3dadd(-59, 60, 0, 1) pt3dadd(-89, 90, 0, 1)}
oriT1 {pt3dclear() pt3dadd(0, 0, 0, 1) pt3dadd(-29, -29, 0, 1)}
oriM1 {pt3dclear() pt3dadd(-29, -29, 0, 1) pt3dadd(-59, -59, 0, 1)}
orit1 {pt3dclear() pt3dadd(-59, -59, 0, 1) pt3dadd(-89, -89, 0, 1)}
oriT2 {pt3dclear() pt3dadd(15, 0, 0, 1) pt3dadd(45, -29, 0, 1)}
oriM2 {pt3dclear() pt3dadd(45, -29, 0, 1) pt3dadd(75, -59, 0, 1)}
orit2 {pt3dclear() pt3dadd(75, -59, 0, 1) pt3dadd(105, -89, 0, 1)}
}
objref all
proc subsets() { local i
objref all
all = new SectionList()
soma all.append()
radT2 all.append()
radM2 all.append()
radt2 all.append()
lmM2 all.append()
lmt2 all.append()
radT1 all.append()
radM1 all.append()
radt1 all.append()
lmM1 all.append()
lmt1 all.append()
oriT1 all.append()
oriM1 all.append()
orit1 all.append()
oriT2 all.append()
oriM2 all.append()
orit2 all.append()
}
proc geom() {
forsec all { }
soma { L = 20 diam = 10 }
radT2 { L = 100 diam = 4 }
radM2 { L = 100 diam = 3 }
radt2 { L = 200 diam = 2 }
lmM2 { L = 100 diam = 1.5 }
lmt2 { L = 100 diam = 1 }
radT1 { L = 100 diam = 4 }
radM1 { L = 100 diam = 3 }
radt1 { L = 200 diam = 2 }
lmM1 { L = 100 diam = 1.5 }
lmt1 { L = 100 diam = 1 }
oriT1 { L = 100 diam = 2 }
oriM1 { L = 100 diam = 1.5 }
orit1 { L = 100 diam = 1 }
oriT2 { L = 100 diam = 2 }
oriM2 { L = 100 diam = 1.5 }
orit2 { L = 100 diam = 1 }
}
external lambda_f
proc geom_nseg() {
forsec all { nseg = int((L/(0.1*lambda_f(100))+.9)/2)*2 + 1 }
}
proc biophys() {
gna = 0.15
soma {
insert ichan2
gnatbar_ichan2 = gna // 0.12 //original 0.030 to .055
gkfbar_ichan2 = 0.013 //original 0.015
gl_ichan2 = 0.00018
cm=1.4
}
lmt1 {
insert ichan2
gnatbar_ichan2 = gna //0.5 //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
lmt2 {
insert ichan2
gnatbar_ichan2 = gna //0.5 //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
lmM1 {
insert ichan2
gnatbar_ichan2 = gna //0.45 //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
lmM2 {
insert ichan2
gnatbar_ichan2 = gna //0.45 //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
radt1 {
insert ichan2
gnatbar_ichan2 = gna //0.4 //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
radt2 {
insert ichan2
gnatbar_ichan2 = gna //0.4 //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
radM1 {
insert ichan2
gnatbar_ichan2 = gna //0.3 //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
radM2 {
insert ichan2
gnatbar_ichan2 = gna //0.3 //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
radT1 {
insert ichan2
gnatbar_ichan2 = gna //0.2 //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
radT2 {
insert ichan2
gnatbar_ichan2 = gna //0.2 //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
oriT1 {
insert ichan2
gnatbar_ichan2 = gna //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
oriT2 {
insert ichan2
gnatbar_ichan2 = gna //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
oriM1 {
insert ichan2
gnatbar_ichan2 = gna //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
oriM2 {
insert ichan2
gnatbar_ichan2 = gna //original 0.015
gkfbar_ichan2 = 0.013
gl_ichan2 = 0.00018
cm=1.4
}
orit1 {
insert ichan2
gnatbar_ichan2 = gna // Sodium conductance (original 0.015)
gkfbar_ichan2 = 0.013 // Delayed K+ rectifier (fast)
gl_ichan2 = 0.00018 // Leak conductance
cm=1.4
}
orit2 {
insert ichan2
gnatbar_ichan2 = gna // Sodium conductance (original 0.015)
gkfbar_ichan2 = 0.013 // Delayed K+ rectifier (fast)
gl_ichan2 = 0.00018 // Leak conductance
cm=1.4
}
forsec all {
insert ccanl
catau_ccanl = 10 // Time constant for decay of intracellular Ca2+
caiinf_ccanl = 5.e-6 // Steady-state intracellular Ca2+ concentration
insert borgka
gkabar_borgka = 0.00015 // A-type K+ conductance
insert nca // N-type Ca2+ conductance
gncabar_nca = 0.0008 // check to modify- original 0.004
insert lca
glcabar_lca = 0.005 // L-type Ca2+ conductance
insert gskch
gskbar_gskch = 0.000002 // Ca2+-dependent K (SK) conductance
insert cagk2
gkbar_cagk2 = 0.0002 // Ca2+ and Voltage-dependent K+ (BK) conductance
Ra = 100
enat = 55
ekf = -90
ek = -90
elca = 130
esk = -90
el_ichan2 = -60 //-60.06
cao_ccanl = 2
} // make catau slower70e-3 cao=2 cai=50.e-6
}
obfunc connect2target() { localobj nc //$o1 target point process, optional $o2 returned NetCon
soma nc = new NetCon(&v(1), $o1)
nc.threshold = -10
if (numarg() == 2) { $o2 = nc } // for backward compatibility
return nc
}
objref syn_
proc synapses() {
/* E0 */ lmM1 syn_ = new MyExp2Syn(0.5) pre_list.append(syn_) // AMPA EC
syn_.tau1 = 0.5
syn_.tau2 = 3
syn_.e = 0
/* E1 */ lmM2 syn_ = new MyExp2Syn(0.5) pre_list.append(syn_) // AMPA EC
syn_.tau1 = 0.5
syn_.tau2 = 3
syn_.e = 0
/* E2 */ radM1 syn_ = new MyExp2Syn(0.5) pre_list.append(syn_) // AMPA CA3 Shaffer collateral
syn_.tau1 = 0.5
syn_.tau2 = 3
syn_.e = 0
/* E3 */ radM2 syn_ = new MyExp2Syn(0.5) pre_list.append(syn_) // AMPA CA3 Shaffer collateral
syn_.tau1 = 0.5
syn_.tau2 = 3
syn_.e = 0
/* E4 */ radT1 syn_ = new MyExp2Syn(0.5) pre_list.append(syn_) // AMPA CA3 Shaffer collateral
syn_.tau1 = 0.5
syn_.tau2 = 3
syn_.e = 0
/* E5 */ radT2 syn_ = new MyExp2Syn(0.5) pre_list.append(syn_) // AMPA CA3 Shaffer collateral
syn_.tau1 = 0.5
syn_.tau2 = 3
syn_.e = 0
/* E6 */ oriT1 syn_ = new MyExp2Syn(0.5) pre_list.append(syn_) // AMPA PC
syn_.tau1 = 0.5
syn_.tau2 = 3
syn_.e = 0
/* E7 */ oriT2 syn_ = new MyExp2Syn(0.5) pre_list.append(syn_) // AMPA PC
syn_.tau1 = 0.5
syn_.tau2 = 3
syn_.e = 0
/* I8 */ soma syn_ = new MyExp2Syn(0.5) pre_list.append(syn_) // GABA-A Neighboring basket cell
syn_.tau1 = 1
syn_.tau2 = 8
syn_.e = -75
/* I9 */ soma syn_ = new MyExp2Syn(0.6) pre_list.append(syn_) // GABA-A Bistratified cell
syn_.tau1 = 1
syn_.tau2 = 8
syn_.e = -75
/* I10 */ oriT1 syn_ = new MyExp2Syn(0.6) pre_list.append(syn_) // GABA-A Septum
syn_.tau1 = 1
syn_.tau2 = 8
syn_.e = -75
/* I11 */ oriT2 syn_ = new MyExp2Syn(0.6) pre_list.append(syn_) // GABA-A Septum
syn_.tau1 = 1
syn_.tau2 = 8
syn_.e = -75
/* I12 */ oriT1 syn_ = new MyExp2Syn(0.6) pre_list.append(syn_) // GABA-B Septum
syn_.tau1 = 35
syn_.tau2 = 100
syn_.e = -75
/* I13 */ oriT2 syn_ = new MyExp2Syn(0.6) pre_list.append(syn_) // GABA-B Septum
syn_.tau1 = 35
syn_.tau2 = 100
syn_.e = -75
/* E14 */ radt1 syn_ = new MyExp2Syn(0.5) pre_list.append(syn_) // AMPA DG granule cell
syn_.tau1 = 0.5
syn_.tau2 = 3
syn_.e = 0
/* E15 */ radt2 syn_ = new MyExp2Syn(0.5) pre_list.append(syn_) // AMPA DG granule cell
syn_.tau1 = 0.5
syn_.tau2 = 3
syn_.e = 0
}
func is_art() { return 0 }
endtemplate CA3AACell