-
Notifications
You must be signed in to change notification settings - Fork 1
/
gskch.mod
93 lines (75 loc) · 1.52 KB
/
gskch.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
TITLE gskch.mod calcium-activated potassium channel (non-voltage-dependent)
COMMENT
gsk granule
ENDCOMMENT
UNITS {
(molar) = (1/liter)
(mM) = (millimolar)
(mA) = (milliamp)
(mV) = (millivolt)
}
NEURON {
SUFFIX gskch
USEION sk READ esk WRITE isk VALENCE 1
USEION nca READ ncai VALENCE 2
USEION lca READ lcai VALENCE 2
USEION tca READ tcai VALENCE 2
RANGE gsk, gskbar, qinf, qtau, isk
}
INDEPENDENT {t FROM 0 TO 1 WITH 1 (ms)}
PARAMETER {
celsius=6.3 (degC)
v (mV)
dt (ms)
gskbar (mho/cm2)
esk (mV)
cai (mM)
ncai (mM)
lcai (mM)
tcai (mM)
}
STATE { q }
ASSIGNED {
isk (mA/cm2) gsk (mho/cm2) qinf qtau (ms) qexp
}
BREAKPOINT { :Computes i=g*q^2*(v-esk)
SOLVE state
gsk = gskbar * q*q
isk = gsk * (v-esk)
}
UNITSOFF
INITIAL {
cai = ncai + lcai + tcai
rate(cai)
q=qinf
VERBATIM
ncai = _ion_ncai;
lcai = _ion_lcai;
tcai = _ion_tcai;
ENDVERBATIM
}
PROCEDURE state() { :Computes state variable q at current v and dt.
cai = ncai + lcai + tcai
rate(cai)
q = q + (qinf-q) * qexp
VERBATIM
return 0;
ENDVERBATIM
}
LOCAL q10
PROCEDURE rate(cai) { :Computes rate and other constants at current v.
LOCAL alpha, beta, tinc
q10 = 3^((celsius - 6.3)/10)
:"q" activation system
alpha = 1.25e1 * cai * cai
beta = 0.00025
: alpha = 0.00246/exp((12*log10(cai)+28.48)/-4.5)
: beta = 0.006/exp((12*log10(cai)+60.4)/35)
: alpha = 0.00246/fctrap(cai)
: beta = 0.006/fctrap(cai)
qtau = 1 / (alpha + beta)
qinf = alpha * qtau
tinc = -dt*q10
qexp = 1 - exp(tinc/qtau)*q10
}
UNITSON