-
Notifications
You must be signed in to change notification settings - Fork 1
/
kdrmt.mod
71 lines (56 loc) · 973 Bytes
/
kdrmt.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
TITLE K-DR
: K-DR current for Mitral Cells from Wang et al (1996)
: M.Migliore Jan. 2002
NEURON {
THREADSAFE
SUFFIX kdrmt
USEION k READ ek WRITE ik
RANGE gbar
GLOBAL minf, mtau
}
PARAMETER {
gbar = 0.002 (mho/cm2)
celsius
ek (mV) : must be explicitly def. in hoc
v (mV)
a0m=0.0035
vhalfm=-50
zetam=0.055
gmm=0.5
q10=3
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
(pS) = (picosiemens)
(um) = (micron)
}
ASSIGNED {
ik (mA/cm2)
minf mtau (ms)
}
STATE { m}
BREAKPOINT {
SOLVE states METHOD cnexp
ik = gbar*m*(v - ek)
}
INITIAL {
trates(v)
m=minf
}
DERIVATIVE states {
trates(v)
m' = (minf-m)/mtau
}
PROCEDURE trates(v) {
LOCAL qt
qt=q10^((celsius-24)/10)
minf = 1/(1 + exp(-(v-21)/10))
mtau = betm(v)/(qt*a0m*(1+alpm(v)))
}
FUNCTION alpm(v(mV)) {
alpm = exp(zetam*(v-vhalfm))
}
FUNCTION betm(v(mV)) {
betm = exp(zetam*gmm*(v-vhalfm))
}