-
Notifications
You must be signed in to change notification settings - Fork 0
/
skkca.mod
86 lines (71 loc) · 1.57 KB
/
skkca.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
: Calcium activated K channel.
: From Moczydlowski and Latorre (1983) J. Gen. Physiol. 82
: Model 3. (Scheme R1 page 523)
UNITS {
(molar) = (1/liter)
(mV) = (millivolt)
(mA) = (milliamp)
(mM) = (millimolar)
FARADAY = (faraday) (kilocoulombs)
R = (k-mole) (joule/degC)
}
NEURON {
SUFFIX skkca
USEION ca READ cai
USEION k READ ek WRITE ik
RANGE gkbar, ik, qfact, abar, bbar, stau, oinf, tau
}
PARAMETER {
stau = 1
qfact = 1
celsius_sk = 22 (degC) : 35
v (mV)
gkbar=0.175 (mho/cm2) : Maximum Permeability
cai (mM)
ek (mV)
d1 = .84 :page 527 Table II channel A
d2 = 1.0 :our index 2 is the paper's subscript 4
k1 = .18 (mM)
k2 = .011 (mM)
abar = .48 (/ms)
bbar = .28 (/ms) :page 524. our bbar is the paper's alpha
}
ASSIGNED {
ik (mA/cm2)
oinf
tau (ms)
}
STATE { o } : fraction of open channels
BREAKPOINT {
SOLVE state METHOD cnexp
ik = gkbar*o*(v - ek)
}
DERIVATIVE state {
rate(v, cai)
o' = (oinf - o)/(tau/qfact)
}
INITIAL {
rate(v, cai)
o = oinf
: VERBATIM
: printf("R = %f\n",R);
: printf("F = %f\n",FARADAY);
: ENDVERBATIM
}
: From R1 page 523. beta in the paper is the rate from closed to open
: and we call it alp here.
FUNCTION alp(v (mV), ca (mM)) (1/ms) { :callable from hoc
alp = 0.48/(1 + exp1(0.18,0.84,v)/ca)
}
FUNCTION bet(v (mV), ca (mM)) (1/ms) { :callable from hoc
bet = 0.28/(1 + ca/exp1(0.011,1,v))
}
FUNCTION exp1(k (mM), d, v (mV)) (mM) { :callable from hoc
exp1 = k*exp(-2*d*FARADAY*v/R/(273.15 + 35))
}
PROCEDURE rate(v (mV), ca (mM)) { :callable from hoc
LOCAL a
a = alp(v,ca)
tau = 1/(a + bet(v, ca))
oinf = a*tau
}