-
Notifications
You must be signed in to change notification settings - Fork 2
/
HCN1.mod
67 lines (55 loc) · 878 Bytes
/
HCN1.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
: $Id: HCN1.mod,v 1.4 2013/01/02 15:01:55 samn Exp $
TITLE HCN1
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
NEURON {
SUFFIX HCN1
NONSPECIFIC_CURRENT ih
RANGE gbar, g, e, v50, htau, hinf
RANGE gfactor, htaufactor
}
PARAMETER {
celsius (degC)
gbar = 0.0001 (mho/cm2)
e= -30 (mV)
v50= -73 (mV)
gfactor = 1
htaufactor = 4.78
}
STATE {
h
}
ASSIGNED {
ih (mA/cm2)
hinf
htau (ms)
v (mV)
g (mho/cm2)
}
PROCEDURE giassign () {
: ih=g*h*(v-e)*gfactor
g = gbar*h*gfactor
ih = g*(v-e)
}
BREAKPOINT {
SOLVE states METHOD cnexp
giassign()
}
DERIVATIVE states {
rates(v)
h'= (hinf- h)/ htau
}
INITIAL {
rates(v)
h = hinf
giassign()
}
PROCEDURE rates(v (mV)) {
UNITSOFF
: HCN1
hinf = 1/(1+exp(0.151*(v-v50)))
htau = htaufactor*exp((0.033*(v+75)))/(0.011*(1+exp(0.083*(v+75))))
UNITSON
}