-
Notifications
You must be signed in to change notification settings - Fork 1
/
ch_KvM.mod
84 lines (69 loc) · 1.13 KB
/
ch_KvM.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
TITLE CA1 KM channel from Mala Shah
: M. Migliore June 2006
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
PARAMETER {
v (mV)
ek
celsius (degC)
gbar=.0001 (mho/cm2)
vhalfl=-40 (mV)
kl=-10
vhalft=-42 (mV)
a0t=0.009 (/ms)
zetat=7 (1)
gmt=.4 (1)
q10=5
b0=120
st=1
}
NEURON {
THREADSAFE SUFFIX ch_KvM
USEION k READ ek WRITE ik
RANGE gbar,ik, mye, myi
GLOBAL inf, tau
}
STATE {
m
}
ASSIGNED {
ik (mA/cm2)
myi (mA/cm2)
mye (mV)
inf
tau
taua
taub
}
INITIAL {
rate(v)
m=inf
}
BREAKPOINT {
SOLVE state METHOD cnexp
ik = gbar*m^st*(v-ek)
mye = ek
myi = ik
}
FUNCTION alpt(v(mV)) {
alpt = exp(0.0378*zetat*(v-vhalft))
}
FUNCTION bett(v(mV)) {
bett = exp(0.0378*zetat*gmt*(v-vhalft))
}
DERIVATIVE state {
rate(v)
: if (m<inf) {tau=taua} else {tau=taub}
m' = (inf - m)/tau
}
PROCEDURE rate(v (mV)) { :callable from hoc
LOCAL a,qt
qt=q10^((celsius-35)/10)
inf = (1/(1 + exp((v-vhalfl)/kl)))
a = alpt(v)
tau = b0 + bett(v)/(a0t*(1+a))
: taua = 50
: taub = 300
}