generated from min-seo-kim/CA1_Cutsuridis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhNa.mod
80 lines (60 loc) · 1.83 KB
/
hNa.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
TITLE H-current that uses Na ions (Poirazi)
NEURON {
SUFFIX hNa
RANGE gbar,vhalf, K, taun, ninf, g
USEION na READ ena WRITE ina
: NONSPECIFIC_CURRENT i
}
UNITS {
(um) = (micrometer)
(mA) = (milliamp)
(uA) = (microamp)
(mV) = (millivolt)
(pmho) = (picomho)
(mmho) = (millimho)
}
INDEPENDENT {t FROM 0 TO 1 WITH 100 (ms)}
PARAMETER { : parameters that can be entered when function is called in cell-setup
dt (ms)
v (mV)
ena = 50 (mV)
eh = -10 (mV)
K = 8.5 (mV)
: gbar = 0.1 (mmho/cm2) : suggested somatic value, the dendritic value is ~6x higher
gbar = 0 (mho/cm2) : initialize conductance to zero
vhalf = -90 (mV) : half potential
}
STATE { : the unknown parameters to be solved in the DEs
n
}
ASSIGNED { : parameters needed to solve DE
ina (mA/cm2)
ninf
taun (ms)
g
}
INITIAL { : initialize the following parameter using states()
states()
n = ninf
g = gbar*n
: ina = g*(v-ena)*(0.001) :0.001 used to fix units of g (given in mho/cm2 to mmho/cm2)
ina = g*(v-eh)*0.001 :0.001 used to fix units of g (given in mmho/cm2 to mho/cm2)
}
BREAKPOINT {
SOLVE h METHOD derivimplicit
g = gbar*n
: ina = g*(v-ena)*(0.001) :0.001 used to fix units of g (given in mmho/cm2 to mho/cm2)
ina = g*(v-eh)*0.001 :0.001 used to fix units of g (given in mmho/cm2 to mho/cm2)
}
DERIVATIVE h {
states()
n' = (ninf - n)/taun
}
PROCEDURE states() {
if (v > -30) {
taun = 1
} else {
taun = 2*(1/(exp((v+145)/-17.5)+exp((v+16.8)/16.5)) + 5) :h activation tau
}
ninf = 1 - (1 / (1 + exp((vhalf - v)/K))) :steady state value
}