-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathKS.mod
70 lines (56 loc) · 1023 Bytes
/
KS.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
TITLE Slow inactivating current Iks
COMMENT
Slow inactivating current: Wang 1993 Neuroreport
ENDCOMMENT
:INDEPENDENT { t FROM 0 TO 1 WITH 1 (ms) }
UNITS {
(mV) = (millivolt)
(mA) = (milliamp)
}
NEURON {
SUFFIX IKs
USEION k READ ek WRITE ik
RANGE gbar, ik, tauM, kh
}
PARAMETER {
gbar = 0.0 (mho/cm2)
ek = -70 (mV)
kh = 1.5 : 1.5 !!!
sha = 0 (mV)
shi = -3 (mV) : -3 !!!
tauM = 10 (ms) : 10
}
ASSIGNED {
v (mV)
ik (mA/cm2)
minf
mtau (ms)
hinf
htau (ms)
}
STATE {
m h
}
INITIAL {
Rates(v)
m = minf
h = hinf
}
BREAKPOINT {
SOLVE states METHOD cnexp
ik = gbar * m * h * ( v - ek )
}
DERIVATIVE states {
Rates(v)
m' = ( minf - m ) / mtau
h' = ( hinf - h ) / htau
}
UNITSOFF
PROCEDURE Rates(v) {
:TABLE minf, mtau, hinf, htau FROM -120 TO 40 WITH 641
minf = 1 / ( 1 + exp( -(v + 34 - sha) / 6.5 ) )
mtau = tauM
hinf = 1 / ( 1 + exp((v + 65 - shi) / 6.6 ))
htau = 200 + kh*220/( 1 + exp( -(v + 71.6) / 6.85 ))
}
UNITSON