-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnap.mod
78 lines (55 loc) · 1.1 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
68
69
70
71
72
73
74
75
76
77
78
TITLE NaP - persistent sodium current for nucleus accumbens
COMMENT
Implemented by HS
ENDCOMMENT
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
NEURON {
SUFFIX nap
USEION na READ ena WRITE ina
RANGE gnabar, ina, qfact
}
PARAMETER {
gnabar = 4e-05 (mho/cm2)
qfact = 3
v (mV)
ena (mV)
}
ASSIGNED {
ina (mA/cm2)
gna (mho/cm2)
minf (1)
hinf (1)
mtau (ms)
}
STATE { m h }
BREAKPOINT {
SOLVE states METHOD cnexp
gna = gnabar * m * h
ina = gna * ( v - ena )
}
INITIAL {
settables(v)
m = minf
h = hinf
}
FUNCTION_TABLE tauhnap(v(mV)) (ms)
DERIVATIVE states {
settables(v)
m' = (minf - m) / mtau
h' = (hinf - h) / (tauhnap(v)/qfact)
}
UNITSOFF
PROCEDURE settables(v) {
TABLE minf, hinf, mtau FROM -120 TO 40 WITH 641
minf = 1 / (1 + exp( (v +52.6 +10) / (-4.6)))
hinf = 1 / (1 + exp( (v +48.8 +10) / 10))
if (v < -40) {
mtau = 0.025 + 0.14 * exp( (v +40 ) / 10)
} else {
mtau = 0.02 + 0.145 * exp( (-v -40) / 10)
}
}
UNITSON