forked from ModelDBRepository/183300
-
Notifications
You must be signed in to change notification settings - Fork 0
/
KCa.mod
85 lines (70 loc) · 1.56 KB
/
KCa.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
TITLE Calcium dependent potassium channel
: Implemented in Rubin and Cleland, J. Neurophysiol 2006
: KCa channel with parameters from US Bhalla and JM Bower,
: J. Neurophysiol. 69:1948-1983 (1993)
: Adapted from /usr/local/neuron/demo/release/nachan.mod - squid
: by Andrew Davison, The Babraham Institute.
: 24-08-98
: Modified by GL !!!
NEURON {
SUFFIX Ikca
USEION k READ ek WRITE ik
USEION ca READ cai
RANGE gkbar, ik, Yconcdep, Yvdep
GLOBAL Yalpha, Ybeta
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
(molar) = (1/liter)
(mM) = (millimolar)
}
INDEPENDENT {t FROM 0 TO 1 WITH 1 (ms)}
PARAMETER {
v (mV)
dt (ms)
gkbar= 0.120 (mho/cm2) <0,1e9>
ek = -80 (mV)
Ybeta = 0.05 (/ms)
cai (mM) := 1e-5 (mM)
}
STATE {
Y
}
ASSIGNED {
ik (mA/cm2)
Yalpha (/ms)
Yvdep
Yconcdep (/ms)
}
INITIAL {
rate(v,cai)
Y = Yalpha/(Yalpha + Ybeta)
}
BREAKPOINT {
SOLVE state METHOD cnexp
ik = gkbar*Y*(v - ek)
}
DERIVATIVE state {
rate(v,cai)
Y' = Yalpha*(1-Y) - Ybeta*Y
}
PROCEDURE rate(v(mV),cai(mM)) {
vdep(v)
concdep(cai)
Yalpha = Yvdep*Yconcdep
}
PROCEDURE vdep(v(mV)) {
TABLE Yvdep FROM -100 TO 100 WITH 100
Yvdep = exp((v*1(/mV)-65)/27) : exp((v*1(/mV)+70)/27)
}
PROCEDURE concdep(cai(mM)) {
TABLE Yconcdep FROM 0 TO 50 WITH 2000
if ( fabs(cai-0.015) < 1e-5) {
Yconcdep = 500(/ms)/(1/0.0013 + 0.5*(0.015-cai)/0.0013^2 )
:Yconcdep = 500(/ms)*( 0.015-cai*1(/mM) )/( exp((0.015-cai*1(/mM))/0.0013) -1 )
} else {
Yconcdep = 500(/ms)*( 0.015-cai*1(/mM) )/( exp((0.015-cai*1(/mM))/0.0013) -1 )
:Yconcdep = 500(/ms)*0.005/( exp(0.005/0.0013) -1 )
}
}