-
Notifications
You must be signed in to change notification settings - Fork 0
/
kdrRL.mod
88 lines (71 loc) · 1.39 KB
/
kdrRL.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
TITLE Potassium Delayed Rectifier Channel
COMMENT
Comments from Original Implementation:
This channel is a Voltage Dependent Potassium Channel
and will create a current (ik) based on the voltage
Simplied by RKP 3/22/07 to exlude references to different
parts of Bob's split dendrite model
Model Reference:
Powers, R.K. and Heckman, C.J., 2017.
"Synaptic control of the shape of the motoneuron
pool input-output function."
Journal of neurophysiology, 117(3), pp.1171-1184.
Original Code Link:
https://senselab.med.yale.edu/ModelDB/showmodel?model=239582
ENDCOMMENT
UNITS {
(mV) = (millivolt)
(mA) = (milliamp)
(S) = (siemens)
}
NEURON {
SUFFIX kdrRL
USEION k READ ek WRITE ik
RANGE ik, g, gMax
RANGE tmin
RANGE taumax
RANGE mVh
GLOBAL mslp, tVh, tslp
}
PARAMETER {
gMax = 0.1 (S/cm2)
mVh = -25 (mV)
mslp = 20 (mV)
tVh = -39 (mV)
tslp = 5.5 (mV)
tmin = 1.4 (ms)
taumax = 11.9(ms)
}
ASSIGNED {
v (mV)
ek (mV)
ik (mA/cm2)
g (S/cm2)
mtau (ms)
minf
}
STATE {
m
}
INITIAL {
rate(v)
m = minf
}
BREAKPOINT {
SOLVE state METHOD cnexp
g = gMax * m^4
ik = g*(v - ek)
}
DERIVATIVE state {
rate(v)
m' = (minf - m)/mtau
}
PROCEDURE rate(v (mV)) {
LOCAL b, f TABLE minf,mtau
DEPEND mVh,mslp,tVh,tslp,tmin,taumax
FROM -100 TO 100 WITH 200
b = exp((v - tVh)/tslp)
f = (1 + b)^2
minf = 1/(1+exp(-(v-mVh)/mslp))
mtau = tmin + taumax*b/f
}