-
Notifications
You must be signed in to change notification settings - Fork 0
/
cells.py
411 lines (396 loc) · 23 KB
/
cells.py
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
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
import genrn
from neuron import h
# can use (EX)|(IN)|(PRO)cellRule with netpyne
# can use create(EX)|(IN)|(PRO)\(\) with netpyne or python+neuron
EXtonicRule = {
'conds': {},
'globals': {},
'secLists': {},
'secs': {'dend': {'geom': {'L': 400.0, 'nseg': 5, 'diam': 3.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 2.0, 'depth': 0.1},
'HH2': {'gnabar': 0.0, 'gkbar': 0.036, 'vtraub': -55.0},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'borgka': {'gkabar': 0.0},
'KDRI': {'gkbar': 0.0},
'pas': {'g': 1.23e-06, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 0.0, 'childX': 0.0}},
'hillock': {'geom': {'L': 9.0, 'nseg': 3, 'diam': 1.5, 'Ra': 150.0, 'cm': 1.0},
'ions': {'k': {'e': -77.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 0.0, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'HH2': {'gkbar': 0.0036, 'gnabar': 5.45, 'vtraub': -55},
'borgka': {'gkabar': 0.0},
'KDRI': {'gkbar': 0.0},
'pas': {'g': 1.23e-06, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 1.0, 'childX': 0.0}},
'soma': {'geom': {'L': 20.0, 'nseg': 3, 'diam': 20.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 0.0, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 1.0, 'depth': 0.1},
'HH2': {'gkbar': 0.0002, 'gnabar': 0.0125, 'vtraub': -55},
'borgka': {'gkabar': 0.0},
'KDRI': {'gkbar': 0.0},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'pas': {'g': 1.23e-06, 'e': -65.0}},
'topol': {}}}
}
EXdelayedRule = {
'conds': {},
'globals': {},
'secLists': {},
'secs': {'dend': {'geom': {'L': 400.0, 'nseg': 5, 'diam': 3.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 2.0, 'depth': 0.1},
'HH2': {'gnabar': 0.0, 'gkbar': 0.144, 'vtraub': -50.2},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'borgka': {'gkabar': 0.0009333 *1},
'KDRI': {'gkbar': 0.96e-05},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 0.0, 'childX': 0.0}},
'hillock': {'geom': {'L': 9.0, 'nseg': 3, 'diam': 1.5, 'Ra': 150.0, 'cm': 1.0},
'ions': {'k': {'e': -77.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 0.03, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'HH2': {'gkbar': 0.304, 'gnabar': 0.02375, 'vtraub': -50.2},
'borgka': {'gkabar': 0.1120 *1 },
'KDRI': {'gkbar': 0.01547},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 1.0, 'childX': 0.0}},
'soma': {'geom': {'L': 20.0, 'nseg': 3, 'diam': 20.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 0.0001652, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 1.0, 'depth': 0.1},
'HH2': {'gkbar': 0.0043, 'gnabar': 0.08548, 'vtraub': -50.2},
'borgka': {'gkabar': 0.01090 *1 },
'KDRI': {'gkbar': 0.0001110},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {}}}
}
PKCRule = {
'conds': {},
'globals': {},
'secLists': {},
'secs': {'dend': {'geom': {'L': 400.0, 'nseg': 5, 'diam': 3.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 2.0, 'depth': 0.1},
'HH2': {'gnabar': 0.0, 'gkbar': 0.144, 'vtraub': -50.2},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'borgka': {'gkabar': 0.0009333 *1},
'KDRI': {'gkbar': 0.96e-05},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 0.0, 'childX': 0.0}},
'hillock': {'geom': {'L': 9.0, 'nseg': 3, 'diam': 1.5, 'Ra': 150.0, 'cm': 1.0},
'ions': {'k': {'e': -77.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 0.03, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'HH2': {'gkbar': 0.304, 'gnabar': 0.02375, 'vtraub': -50.2},
'borgka': {'gkabar': 0.1120 *1 },
'KDRI': {'gkbar': 0.01547},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 1.0, 'childX': 0.0}},
'soma': {'geom': {'L': 20.0, 'nseg': 3, 'diam': 20.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 0.0001652, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 1.0, 'depth': 0.1},
'HH2': {'gkbar': 0.0043, 'gnabar': 0.08548, 'vtraub': -50.2},
'borgka': {'gkabar': 0.01090 *1 },
'KDRI': {'gkbar': 0.0001110},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {}}}
}
SOMRule = {
'conds': {},
'globals': {},
'secLists': {},
'secs': {'dend': {'geom': {'L': 400.0, 'nseg': 5, 'diam': 3.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 2.0, 'depth': 0.1},
'HH2': {'gnabar': 0.0, 'gkbar': 0.144, 'vtraub': -50.2},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'borgka': {'gkabar': 0.0009333 *1 },
'KDRI': {'gkbar': 0.96e-05},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 0.0, 'childX': 0.0}},
'hillock': {'geom': {'L': 9.0, 'nseg': 3, 'diam': 1.5, 'Ra': 150.0, 'cm': 1.0},
'ions': {'k': {'e': -77.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 0.03, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'HH2': {'gkbar': 0.304, 'gnabar': 0.02375, 'vtraub': -50.2},
'borgka': {'gkabar': 0.1120 *1 },
'KDRI': {'gkbar': 0.01547},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 1.0, 'childX': 0.0}},
'soma': {'geom': {'L': 20.0, 'nseg': 3, 'diam': 20.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 0.0001652, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 1.0, 'depth': 0.1},
'HH2': {'gkbar': 0.0043, 'gnabar': 0.08548, 'vtraub': -50.2},
'borgka': {'gkabar': 0.01090 *1 },
'KDRI': {'gkbar': 0.0001110},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {}}}
}
CRRule = {
'conds': {},
'globals': {},
'secLists': {},
'secs': {'dend': {'geom': {'L': 400.0, 'nseg': 5, 'diam': 3.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 2.0, 'depth': 0.1},
'HH2': {'gnabar': 0.0, 'gkbar': 0.144, 'vtraub': -50.2},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'borgka': {'gkabar': 0.0009333 *1 },
'KDRI': {'gkbar': 0.96e-05},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 0.0, 'childX': 0.0}},
'hillock': {'geom': {'L': 9.0, 'nseg': 3, 'diam': 1.5, 'Ra': 150.0, 'cm': 1.0},
'ions': {'k': {'e': -77.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 0.03, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'HH2': {'gkbar': 0.304, 'gnabar': 0.02375, 'vtraub': -50.2},
'borgka': {'gkabar': 0.1120 *1 },
'KDRI': {'gkbar': 0.01547},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 1.0, 'childX': 0.0}},
'soma': {'geom': {'L': 20.0, 'nseg': 3, 'diam': 20.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 0.0001652, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 1.0, 'depth': 0.1},
'HH2': {'gkbar': 0.0043, 'gnabar': 0.08548, 'vtraub': -50.2},
'borgka': {'gkabar': 0.01090 *1 },
'KDRI': {'gkbar': 0.0001110},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'pas': {'g': 0.96e-06, 'e': -65.0}},
'topol': {}}}
}
EXinitialRule = {
'conds': {},
'globals': {},
'secLists': {},
'secs': {'dend': {'geom': {'L': 400.0, 'nseg': 5, 'diam': 3.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 2.0, 'depth': 0.1},
'HH2': {'gnabar': 0.0, 'gkbar': 0.0, 'vtraub': -50.2},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'borgka': {'gkabar': 0.0001584 *1 },
'KDRI': {'gkbar': 0.2061},
'pas': {'g': 4.2e-05, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 0.0, 'childX': 0.0}},
'hillock': {'geom': {'L': 9.0, 'nseg': 3, 'diam': 1.5, 'Ra': 150.0, 'cm': 1.0},
'ions': {'k': {'e': -77.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 5.147, 'alpha_shift': 6.713, 'beta_shift': 9.906},
'HH2': {'gkbar': 0.0, 'gnabar': 0.0, 'vtraub': -50.2},
'borgka': {'gkabar': 0.0005 *1 },
'KDRI': {'gkbar': 0.2171},
'pas': {'g': 4.2e-05, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 1.0, 'childX': 0.0}},
'soma': {'geom': {'L': 20.0, 'nseg': 3, 'diam': 20.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_Na': {'gnabar': 0.3066, 'alpha_shift': 6.713, 'beta_shift': 9.906},
'CaIntraCellDyn': {'cai_inf': 5e-05, 'cai_tau': 1.0, 'depth': 0.1},
'HH2': {'gkbar': 0.0, 'gnabar': 0.0, 'vtraub': -50.2},
'borgka': {'gkabar': 0.04957 *1},
'KDRI': {'gkbar': 1.06e-05},
'iKCa': {'gbar': 0.002, 'gk': 0.0},
'pas': {'g': 4.2e-05, 'e': -65.0}},
'topol': {}}}
}
INcellRule = {# was termed SG cell in prior model
'conds': {},
'globals': {},
'secLists': {},
'secs': {'dend': {'geom': {'L': 1371.0, 'nseg': 50, 'diam': 1.4, 'Ra': 80.0, 'cm': 1.0},
'ions': {'k': {'e': -84.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 60.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_DR': {},
'KDR': {'gkbar': 0.0},
'KDRI': {'gkbar': 0.034},
'SS': {'gnabar': 0.0},
'pas': {'g': 1.1e-05, 'e': -70.0}},
'topol': {'parentSec': 'soma', 'parentX': 0.0, 'childX': 0.0}},
'hillock': {'geom': {'L': 30.0,
'Ra': 80.0,
'cm': 1.0,
'diam': 0.742,
'nseg': 30},
'ions': {'k': {'e': -84.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 60.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_A': {},
'B_DR': {},
'B_Na': {'gnabar': 3.45, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'KDR': {'gkbar': 0.0},
'KDRI': {'gkbar': 0.076},
'pas': {'g': 1.1e-05, 'e': -70.0}},
'topol': {'parentSec': 'soma', 'parentX': 1.0, 'childX': 0.0}},
'soma': {'geom': {'L': 10.0, 'nseg': 10, 'diam': 10.0, 'Ra': 80.0, 'cm': 1.0},
'ions': {'k': {'e': -84.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 60.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_A': {},
'B_DR': {},
'B_Na': {'gnabar': 0.008, 'alpha_shift': 0.0, 'beta_shift': 0.0},
'KDR': {'gkbar': 0.0},
'KDRI': {'gkbar': 0.0043},
'pas': {'g': 1.1e-05, 'e': -70.0}},
'topol': {}}}
}
PROcellRule = {
'conds': {},
'globals': {},
'secLists': {},
'secs': {'dend': {'geom': {'L': 350.0, 'nseg': 5, 'diam': 2.5, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'can': {'e': 0.0, 'i': 1.0, 'o': 1.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'CaIntraCellDyn': {'cai_inf': 5e-05,
'cai_tau': 2.0,
'depth': 0.1},
'HH2': {'gnabar': 0.0, 'gkbar': 0.036, 'vtraub': -55.0},
'iCaAN': {'gbar': 9.099999999999999e-05},
'iCaL': {'pcabar': 3e-05},
'iKCa': {'gbar': 0.001, 'gk': 0.0},
'pas': {'g': 4.2e-05, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 0.0, 'childX': 0.0}},
'hillock': {'geom': {'L': 9.0, 'nseg': 3, 'diam': 1.5, 'Ra': 150.0, 'cm': 1.0},
'ions': {'k': {'e': -77.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'B_A': {},
'HH2': {'gkbar': 0.076,
'gnabar': 3.45,
'vtraub': -55.0},
'pas': {'g': 4.2e-05, 'e': -65.0}},
'topol': {'parentSec': 'soma', 'parentX': 1.0, 'childX': 0.0}},
'soma': {'geom': {'L': 20.0, 'nseg': 3, 'diam': 20.0, 'Ra': 150.0, 'cm': 1.0},
'ions': {'ca': {'e': 132.4579341637009, 'i': 5e-05, 'o': 2.0},
'can': {'e': 0.0, 'i': 1.0, 'o': 1.0},
'k': {'e': -70.0, 'i': 54.4, 'o': 2.5},
'na': {'e': 50.0, 'i': 10.0, 'o': 140.0}},
'mechs': {'CaIntraCellDyn': {'cai_inf': 5e-05,
'cai_tau': 1.0,
'depth': 0.1},
'HH2': {'gkbar': 0.001075,
'gnabar': 0.0,
'vtraub': -55.0},
'iCaAN': {'gbar': 0.0},
'iCaL': {'pcabar': 0.0001},
'iKCa': {'gbar': 0.0001, 'gk': 0.0},
'iNaP': {'gamma': 0.5,
'gnabar': 0.0001,
'vsh': -5.0,
'vsm': -2.0,
'vtraub': -55.0},
'pas': {'g': 4.2e-05, 'e': -65.0}},
'topol': {}}}
}
def createIN():
cellRule = {
'secs': {
'soma' : {'L': 10.0, 'diam': 10.0, 'nseg': 1 , 'Ra': 150},
'dend' : {'L': 1371, 'diam': 1.4 , 'nseg': 77, 'Ra': 150},
'hillock': {'L': 30 , 'diam': 1.5 , 'nseg': 3 , 'Ra': 150},
},# using dlambda 0.1, freq < 100
'ions': {'k': -84.0, 'na': 60, 'ca': 132.5},
'mechs': {'pas': {'g': 1.1e-05, 'e': -70}},
'cons': (
('dend', 'soma'),
('soma', 'hillock')
)}
IN = genrn(**cellRule)
IN/'soma'<{'B_Na': {'gnabar': 0.008},
'B_A': {}, 'B_DR': {}, 'KDR': {},
'KDRI': {'gkbar': 0.0043}}
IN/'hillock'<{'B_Na': {'gnabar': 3.45},
'B_A': {}, 'B_DR': {}, 'KDR': {},
'KDRI': {'gkbar': 0.076}}
IN/'dend'<{'SS': {'gnabar':0},
'B_DR': {},
'KDR': {},
'KDRI': {'gkbar':0.034}}
IN.init_nernsts()
return IN
def createEX():
cellRule = {
'secs': {
'dend' : {'L': 400 , 'diam': 3.0 , 'nseg': 15, 'Ra': 150},
'soma' : {'L': 20.0, 'diam': 20.0, 'nseg': 1 , 'Ra': 150},
'hillock': {'L': 9.0 , 'diam': 1.5 , 'nseg': 1 , 'Ra': 150},
},# using dlambda 0.1, freq < 100
'ions': {'k': -70.0, 'na': 53.0, 'ca': 132.5},
'mechs': {'pas': {'g': 4.2e-05, 'e': -65}},
'cons': (
('dend', 'soma'),
('soma', 'hillock')
)}
EX = genrn(**cellRule)
EX/'dend'<{'HH2': {'gnabar': 0, 'gkbar': 0.036},
'CaIntraCellDyn': {'depth': 0.1, 'cai_tau': 2.0, 'cai_inf': 50e-6},
'iKCa': {'gbar': 0.002}}
EX/'soma'<{'HH2': {'gnabar': 0, 'gkbar': 0.001075, 'vtraub': -55},
'CaIntraCellDyn': {'depth': 0.1, 'cai_tau': 1.0, 'cai_inf': 50e-6},
'iKCa': {'gbar': 0.002}}
EX/'hillock'<{'HH2': {'gnabar': 3.45, 'gkbar': 0.076, 'vtraub': -55}}
# axon only has one mechanism besides pas, with 0 ion conductance
EX.init_nernsts()
return EX
def createPRO():
cellRule = {
'secs': {
'soma' : {'L': 20.0, 'diam': 20.0, 'nseg': 1 , 'Ra': 150},
'dend' : {'L': 350 , 'diam': 2.5 , 'nseg': 15, 'Ra': 150},
'hillock': {'L': 9.0 , 'diam': 1.5 , 'nseg': 1 , 'Ra': 150},
},
'ions': {'k': -70.0, 'na': 53.0, 'ca': 132.5},
'mechs': {'pas': {'g': 4.2e-05, 'e': -65}},
'cons': (
('dend', 'soma'),
('soma', 'hillock')
)}
PRO = genrn(**cellRule)
PRO/'soma'<{'HH2': {'gnabar': 0, 'gkbar': 0.001075, 'vtraub': -55},
'CaIntraCellDyn': {'depth': 0.1, 'cai_tau': 1.0, 'cai_inf': 50e-6},
'iCaL': {'pcabar': 0.001},
'iKCa': {'gbar': 0.0001},
'iNaP': {'gnabar': 0.0001}}
PRO/'dend'<{'HH2': {'gnabar': 0, 'gkbar': 0.036},
'CaIntraCellDyn': {'depth': 0.1, 'cai_tau': 2.0, 'cai_inf':50e-6},
'iCaL': {'pcabar': 3e-5},
'iKCa': {'gbar': 0.001}}
PRO/'hillock'<{'HH2': {'gnabar': 3.45, 'gkbar': 0.076, 'vtraub': -55}}
return PRO
if __name__=='__main__':
inc = createIN()
exc = createEX()
proc= createPRO()
print("IN cell:\n%s" %(inc) )
print("EX cell:\n%s" %(exc) )
print("PRO cell:\n%s" %(proc))
pass