-
Notifications
You must be signed in to change notification settings - Fork 1
/
kv4_gp.mod
118 lines (106 loc) · 1.96 KB
/
kv4_gp.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
: KV4_GP.MOD
:
: c1 - c2 - c3 - c4 - o
: | | | | |
: i1 - i2 - i3 - i4 - i5 - is
NEURON {
SUFFIX kv4_gp
USEION k READ ek WRITE ik
RANGE g, ik, gbar
GLOBAL alpha, beta
GLOBAL ci, ic, oi, io, a, b, am, bm, vc, gamma, delta, vha, vhb
GLOBAL i5is, isi5
GLOBAL ratio, kv4var
GLOBAL q10i, q10v
}
UNITS {
(mV) = (millivolt)
(S) = (siemens)
(mA) = (milliamp)
}
PARAMETER {
gbar = 1 (S/cm2)
gamma = 200 (1/ms)
delta = 4 (1/ms)
a = 3
b = 40
ic = 500 (1/ms)
oi = 1e-9 (1/ms)
io = .01 (1/ms)
ci = .2 (1/ms)
am = 1 (1/ms)
bm = 7 (1/ms)
vc = 10 (mV)
vha = -75 (mV)
vhb = -30 (mV)
i5is = .001 (1/ms)
isi5 = .001 (1/ms)
q10i = 3
q10v = 3
celsius (degC)
kv4var = 0
}
ASSIGNED {
v (mV)
ek (mV)
g (S/cm2)
ik (mA/cm2)
alpha (1/ms)
beta (1/ms)
ratio
}
STATE {
c1
c2
c3
c4
o
i1
i2
i3
i4
i5
is
ift
it
ct :total closed
avail :total closed or open
}
BREAKPOINT {
SOLVE kin METHOD sparse
g = gbar*o*normrand(1,kv4var)
ik = g*(v-ek)
ct = c1 + c2 +c3 +c4
ift = i1+i2+i3+i4+i5
it = ift+is
avail = o + ct
}
INITIAL {
SOLVE kin STEADYSTATE sparse
}
KINETIC kin{
LOCAL q10
q10 = q10i^((celsius - 22 (degC))/10 (degC))
rates(v)
~ c1 <-> c2 (3*alpha,beta)
~ c2 <-> c3 (2*alpha,2*beta)
~ c3 <-> c4 (alpha,3*beta)
~ c4 <-> o (q10*gamma,q10*delta)
~ i1 <-> i2 (3*alpha*a,beta/b)
~ i2 <-> i3 (2*alpha*a,2*beta/b)
~ i3 <-> i4 (alpha*a,3*beta/b)
~ i4 <-> i5 (q10*gamma,q10*delta)
~ i5 <-> is (q10*i5is,q10*isi5)
~ i1 <-> c1 (q10*ic,q10*ci)
~ i2 <-> c2 (q10*ic/b,q10*ci*a)
~ i3 <-> c3 (q10*ic/b^2,q10*ci*a^2)
~ i4 <-> c4 (q10*ic/b^3,q10*ci*a^3)
~ i5 <-> o (q10*io,q10*oi)
CONSERVE c1+c2+c3+c4+i1+i2+i3+i4+i5+o+is=1
}
PROCEDURE rates(v(millivolt)) {LOCAL q10
q10 = q10v^((celsius - 22 (degC))/10 (degC))
alpha = q10*am*exp((v-vha)/vc)
beta = q10*bm*exp((v-vhb)/-vc)
ratio = (oi*ic/((io*(a^3)*(b^3))))/ci
}