forked from ModelDBRepository/183300
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kamt.mod
95 lines (74 loc) · 1.4 KB
/
kamt.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
TITLE K-A
: K-A current for Mitral Cells from Wang et al (1996)
: M.Migliore Jan. 2002
NEURON {
SUFFIX kamt
USEION k READ ek WRITE ik
RANGE gbar, ik, m, h, sha,shi, k_tauH,sh_tauH
GLOBAL minf, mtau, hinf, htau
}
PARAMETER {
gbar = 0.0002 (mho/cm2)
celsius
ek = -70 (mV) : must be explicitly def. in hoc
v (mV)
a0m=0.04
vhalfm=-45
zetam=0.1
gmm=0.75
a0h=0.018
vhalfh=-70
zetah=0.2
gmh=0.99
sha=9.9
shi=5.7
q10=3
k_tauH=1.0 : 2.5; added by GL
sh_tauH=-0 : -20; added by GL
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
(pS) = (picosiemens)
(um) = (micron)
}
ASSIGNED {
ik (mA/cm2)
minf mtau (ms)
hinf htau (ms)
}
STATE { m h}
BREAKPOINT {
SOLVE states METHOD cnexp
ik = gbar*m*h*(v - ek)
}
INITIAL {
trates(v)
m=minf
h=hinf
}
DERIVATIVE states {
trates(v)
m' = (minf-m)/mtau
h' = (hinf-h)/htau
}
PROCEDURE trates(v) {
LOCAL qt
qt=q10^((celsius-24)/10)
minf = 1/(1 + exp(-(v-sha-7.6)/14))
mtau = betm(v)/(qt*a0m*(1+alpm(v)))
hinf = 1/(1 + exp((v-shi+47.4)/6))
htau = k_tauH*beth(v)/(qt*a0h*(1+alph(v)))
}
FUNCTION alpm(v(mV)) {
alpm = exp(zetam*(v-vhalfm))
}
FUNCTION betm(v(mV)) {
betm = exp(zetam*gmm*(v-vhalfm))
}
FUNCTION alph(v(mV)) {
alph = exp(zetah*(v-vhalfh-sh_tauH))
}
FUNCTION beth(v(mV)) {
beth = exp(zetah*gmh*(v-vhalfh-sh_tauH))
}