-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkir_new.mod
68 lines (49 loc) · 1.04 KB
/
kir_new.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
TITLE Kir potassium current for nucleus accumbens (IRK1 = Kir 2.1 - see Mermelstein)
COMMENT
implemented by HS
ENDCOMMENT
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
NEURON {
SUFFIX kir
USEION k READ ek WRITE ik
RANGE gkbar, ik, mvhalf, mslope, mshift, qfact
}
PARAMETER {
gkbar = 0.00015 (mho/cm2)
mvhalf = -52 (mV)
mslope = 13 (mV)
mshift = 30 (mV)
qfact = 0.5
v (mV)
ek (mV)
}
ASSIGNED {
ik (mA/cm2)
gk (S/cm2)
minf (1)
}
STATE { m }
BREAKPOINT {
SOLVE state METHOD cnexp
gk = gkbar * m
ik = gk * ( v - ek )
}
INITIAL {
settables(v)
m = minf
}
FUNCTION_TABLE taumkir(v(mV)) (ms)
DERIVATIVE state {
settables(v)
m' = (minf - m) / ( taumkir(v)/qfact )
}
UNITSOFF
PROCEDURE settables(v) {
TABLE minf DEPEND mvhalf, mshift, mslope
FROM -200 TO 200 WITH 201
minf = 1 / ( 1 + exp( (v - mvhalf + mshift) / mslope) )
}
UNITSON