-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakeActiveChannels.hoc
126 lines (102 loc) · 3.08 KB
/
makeActiveChannels.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
///////////////////////////////////////////////////////////////////////////////
// makeActiveChannels.hoc: inserts active ion channels into each section
///////////////////////////////////////////////////////////////////////////////
//////////////////// procedure definitions ////////////////////////////////////
//-----------------------------------------------------------------------------
// channelsSoma()
//-----------------------------------------------------------------------------
// inserts channels in the soma
proc channelsSoma() {
forsec somatic {
// Hodgkin-Huxley Na & K currents
if (hh_soma) {
insert hh2
gnabar_hh2 = gnabar_soma
gkbar_hh2 = gkbar_soma
vtraub_hh2 = vtraub_soma
}
// Voltage Gated Calcium Channels
if (vgcc_soma) {
insert cat
gcatbar_cat = gcatbar_soma
insert calL
gcalbar_calL = gcalbar_soma
insert cad
}
}
}
//-----------------------------------------------------------------------------
// channelsProximal()
//-----------------------------------------------------------------------------
// inserts channels in the proximal dendrites
proc channelsProximal() {
forsec proximal {
// Hodgkin-Huxley Na & K currents
if (hh_prox) {
insert hh2
gnabar_hh2 = gnabar_prox
gkbar_hh2 = gkbar_prox
vtraub_hh2 = vtraub_prox
}
// Voltage Gated Calcium Channels
if (vgcc_prox) {
insert cat
gcatbar_cat = gcatbar_prox
insert calL
gcalbar_calL = gcalbar_prox
insert cad
}
}
}
//-----------------------------------------------------------------------------
// channelsMiddle()
//-----------------------------------------------------------------------------
// inserts channels in the middle dendrites
proc channelsMiddle() {
forsec middle {
// Hodgkin-Huxley Na & K currents
if (hh_mid) {
insert hh2
gnabar_hh2 = gnabar_mid
gkbar_hh2 = gkbar_mid
vtraub_hh2 = vtraub_mid
}
// Voltage Gated Calcium Channels
if (vgcc_mid) {
insert cat
gcatbar_cat = gcatbar_mid
insert calL
gcalbar_calL = gcalbar_mid
insert cad
}
}
}
//-----------------------------------------------------------------------------
// channelsDistal()
//-----------------------------------------------------------------------------
// inserts channels in the distal dendrites
proc channelsDistal() {
forsec distal {
// Hodgkin-Huxley Na & K currents
if (hh_dist) {
insert hh2
gnabar_hh2 = gnabar_dist
gkbar_hh2 = gkbar_dist
vtraub_hh2 = vtraub_dist
}
// Voltage Gated Calcium Channels
if (vgcc_dist) {
insert cat
gcatbar_cat = gcatbar_dist
insert calH
gcalbar_calH = gcalbar_dist
insert cad
}
}
}
//////////////////// procedure calls /////////////////////////////////////
// create the ion-channels throughout the cell
channelsSoma()
channelsProximal()
channelsMiddle()
channelsDistal()