-
Notifications
You must be signed in to change notification settings - Fork 1
/
L_Ca_inact.mod
95 lines (77 loc) · 1.46 KB
/
L_Ca_inact.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
TITLE Motoneuron L-type Calcium channels
:
: The parameters for this current come from V. Booth et al. J Neurophysiol 78:3371-3385, 1997
: Iterative equations
: Modified by RP to provide calcium to a separate pool (caL)and to have adjustable equilibrium
: potential vca
NEURON {
SUFFIX L_Ca_inact
USEION caL READ ecaL WRITE icaL VALENCE 2
RANGE gcabar,icaL,m_inf,m,h
GLOBAL vca,theta_m,kappa_m,theta_h,kappa_h
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
PARAMETER {
gcabar = 0.0003 (mho/cm2)
ecaL (mV) : eca can't be set here, only in hoc
: celcius = 36 (degC)
dt (ms)
tau_m = 20 (ms)
v (mV)
vca=80 (mV)
theta_m = -30 (mV)
kappa_m = -6 (-mV)
tau_h = 1500 (ms)
theta_h = 14 (mV)
kappa_h = 4 (-mV)
}
STATE {
m
h
}
ASSIGNED {
icaL (mA/cm2)
m_inf
h_inf
tadj
}
BREAKPOINT {
SOLVE states METHOD cnexp
icaL = gcabar * m *h* (v - vca) :I have tried this as m*m also
}
DERIVATIVE states {
evaluate_fct(v)
m' = (m_inf - m) / tau_m
h' = (h_inf - h) / tau_h
}
UNITSOFF
INITIAL {
:
: Q10 was assumed to be 3 for both currents
:
: tadj = 3.0 ^ ((celsius-36)/ 10 )
evaluate_fct(v)
m = m_inf
h = h_inf
}
PROCEDURE evaluate_fct(v(mV)) {
m_inf = 1 / (1 + (Exp((v - theta_m)/ kappa_m))): / tadj
h_inf = 1 / (1 + (Exp((v - theta_h)/ kappa_h))): / tadj
}
FUNCTION vtrap(x,y) {
if (fabs(x/y) < 1e-6) {
vtrap = y*(1 - x/y/2)
}else{
vtrap = x/(Exp(x/y)-1)
}
}
FUNCTION Exp(x) {
if (x < -100) {
Exp = 0
}else{
Exp = exp(x)
}
}