-
Notifications
You must be signed in to change notification settings - Fork 1
/
calH.mod
104 lines (76 loc) · 2.07 KB
/
calH.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
TITLE Ca L-type channel with high treshold of activation
: inserted in distal dendrites to account for distally
: restricted initiation of Ca++ spikes
: uses channel conductance (not permeability)
: written by Yiota Poirazi, 1/8/00 [email protected]
NEURON {
SUFFIX calH
USEION ca READ eca WRITE ica
RANGE gcalbar, m, h
RANGE inf, fac, tau
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
INDEPENDENT {t FROM 0 TO 1 WITH 1 (ms)}
PARAMETER { : parameters that can be entered when function is called in cell-setup
v (mV)
celsius = 34 (degC)
dt (ms)
gcalbar = 0 (mho/cm2) : initialized conductance
eca = 140 (mV) : Ca++ reversal potential
}
STATE { m h } : unknown activation and inactivation parameters to be solved in the DEs
ASSIGNED { : parameters needed to solve DE
ica (mA/cm2)
inf[2]
fac[2]
tau[2]
}
BREAKPOINT {
SOLVE states
ica = gcalbar*m*m*m*h*(v - eca)
}
INITIAL {
m = 0 : initial activation parameter value
h = 1 : initial inactivation parameter value
states()
ica = gcalbar*m*m*m*h*(v - eca) : initial Ca++ current value
}
PROCEDURE calcg() {
mhn(v*1(/mV))
m = m + fac[0]*(inf[0] - m)
h = h + fac[1]*(inf[1] - h)
}
PROCEDURE states() { : exact when v held constant
calcg()
VERBATIM
return 0;
ENDVERBATIM
}
FUNCTION varss(v, i) {
if (i==0) {
varss = 1 / (1 + exp((v+37)/(-1))) : Ca activation
}
else if (i==1) {
varss = 1 / (1 + exp((v+41)/(0.5))) : Ca inactivation
}
}
FUNCTION vartau(v, i) {
if (i==0) {
vartau = 3.6 : activation variable time constant
}
else if (i==1) {
: vartau = 25 : inactivation variable time constant
vartau = 29 : inactivation variable time constant
}
}
PROCEDURE mhn(v) {LOCAL a, b :rest = -70
: TABLE inf, fac DEPEND dt, celsius FROM -100 TO 100 WITH 200
FROM i=0 TO 1 {
tau[i] = vartau(v,i)
inf[i] = varss(v,i)
fac[i] = (1 - exp(-dt/tau[i]))
}
}