-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnav1p9.mod
90 lines (72 loc) · 1.6 KB
/
nav1p9.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
: nav1p9.mod is the NaV1.9 Na+ current from
: Baker 2005, parameter assignments and formula's from page 854
NEURON {
SUFFIX nav1p9
NONSPECIFIC_CURRENT i
RANGE gbar, ena, ActShift
}
UNITS {
(S) = (siemens)
(mV) = (millivolts)
(mA) = (milliamp)
}
PARAMETER {
gbar = 5e-005 : =100e-9/(100e-12*1e8) (S/cm2) : 100(nS)/100(um)^2
ena=60 (mV)
ActShift
A_am9 = 1.548 (/ms) : A for alpha m(9 etc ...)
B_am9 = -11.01 (mV)
C_am9 = -14.871 (mV)
A_ah9 = 0.2574 (/ms) : A for alpha h
B_ah9 = 63.264 (mV)
C_ah9 = 3.7193 (mV)
A_bm9 = 8.685 (/ms) : A for beta m
B_bm9 = 112.4 (mV) : table has minus sign typo (Baker, personal comm.)
C_bm9 = 22.9 (mV)
A_bh9 = 0.53984 (/ms) : A for beta h
B_bh9 = 0.27853 (mV)
C_bh9 = -9.0933 (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 * 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_am9/(1+exp((Vm+B_am9 + ActShift)/C_am9))
}
FUNCTION alphah(Vm (mV)) (/ms) {
alphah=A_ah9/(1+exp((Vm+B_ah9)/C_ah9))
}
FUNCTION betam(Vm (mV)) (/ms) {
betam=A_bm9/(1+exp((Vm+B_bm9 + ActShift)/C_bm9))
}
FUNCTION betah(Vm (mV)) (/ms) {
betah=A_bh9/(1+exp((Vm+B_bh9)/C_bh9))
}
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
}