-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnattxs.mod
89 lines (71 loc) · 1.48 KB
/
nattxs.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
: nattxs.mod is a transient ttx-sensitive Na+ current from
: Baker 2005, parameter assignments and formula's from page 854
NEURON {
SUFFIX nattxs
NONSPECIFIC_CURRENT i
RANGE gbar, ena
}
UNITS {
(S) = (siemens)
(mV) = (millivolts)
(mA) = (milliamp)
}
PARAMETER {
gbar = 0.001699 : =18e-9/(100e-12*1e8) (S/cm2) : 18(nS)/100(um)^2
ena=60 (mV)
A_am = 17.235 (/ms) : A for alpha m
B_am = 7.58 (mV)
C_am = -11.47 (mV)
A_ah = 0.23688 (/ms) : A for alpha h
B_ah = 115 (mV)
C_ah = 46.33 (mV)
A_bm = 17.235 (/ms) : A for beta m
B_bm = 66.2 (mV)
C_bm = 19.8 (mV)
A_bh = 10.8 (/ms) : A for beta h
B_bh = -11.8 (mV)
C_bh = -11.998 (mV)
}
ASSIGNED {
v (mV) : NEURON provides this
i (mA/cm2)
g (S/cm2)
tau_h (ms)
tau_m (ms)
minf
hinf
}
STATE { m h }
BREAKPOINT {
SOLVE states METHOD cnexp
g = gbar * m^3 * h
i = g * (v-ena)
}
INITIAL {
: assume that equilibrium has been reached
m = alpham(v)/(alpham(v)+betam(v))
h = alphah(v)/(alphah(v)+betah(v))
}
DERIVATIVE states {
rates(v)
m' = (minf - m)/tau_m
h' = (hinf - h)/tau_h
}
FUNCTION alpham(Vm (mV)) (/ms) {
alpham=A_am/(1+exp((Vm+B_am)/C_am))
}
FUNCTION alphah(Vm (mV)) (/ms) {
alphah=A_ah*exp(-(Vm+B_ah)/C_ah)
}
FUNCTION betam(Vm (mV)) (/ms) {
betam=A_bm/(1+exp((Vm+B_bm)/C_bm))
}
FUNCTION betah(Vm (mV)) (/ms) {
betah=A_bh/(1+exp((Vm+B_bh)/C_bh))
}
FUNCTION rates(Vm (mV)) (/ms) {
tau_m = 1.0 / (alpham(Vm) + betam(Vm))
minf = alpham(Vm) * tau_m
tau_h = 1.0 / (alphah(Vm) + betah(Vm))
hinf = alphah(Vm) * tau_h
}