forked from ModelDBRepository/183300
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CaT.mod
67 lines (55 loc) · 950 Bytes
/
CaT.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
TITLE HH T-type calcium channel
NEURON {
SUFFIX Icat
USEION ca WRITE ica
RANGE gbar, ica, g, h, m, sha, shi, k_tauH
GLOBAL minf, hinf, mtau, htau
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
PARAMETER {
v (mV)
gbar = 0.036 (mho/cm2) <0,1e9>
e = 100 (mV)
sha = 0
shi = 0
k_tauH = 1
}
STATE {
m
h
g (mho/cm2)
}
ASSIGNED {
ica (mA/cm2)
minf
hinf
mtau (ms)
htau (ms)
}
INITIAL {
rates(v)
m = minf
h = hinf
}
BREAKPOINT {
SOLVE states METHOD cnexp
g = gbar*m*m*h
ica = g*(v - e)
}
DERIVATIVE states {
: computes state variables m and h at present v, t
rates(v)
m' = (minf - m)/mtau
h' = (hinf - h)/htau
}
PROCEDURE rates(v(mV)) {
UNITSOFF
mtau = 1.5 + 3.5/(exp(-(v+30-sha)/15) + exp((v+30-sha)/(15)))
minf = 1/(1+exp(-(v+44-sha)/5.5))
htau = 10 + 40/(exp(-(v+50-shi)/15) + exp((v+50-shi)/(15)))
hinf = k_tauH*1/(1+exp((v+70-shi)/(4)))
UNITSON
}