-
Notifications
You must be signed in to change notification settings - Fork 5
/
rkq.mod
65 lines (53 loc) · 854 Bytes
/
rkq.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
: $Id: rkq.mod,v 1.14 2004/01/27 20:56:10 billl Exp $
TITLE rkq
: Afterhyperpolarization K channel (I_AHP).
: From Traub et. al. (1991) J. Neurophysiol. 66(2) p635, #1172
UNITS {
(mV) = (millivolt)
(mA) = (milliamp)
}
NEURON {
SUFFIX rkq
USEION k READ ek WRITE ik
USEION ca READ cai
RANGE gmax, ik, g, i
}
PARAMETER {
gmax = 0.0 (mho/cm2)
v (mV)
ek (mV)
cai (1)
}
ASSIGNED {
g i
ik (mA/cm2)
alpha beta (/ms)
}
STATE {
m
}
BREAKPOINT {
SOLVE states METHOD cnexp
g = gmax * m
i = g * ( v - ek )
ik = i
}
INITIAL {
rates( cai )
m = alpha / ( alpha + beta )
m = 0
}
DERIVATIVE states {
rates( cai )
m' = alpha * ( 1 - m ) - beta * m
}
UNITSOFF
PROCEDURE rates(chi) {
if (0.2e-4*cai < 0.01) {
alpha = 0.2e-4*cai
} else {
alpha = 0.01
}
beta = 0.001
}
UNITSON