-
Notifications
You must be signed in to change notification settings - Fork 2
/
borgkm.mod
86 lines (57 loc) · 1.11 KB
/
borgkm.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
TITLE Borg-Graham K-M channel
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
(mM) = (milli/liter)
}
PARAMETER {
cai (mM)
v (mV)
ek (mV)
celsius (degC)
gkmbar=.003 (mho/cm2)
vhalf=-55 (mV)
a0=0.006 (/ms)
zeta=-10 (1)
gm=0.06 (1)
st=1
}
NEURON {
SUFFIX borgkm
USEION k READ ek WRITE ik
RANGE gkmbar
GLOBAL inf,tau
}
STATE {
m
}
ASSIGNED {
ik (mA/cm2)
inf
tau
}
INITIAL {
rate(v)
m=inf
}
BREAKPOINT {
SOLVE state METHOD cnexp
ik = gkmbar*m^st*(v-ek)
}
FUNCTION alp(v(mV)) {
alp = exp( 1.e-3*zeta*(v-vhalf)*9.648e4/(8.315*(273.16+celsius)))
}
FUNCTION bet(v(mV)) {
bet = exp(1.e-3*zeta*gm*(v-vhalf)*9.648e4/(8.315*(273.16+celsius)))
}
DERIVATIVE state {
rate(v)
m' = (inf - m)/tau
}
PROCEDURE rate(v (mV)) { :callable from hoc
LOCAL a,q10
q10=5^((celsius-23)/10)
a = alp(v)
inf = 1/(1 + a)
tau = bet(v)/(q10*a0*(1+a))
}