-
Notifications
You must be signed in to change notification settings - Fork 1
/
hyperde3.mod
177 lines (139 loc) · 3.96 KB
/
hyperde3.mod
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
TITLE hyperde3.mod
COMMENT
Chen K, Aradi I, Thon N, Eghbal-Ahmadi M, Baram TZ, Soltesz I: Persistently
modified
h-channels after complex febrile seizures convert the seizure-induced
enhancement of
inhibition to hyperexcitability. Nature Medicine, 7(3) pp. 331-337, 2001.
(modeling by Ildiko Aradi, [email protected])
distal dendritic Ih channel kinetics for both HT and Control anlimals
ENDCOMMENT
UNITS {
(mA) =(milliamp)
(mV) =(millivolt)
(uF) = (microfarad)
(molar) = (1/liter)
(nA) = (nanoamp)
(mM) = (millimolar)
(um) = (micron)
FARADAY = 96520 (coul)
R = 8.3134 (joule/degC)
}
? interface
NEURON {
SUFFIX hyperde3
USEION hyf READ ehyf WRITE ihyf VALENCE 1
USEION hys READ ehys WRITE ihys VALENCE 1
USEION hyhtf READ ehyhtf WRITE ihyhtf VALENCE 1
USEION hyhts READ ehyhts WRITE ihyhts VALENCE 1
RANGE ghyf, ghys, ghyhtf, ghyhts
RANGE ghyfbar, ghysbar, ghyhtfbar, ghyhtsbar
RANGE hyfinf, hysinf, hyftau, hystau
RANGE hyhtfinf, hyhtsinf, hyhtftau, hyhtstau, ihyf, ihys
}
INDEPENDENT {t FROM 0 TO 100 WITH 100 (ms)}
PARAMETER {
v (mV)
celsius = 6.3 (degC)
dt (ms)
ghyfbar (mho/cm2)
ghysbar (mho/cm2)
ehyf (mV)
ehys (mV)
ghyhtfbar (mho/cm2)
ghyhtsbar (mho/cm2)
ehyhtf (mV)
ehyhts (mV)
}
STATE {
hyf hys hyhtf hyhts
}
ASSIGNED {
ghyf (mho/cm2)
ghys (mho/cm2)
ghyhtf (mho/cm2)
ghyhts (mho/cm2)
ihyf (mA/cm2)
ihys (mA/cm2)
ihyhtf (mA/cm2)
ihyhts (mA/cm2)
hyfinf hysinf hyhtfinf hyhtsinf
hyftau (ms) hystau (ms) hyhtftau (ms) hyhtstau (ms)
hyfexp hysexp hyhtfexp hyhtsexp
}
? currents
BREAKPOINT {
SOLVE states
ghyf = ghyfbar * hyf*hyf
ihyf = ghyf * (v-ehyf)
ghys = ghysbar * hys*hys
ihys = ghys * (v-ehys)
ghyhtf = ghyhtfbar * hyhtf* hyhtf
ihyhtf = ghyhtf * (v-ehyhtf)
ghyhts = ghyhtsbar * hyhts* hyhts
ihyhts = ghyhts * (v-ehyhts)
}
UNITSOFF
INITIAL {
trates(v)
hyf = hyfinf
hys = hysinf
hyhtf = hyhtfinf
hyhts = hyhtsinf
VERBATIM
return 0;
ENDVERBATIM
}
? states
PROCEDURE states() { :Computes state variables m, h, and n
trates(v) : at the current v and dt.
hyf = hyf + hyfexp*(hyfinf-hyf)
hys = hys + hysexp*(hysinf-hys)
hyhtf = hyhtf + hyhtfexp*(hyhtfinf-hyhtf)
hyhts = hyhts + hyhtsexp*(hyhtsinf-hyhts)
VERBATIM
return 0;
ENDVERBATIM
}
LOCAL q10
? rates
PROCEDURE rates(v) { :Computes rate and other constants at current v.
:Call once from HOC to initialize inf at resting v.
LOCAL alpha, beta, sum
q10 = 3^((celsius - 6.3)/10)
:"hyf" FAST CONTROL Hype activation system
hyfinf = 1 / (1 + exp( (v+91)/10 ))
hyftau = 14.9 + 14.1 / (1+exp(-(v+95.2)/0.5))
:"hys" SLOW CONTROL Hype activation system
hysinf = 1 / (1 + exp( (v+91)/10 ))
hystau = 80 + 172.7 / (1+exp(-(v+59.3)/-0.83))
:"hyhtf" FAST HT Hypeht activation system
hyhtfinf = 1 / (1 + exp( (v+87)/10 ))
hyhtftau = 23.2 + 16.1 / (1+exp(-(v+91.2)/0.83))
:"hyhts" SLOW HT Hypeht activation system
hyhtsinf = 1 / (1 + exp( (v+87)/10 ))
hyhtstau = 227.3 + 170.7*exp(-0.5*((v+80.4)/11)^2)
}
PROCEDURE trates(v) { :Computes rate and other constants at current v.
:Call once from HOC to initialize inf at resting v.
LOCAL tinc
TABLE hyfinf, hyhtfinf, hyfexp, hyhtfexp, hyftau, hyhtftau,
hysinf, hyhtsinf, hysexp, hyhtsexp, hystau, hyhtstau
DEPEND dt, celsius FROM -120 TO 100 WITH 220
rates(v) : not consistently executed from here if usetable_hh == 1
: so don't expect the tau values to be tracking along with
: the inf values in hoc
tinc = -dt * q10
hyfexp = 1 - exp(tinc/hyftau)
hysexp = 1 - exp(tinc/hystau)
hyhtfexp = 1 - exp(tinc/hyhtftau)
hyhtsexp = 1 - exp(tinc/hyhtstau)
}
FUNCTION vtrap(x,y) { :Traps for 0 in denominator of rate eqns.
if (fabs(x/y) < 1e-6) {
vtrap = y*(1 - x/y/2)
}else{
vtrap = x/(exp(x/y) - 1)
}
}
UNITSON