TITLE K-DR channel
: from Klee Ficker and Heinemann
: modified to account for Dax et al.
: M.Migliore 1997
UNITS {
(mA) = (milliamp)
(mV) = (millivolt)
}
PARAMETER {
tone_period = 4000
DA_period = 500
DA_start = 100 : D1R(Low Affinity) Dopamine Effect after 6 conditioning trials (15*4000) = 60000)
DA_stop = 600
DA_ext1 = 196000
DA_ext2 = 212000
DA_t1 = 0.8 : 0.9 : 1 : 1 : 0.9 : Amount(%) of DA effect- negative value decreases AP threshold / positive value increases threshold of AP
DA_period2 = 100
DA_start2 = 36000 : shock Dopamine Effect during shock after 1 conditioning trial
v (mV)
ek (mV) : must be explicitely def. in hoc
celsius (degC)
gkdrbar=.003 (mho/cm2)
vhalfn=13 (mV)
a0n=0.02 (/ms)
zetan=-3 (1)
gmn=0.7 (1)
nmax=2 (1)
q10=1
}
NEURON {
SUFFIX kdrDA
USEION k READ ek WRITE ik
RANGE gkdr,gkdrbar
GLOBAL ninf,taun
}
STATE {
n
}
ASSIGNED {
ik (mA/cm2)
ninf
gkdr
taun
}
BREAKPOINT {
SOLVE states METHOD cnexp
gkdr = gkdrbar*n
ik = gkdr*(v-ek)*DA1(t)
}
INITIAL {
rates(v)
n=ninf
}
FUNCTION alpn(v(mV)) {
alpn = exp(1.e-3*zetan*(v-vhalfn)*9.648e4/(8.315*(273.16+celsius)))
}
FUNCTION betn(v(mV)) {
betn = exp(1.e-3*zetan*gmn*(v-vhalfn)*9.648e4/(8.315*(273.16+celsius)))
}
DERIVATIVE states { : exact when v held constant; integrates over dt step
rates(v)
n' = (ninf - n)/taun
}
PROCEDURE rates(v (mV)) { :callable from hoc
LOCAL a,qt
qt=q10^((celsius-24)/10)
a = alpn(v)
ninf = 1/(1+a)
taun = betn(v)/(qt*a0n*(1+a))
if (taun<nmax) {taun=nmax}
}
FUNCTION DA1(t) {
if (t >= DA_start && t <= DA_stop){DA1 = DA_t1} : During conditioning
else {DA1 = 1}
}