-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkm.mod
97 lines (73 loc) · 1.8 KB
/
km.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
90
91
92
93
94
95
96
: $Id: km.mod,v 1.5 2004/06/08 21:07:12 billl Exp $
COMMENT
26 Ago 2002 Modification of original channel to allow variable time step and to correct an initialization error.
Done by Michael Hines(michael.hines@yale.e) and Ruggero Scorcioni(rscorcio@gmu.edu) at EU Advance Course in Computational Neuroscience. Obidos, Portugal
km.mod
Potassium channel, Hodgkin-Huxley style kinetics
Based on I-M (muscarinic K channel)
Slow, noninactivating
Author: Zach Mainen, Salk Institute, 1995, zach@salk.edu
ENDCOMMENT
NEURON {
SUFFIX km
USEION k READ ek WRITE ik
RANGE n, gk, gmax, i
RANGE ninf, ntau, tadj
GLOBAL Ra, Rb
GLOBAL q10, temp, vmin, vmax
}
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
(pS) = (picosiemens)
(um) = (micron)
}
PARAMETER {
gmax = 10 (pS/um2) : 0.03 mho/cm2
v (mV)
tha = -30 (mV) : v 1/2 for inf
qa = 9 (mV) : inf slope
Ra = 0.001 (/ms) : max act rate (slow)
Rb = 0.001 (/ms) : max deact rate (slow)
dt (ms)
celsius (degC)
temp = 23 (degC) : original temp
q10 = 2.3 : temperature sensitivity
vmin = -120 (mV)
vmax = 100 (mV)
}
ASSIGNED {
a (/ms)
b (/ms)
i (mA/cm2)
ik (mA/cm2)
gk (pS/um2)
ek (mV)
ninf
ntau (ms)
tadj
}
STATE { n }
INITIAL {
tadj = q10^((celsius - temp)/10)
rates(v)
n = ninf
}
BREAKPOINT {
SOLVE states METHOD cnexp
gk = tadj*gmax*n
i = (1e-4) * gk * (v - ek)
ik = i
}
LOCAL nexp
DERIVATIVE states { :Computes state variable n
rates(v) : at the current v and dt.
n' = (ninf-n)/ntau
}
PROCEDURE rates(v) { :Computes rate and other constants at current v.
:Call once from HOC to initialize inf at resting v.
a = Ra * (v - tha) / (1 - exp(-(v - tha)/qa))
b = -Rb * (v - tha) / (1 - exp((v - tha)/qa))
ntau = 1/tadj/(a+b)
ninf = a/(a+b)
}