-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patht42_cfg.py
144 lines (105 loc) · 3.41 KB
/
t42_cfg.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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 9 14:41:05 2021
@author: adam
"""
from netpyne import specs
## Population parameters
cfg = specs.SimConfig() # object of class SimConfig to store simulation configuration
cfg.duration = 600
cfg.starttime = 300
cfg.seedval = 42
cfg.pyrpopsize = 1
cfg.pcscalenum = 1
cfg.pvbcpopsize = 1
cfg.pvscalenum = 1
cfg.olmpopsize = 3
cfg.olmscalenum = 1
cfg.connectPC2PC = False # False
cfg.connectPVBC2PVBC = False # False
cfg.connectPVBCPC = True # False
cfg.connectOLMPC = True # False
cfg.connectPCPVBC = False # False
cfg.connectPCOLM = False # False
# =============================================================================
# cfg.connectPC2PC = False
# cfg.connectPVBC2PVBC = False
# cfg.connectPVBCPC = False
# cfg.connectOLMPC = False
# cfg.connectPCPVBC = False
# cfg.connectPCOLM = False
# =============================================================================
cfg.PVBCsomaDist = 50
cfg.OLMsomaDist = 250
cfg.pc_olm_use = 0.07
cfg.olmdepfact = 38
cfg.olmfacfact = 470
cfg.pvbcdep = 110
cfg.pvbcfac = 0
cfg.olm_pc_gaba_tau = 18
cfg.olm2pcDep = 1770
cfg.olm2pcFac = 6
cfg.pv_pc_gaba_tau_fact = 1
cfg.pvbc2pcDep = 965
cfg.pvbc2pcFac = 8.6
cfg.pc_olm_sec = 'basal'
cfg.pc_olm_conprob = 1
cfg.pc_olm_synfact = 1
cfg.pc_pc_conprob = 1
cfg.pc_pc_synfact = 1
cfg.pc_pv_conprob = 1
cfg.pc_pv_synfact = 1
cfg.olm_pc_conprob = 1
cfg.olm_pc_synfact = 1
cfg.pv_pc_conprob = 1
cfg.pv_pc_synfact = 1
cfg.pvbc_pvbc_conprob = 1
cfg.pvbc_pvbc_synfact = 1
cfg.pc_olm_hibound = 0.7
cfg.pc_olm_lowbound = 0.5
cfg.pc_olm_wei = 0.5
cfg.pc_pv_wei = 1
cfg.olm_pc_wei = 0.25
cfg.olm_pc_lobound = 4.1
cfg.olm_pc_hibound = 5.5
cfg.pv_pc_wei = 1
#############################
cfg.doAlvstim = True
cfg.alv_olm_synfact = 138
cfg.alv_pv_synfact = 80
cfg.doAlvPYRclamp = True
cfg.alvsomaclampamp = 0.3 #0.3
cfg.alvclamptarg = 'PYR'
cfg.scanz_stimtotnum = 3
cfg.scanz_fval = 10
#############################
cfg.cvode_active = True
cfg.dt = 0.025
cfg.hParams = {'v_init': -65, 'celsius': 34} #, 'clamp_resist': 0.001}
cfg.verbose = False
cfg.distributeSynsUniformly = False
cfg.connRandomSecFromList = True
cfg.recordStep = 1 # Step size in ms to save data (eg. V traces, LFP, etc)
cfg.savePickle = False # Save params, network and sim output to pickle file
cfg.saveFileStep = 1000 # step size in ms to save data to disk
cfg.analysis['plotRaster'] = {'include': ['artif_pyr', 'PYR_pop', 'PVBC_pop', 'OLM_pop'],
'marker': 'o',
'saveFig': True,
'showFig': False,
'markerSize': 6}
cfg.recordTraces['V_soma'] = {'sec':'soma_0','loc':0.5,'var':'v'}
cfg.analysis['plotTraces'] = {'include': [4],
'saveFig': False,
'showFig': False,
}
recordapictraces = True
if recordapictraces:
for x1 in range(10):
s1 = 'dend_' + str(x1*2)
cfg.recordTraces['V_' + s1] = {'sec':s1,'loc':0.5,'var':'v'}
for x1 in range(20):
s1 = 'apic_' + str(x1*3)
cfg.recordTraces['V_' + s1] = {'sec':s1,'loc':0.5,'var':'v'}
cfg.saveJson = True
cfg.seeds = {'conn': cfg.seedval + 7515, 'stim': cfg.seedval + 84331, 'loc': cfg.seedval + 943}