forked from jonescompneurolab/hnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
params_default.py
363 lines (303 loc) · 11.2 KB
/
params_default.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
from collections import OrderedDict
# params_default.py - master list of changeable params. most set to default val of inactive
#
# v 1.9.01
# rev 2015-12-08 (RL: added t0_pois)
# last major: (SL: Added default params for L2Basket and L5Basket cells)
# returns default params - see note
def get_params_default (nprox = 2, ndist = 1):
""" Note that nearly all start times are set BEYOND tstop for this file
Most values here are set to whatever default value inactivates them, such as 0 for conductance
prng seed values are also set to 0 (non-random)
flat file of default values
will most often be overwritten
"""
# set default params
p = {
'sim_prefix': 'default',
# simulation end time (ms)
'tstop': 250.,
# numbers of cells making up the pyramidal grids
'N_pyr_x': 1,
'N_pyr_y': 1,
# amplitudes of individual Gaussian random inputs to L2Pyr and L5Pyr
# L2 Basket params
'L2Basket_Gauss_A_weight': 0.,
'L2Basket_Gauss_mu': 2000.,
'L2Basket_Gauss_sigma': 3.6,
'L2Basket_Pois_A_weight_ampa': 0.,
'L2Basket_Pois_A_weight_nmda': 0.,
'L2Basket_Pois_lamtha': 0.,
# L2 Pyr params
'L2Pyr_Gauss_A_weight': 0.,
'L2Pyr_Gauss_mu': 2000.,
'L2Pyr_Gauss_sigma': 3.6,
'L2Pyr_Pois_A_weight_ampa': 0.,
'L2Pyr_Pois_A_weight_nmda': 0.,
'L2Pyr_Pois_lamtha': 0.,
# L5 Pyr params
'L5Pyr_Gauss_A_weight': 0.,
'L5Pyr_Gauss_mu': 2000.,
'L5Pyr_Gauss_sigma': 4.8,
'L5Pyr_Pois_A_weight_ampa': 0.,
'L5Pyr_Pois_A_weight_nmda': 0.,
'L5Pyr_Pois_lamtha': 0.,
# L5 Basket params
'L5Basket_Gauss_A_weight': 0.,
'L5Basket_Gauss_mu': 2000.,
'L5Basket_Gauss_sigma': 2.,
'L5Basket_Pois_A_weight_ampa': 0.,
'L5Basket_Pois_A_weight_nmda': 0.,
'L5Basket_Pois_lamtha': 0.,
# maximal conductances for all synapses
# max conductances TO L2Pyrs
'gbar_L2Pyr_L2Pyr_ampa': 0.,
'gbar_L2Pyr_L2Pyr_nmda': 0.,
'gbar_L2Basket_L2Pyr_gabaa': 0.,
'gbar_L2Basket_L2Pyr_gabab': 0.,
# max conductances TO L2Baskets
'gbar_L2Pyr_L2Basket': 0.,
'gbar_L2Basket_L2Basket': 0.,
# max conductances TO L5Pyr
'gbar_L5Pyr_L5Pyr_ampa': 0.,
'gbar_L5Pyr_L5Pyr_nmda': 0.,
'gbar_L2Pyr_L5Pyr': 0.,
'gbar_L2Basket_L5Pyr': 0.,
'gbar_L5Basket_L5Pyr_gabaa': 0.,
'gbar_L5Basket_L5Pyr_gabab': 0.,
# max conductances TO L5Baskets
'gbar_L5Basket_L5Basket': 0.,
'gbar_L5Pyr_L5Basket': 0.,
'gbar_L2Pyr_L5Basket': 0.,
# Ongoing proximal alpha rhythm
'distribution_prox': 'normal',
't0_input_prox': 1000.,
'tstop_input_prox': 250.,
'f_input_prox': 10.,
'f_stdev_prox': 20.,
'events_per_cycle_prox': 2,
'repeats_prox': 10,
't0_input_stdev_prox': 0.0,
# Ongoing distal alpha rhythm
'distribution_dist': 'normal',
't0_input_dist': 1000.,
'tstop_input_dist': 250.,
'f_input_dist': 10.,
'f_stdev_dist': 20.,
'events_per_cycle_dist': 2,
'repeats_dist': 10,
't0_input_stdev_dist': 0.0,
# thalamic input amplitudes and delays
'input_prox_A_weight_L2Pyr_ampa': 0.,
'input_prox_A_weight_L2Pyr_nmda': 0.,
'input_prox_A_weight_L5Pyr_ampa': 0.,
'input_prox_A_weight_L5Pyr_nmda': 0.,
'input_prox_A_weight_L2Basket_ampa': 0.,
'input_prox_A_weight_L2Basket_nmda': 0.,
'input_prox_A_weight_L5Basket_ampa': 0.,
'input_prox_A_weight_L5Basket_nmda': 0.,
'input_prox_A_delay_L2': 0.1,
'input_prox_A_delay_L5': 1.0,
# current values, not sure where these distal values come from, need to check
'input_dist_A_weight_L2Pyr_ampa': 0.,
'input_dist_A_weight_L2Pyr_nmda': 0.,
'input_dist_A_weight_L5Pyr_ampa': 0.,
'input_dist_A_weight_L5Pyr_nmda': 0.,
'input_dist_A_weight_L2Basket_ampa': 0.,
'input_dist_A_weight_L2Basket_nmda': 0.,
'input_dist_A_delay_L2': 5.,
'input_dist_A_delay_L5': 5.,
# times and stdevs for evoked responses
'dt_evprox0_evdist': -1, # not used in GUI
'dt_evprox0_evprox1': -1, # not used in GUI
'sync_evinput': 1, # whether evoked inputs arrive at same time to all cells
'inc_evinput': 0.0, # increment (ms) for avg evoked input start (for trial n, avg start time is n * evinputinc
# analysis
'save_spec_data': 0,
'f_max_spec': 40.,
'dipole_scalefctr': 30e3, # scale factor for dipole - default at 30e3
#based on scaling needed to match model ongoing rhythms from jones 2009 - for ERPs can use 300
# for ongoing rhythms + ERPs ... use ... ?
'dipole_smooth_win': 15.0, # window for smoothing (box filter) - 15 ms from jones 2009; shorten
# in case want to look at higher frequency activity
'save_figs': 0,
'save_vsoma': 0, # whether to record/save somatic voltage
# IClamp params for L2Pyr
'Itonic_A_L2Pyr_soma': 0.,
'Itonic_t0_L2Pyr_soma': 0.,
'Itonic_T_L2Pyr_soma': -1.,
# IClamp param for L2Basket
'Itonic_A_L2Basket': 0.,
'Itonic_t0_L2Basket': 0.,
'Itonic_T_L2Basket': -1.,
# IClamp params for L5Pyr
'Itonic_A_L5Pyr_soma': 0.,
'Itonic_t0_L5Pyr_soma': 0.,
'Itonic_T_L5Pyr_soma': -1.,
# IClamp param for L5Basket
'Itonic_A_L5Basket': 0.,
'Itonic_t0_L5Basket': 0.,
'Itonic_T_L5Basket': -1.,
# numerics
# N_trials of 1 means that seed is set by rank
'N_trials': 1,
# prng_state is a string for a filename containing the random state one wants to use
# prng seed cores are the base integer seed for the specific
# prng object for a specific random number stream
# 'prng_state': None,
'prng_seedcore_input_prox': 0,
'prng_seedcore_input_dist': 0,
'prng_seedcore_extpois': 0,
'prng_seedcore_extgauss': 0,
# default end time for pois inputs
't0_pois': 0.,
'T_pois': -1,
'dt': 0.025,
'celsius': 37.0,
'threshold': 0.0 # firing threshold
}
# grab cell-specific params and update p accordingly
p_L2Pyr = get_L2Pyr_params_default()
p_L5Pyr = get_L5Pyr_params_default()
p.update(p_L2Pyr)
p.update(p_L5Pyr)
# get evoked params and update p accordingly
p_ev_prox = get_ev_params_default(nprox,True)
p_ev_dist = get_ev_params_default(ndist,False)
p.update(p_ev_prox)
p.update(p_ev_dist)
return p
# return dict with default params (empty) for evoked inputs; n is number of evoked inputs
# isprox == True iff proximal (otherwise distal)
def get_ev_params_default (n,isprox):
dout = {}#OrderedDict()
if isprox: pref = 'evprox'
else: pref = 'evdist'
# print('isprox:',isprox,'n:',n)
lty = ['L2Pyr', 'L5Pyr', 'L2Basket']
if isprox: lty.append('L5Basket')
lsy = ['ampa', 'nmda'] # allow changing both ampa and nmda weights
for i in range(n):
tystr = pref + '_' + str(i+1) # this string includes input number
for ty in lty:
for sy in lsy:
dout['gbar_' + tystr + '_' + ty + '_' + sy] = 0. # feed strength
dout['t_' + tystr] = 0. # times and stdevs for evoked responses
dout['sigma_t_' + tystr] = 0.
dout['prng_seedcore_' + tystr] = 0 # random number generator seed for this input
dout['numspikes_' + tystr] = 1 # number of presynaptic spikes (postsynaptic inputs)
return dout
# returns default params for L2 pyramidal cell
def get_L2Pyr_params_default():
return {
# Soma
'L2Pyr_soma_L': 22.1,
'L2Pyr_soma_diam': 23.4,
'L2Pyr_soma_cm': 0.6195,
'L2Pyr_soma_Ra': 200.,
# Dendrites
'L2Pyr_dend_cm': 0.6195,
'L2Pyr_dend_Ra': 200.,
'L2Pyr_apicaltrunk_L': 59.5,
'L2Pyr_apicaltrunk_diam': 4.25,
'L2Pyr_apical1_L': 306.,
'L2Pyr_apical1_diam': 4.08,
'L2Pyr_apicaltuft_L': 238.,
'L2Pyr_apicaltuft_diam': 3.4,
'L2Pyr_apicaloblique_L': 340.,
'L2Pyr_apicaloblique_diam': 3.91,
'L2Pyr_basal1_L': 85.,
'L2Pyr_basal1_diam': 4.25,
'L2Pyr_basal2_L': 255.,
'L2Pyr_basal2_diam': 2.72,
'L2Pyr_basal3_L': 255.,
'L2Pyr_basal3_diam': 2.72,
# Synapses
'L2Pyr_ampa_e': 0.,
'L2Pyr_ampa_tau1': 0.5,
'L2Pyr_ampa_tau2': 5.,
'L2Pyr_nmda_e': 0.,
'L2Pyr_nmda_tau1': 1.,
'L2Pyr_nmda_tau2': 20.,
'L2Pyr_gabaa_e': -80.,
'L2Pyr_gabaa_tau1': 0.5,
'L2Pyr_gabaa_tau2': 5.,
'L2Pyr_gabab_e': -80.,
'L2Pyr_gabab_tau1': 1.,
'L2Pyr_gabab_tau2': 20.,
# Biophysics soma
'L2Pyr_soma_gkbar_hh2': 0.01,
'L2Pyr_soma_gnabar_hh2': 0.18,
'L2Pyr_soma_el_hh2': -65.,
'L2Pyr_soma_gl_hh2': 4.26e-5,
'L2Pyr_soma_gbar_km': 250.,
# Biophysics dends
'L2Pyr_dend_gkbar_hh2': 0.01,
'L2Pyr_dend_gnabar_hh2': 0.15,
'L2Pyr_dend_el_hh2': -65.,
'L2Pyr_dend_gl_hh2': 4.26e-5,
'L2Pyr_dend_gbar_km': 250.,
}
# returns default params for L5 pyramidal cell
def get_L5Pyr_params_default():
return {
# Soma
'L5Pyr_soma_L': 39.,
'L5Pyr_soma_diam': 28.9,
'L5Pyr_soma_cm': 0.85,
'L5Pyr_soma_Ra': 200.,
# Dendrites
'L5Pyr_dend_cm': 0.85,
'L5Pyr_dend_Ra': 200.,
'L5Pyr_apicaltrunk_L': 102.,
'L5Pyr_apicaltrunk_diam': 10.2,
'L5Pyr_apical1_L': 680.,
'L5Pyr_apical1_diam': 7.48,
'L5Pyr_apical2_L': 680.,
'L5Pyr_apical2_diam': 4.93,
'L5Pyr_apicaltuft_L': 425.,
'L5Pyr_apicaltuft_diam': 3.4,
'L5Pyr_apicaloblique_L': 255.,
'L5Pyr_apicaloblique_diam': 5.1,
'L5Pyr_basal1_L': 85.,
'L5Pyr_basal1_diam': 6.8,
'L5Pyr_basal2_L': 255.,
'L5Pyr_basal2_diam': 8.5,
'L5Pyr_basal3_L': 255.,
'L5Pyr_basal3_diam': 8.5,
# Synapses
'L5Pyr_ampa_e': 0.,
'L5Pyr_ampa_tau1': 0.5,
'L5Pyr_ampa_tau2': 5.,
'L5Pyr_nmda_e': 0.,
'L5Pyr_nmda_tau1': 1.,
'L5Pyr_nmda_tau2': 20.,
'L5Pyr_gabaa_e': -80.,
'L5Pyr_gabaa_tau1': 0.5,
'L5Pyr_gabaa_tau2': 5.,
'L5Pyr_gabab_e': -80.,
'L5Pyr_gabab_tau1': 1.,
'L5Pyr_gabab_tau2': 20.,
# Biophysics soma
'L5Pyr_soma_gkbar_hh2': 0.01,
'L5Pyr_soma_gnabar_hh2': 0.16,
'L5Pyr_soma_el_hh2': -65.,
'L5Pyr_soma_gl_hh2': 4.26e-5,
'L5Pyr_soma_gbar_ca': 60.,
'L5Pyr_soma_taur_cad': 20.,
'L5Pyr_soma_gbar_kca': 2e-4,
'L5Pyr_soma_gbar_km': 200.,
'L5Pyr_soma_gbar_cat': 2e-4,
'L5Pyr_soma_gbar_ar': 1e-6,
# Biophysics dends
'L5Pyr_dend_gkbar_hh2': 0.01,
'L5Pyr_dend_gnabar_hh2': 0.14,
'L5Pyr_dend_el_hh2': -71.,
'L5Pyr_dend_gl_hh2': 4.26e-5,
'L5Pyr_dend_gbar_ca': 60.,
'L5Pyr_dend_taur_cad': 20.,
'L5Pyr_dend_gbar_kca': 2e-4,
'L5Pyr_dend_gbar_km': 200.,
'L5Pyr_dend_gbar_cat': 2e-4,
'L5Pyr_dend_gbar_ar': 1e-6,
}