-
Notifications
You must be signed in to change notification settings - Fork 1
/
kdrRL.mod
69 lines (58 loc) · 1.03 KB
/
kdrRL.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 Potassium Delayed Rectifier Channel
:This channel is a Voltage Dependent Potassium Channel
: and will create a current (ik) based on the voltage
:Simplied by RKP 3/22/07 to exlude references to different
: parts of Bob's split dendrite model
UNITS {
(mV) = (millivolt)
(mA) = (milliamp)
(S) = (siemens)
}
NEURON {
SUFFIX kdrRL
USEION k READ ek WRITE ik
RANGE ik, g, gMax
GLOBAL mVh,mslp, tVh, tslp, tmin,taumax
}
PARAMETER {
gMax = 0.1 (S/cm2)
mVh = -25 (mV)
mslp = 20 (mV)
tVh = -39 (mV)
tslp = 5.5 (mV)
tmin = 1.4 (ms)
taumax = 11.9(ms)
}
ASSIGNED {
v (mV)
ek (mV)
ik (mA/cm2)
g (S/cm2)
mtau (ms)
minf
}
STATE {
m
}
INITIAL {
rate(v)
m = minf
}
BREAKPOINT {
SOLVE state METHOD cnexp
g = gMax * m^4
ik = g*(v - ek)
}
DERIVATIVE state {
rate(v)
m' = (minf - m)/mtau
}
PROCEDURE rate(v (mV)) {
LOCAL b, f TABLE minf,mtau
DEPEND mVh,mslp,tVh,tslp,tmin,taumax
FROM -100 TO 100 WITH 200
b = exp((v - tVh)/tslp)
f = (1 + b)^2
minf = 1/(1+exp(-(v-mVh)/mslp))
mtau = tmin + taumax*b/f
}