-
Notifications
You must be signed in to change notification settings - Fork 0
/
kv1.mod
69 lines (55 loc) · 1.04 KB
/
kv1.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
TITLE KA
: K-A current for hippocampal interneurons from Lien et al (2002)
: M.Migliore Jan. 2003
NEURON {
SUFFIX kv1
USEION k READ ek WRITE ik
RANGE ik, qtau
RANGE gbar, a0h
GLOBAL pinf, qinf, ptau
}
PARAMETER {
gbar = 0.0002 (mho/cm2)
celsius
ek (mV) : must be explicitly def. in hoc
v (mV)
a0h=0.17
vhalfh=-105
q10=3
qmin=5
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
(pS) = (picosiemens)
(um) = (micron)
}
ASSIGNED {
ik (mA/cm2)
pinf ptau (ms)
qinf qtau (ms)
}
STATE { p q}
BREAKPOINT {
SOLVE states METHOD cnexp
ik = gbar*p*q*(v - ek)
}
INITIAL {
trates(v)
p=pinf
q=qinf
}
DERIVATIVE states {
trates(v)
p' = (pinf-p)/ptau
q' = (qinf-q)/qtau
}
PROCEDURE trates(v) {
LOCAL qt
qt=q10^((celsius-23)/10)
pinf = (1/(1 + exp(-(v+41.4)/26.6)))^4
ptau=0.5/qt
qinf = 1/(1 + exp((v+78.5)/6))
qtau = a0h*(v-vhalfh)/qt
if (qtau<qmin/qt) {qtau=qmin/qt}
}