-
Notifications
You must be signed in to change notification settings - Fork 0
/
TC_iA.mod
79 lines (63 loc) · 1.47 KB
/
TC_iA.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
TITLE Fast Transient Potassium Current IA
: From the model by Huguenard and McCormick, J Neurophysiol, 1992
: Written by Yimy Amarillo, 2014 (Amarillo et al., J Neurophysiol, 2014)
UNITS {
(mV) = (millivolt)
(mA) = (milliamp)
(S) = (siemens)
}
NEURON {
SUFFIX TC_iA
USEION k READ ek WRITE ik
RANGE gk_max, ik, taom, taoh1, taoh2
}
PARAMETER {
gk_max = 5.5e-3 (S/cm2) : Default maximum conductance
celsius
}
ASSIGNED {
v (mV)
ek (mV)
ik (mA/cm2)
m1inf
m2inf
hinf
taoh1 (ms)
taoh2 (ms)
taom (ms)
tadj
}
STATE {
m1 m2 h1 h2
}
BREAKPOINT {
SOLVE states METHOD cnexp
ik = gk_max*(0.6*h1*m1^4+0.4*h2*m2^4)*(v-ek)
}
INITIAL {
tadj = 2.8 ^ ((celsius-23)/10)
settables(v)
m1 = m1inf
m2 = m2inf
h1 = hinf
h2 = hinf
}
DERIVATIVE states {
settables(v)
m1' = (m1inf-m1)/taom
m2' = (m2inf-m2)/taom
h1' = (hinf-h1)/taoh1
h2' = (hinf-h2)/taoh2
}
UNITSOFF
PROCEDURE settables(v (mV)) {
LOCAL taodef
m1inf = 1/(1+exp(-(v+60)/8.5))
m2inf = 1/(1+exp(-(v+36)/20))
hinf = 1/(1+exp((v+78)/6))
taom = (0.37 + 1/(exp((v+35.8)/19.7)+exp(-(v+79.7)/12.7))) / tadj
taodef = (1/(exp((v+46)/5)+exp(-(v+238)/37.5))) / tadj
if (v<(-63)) {taoh1 = taodef} else {taoh1 = (19 / tadj)}
if (v<(-73)) {taoh2 = taodef} else {taoh2 = (60 / tadj)}
}
UNITSON