-
Notifications
You must be signed in to change notification settings - Fork 1
/
nap.mod
67 lines (54 loc) · 1.08 KB
/
nap.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
: nap.mod is a persistent Na+ current from
: Baker 2005, parameter assignments and formula's from page 854
NEURON {
SUFFIX nap
NONSPECIFIC_CURRENT i
RANGE gbar, ena
}
UNITS {
(S) = (siemens)
(mV) = (millivolts)
(mA) = (milliamp)
}
PARAMETER {
gbar = 0.00005
ena=60(mV)
A_amp = 17.235 (/ms) : A for alpha m persis
B_amp = 27.58 (mV)
C_amp = -11.47 (mV)
A_bmp = 17.235 (/ms) : A for beta m persis
B_bmp = 86.2 (mV)
C_bmp = 19.8 (mV)
}
ASSIGNED {
v (mV) : NEURON provides this
i (mA/cm2)
g (S/cm2)
tau_m (ms)
minf
hinf
}
STATE { m h }
BREAKPOINT {
SOLVE states METHOD cnexp
g = gbar * m^3
i = g * (v-ena)
}
INITIAL {
: assume that equilibrium has been reached
m = alpham(v)/(alpham(v)+betam(v))
}
DERIVATIVE states {
rates(v)
m' = (minf - m)/tau_m
}
FUNCTION alpham(Vm (mV)) (/ms) {
alpham=A_amp/(1+exp((Vm+B_amp)/C_amp))
}
FUNCTION betam(Vm (mV)) (/ms) {
betam=A_bmp/(1+exp((Vm+B_bmp)/C_bmp))
}
FUNCTION rates(Vm (mV)) (/ms) {
tau_m = 1.0 / (alpham(Vm) + betam(Vm))
minf = alpham(Vm) * tau_m
}