TITLE K-A channel from Klee Ficker and Heinemann : modified by Brannon and Yiota Poirazi (poirazi@LNC.usc.edu) : to account for Hoffman et al 1997 proximal region kinetics : used only in soma and sections located < 100 microns from the soma NEURON { SUFFIX kap USEION k READ ek WRITE ik RANGE gkabar,gka, ik,sh GLOBAL ninf,linf,taul,taun,lmin } UNITS { (mA) = (milliamp) (mV) = (millivolt) } PARAMETER { :parameters that can be entered when function is called in cell-setup sh=0 gkabar = 0 (mho/cm2) :initialized conductance vhalfn = 11 (mV) :activation half-potential vhalfl = -56 (mV) :inactivation half-potential a0n = 0.05 (/ms) :parameters used zetan = -1.5 (1) :in calculation of zetal = 3 (1) :steady state values gmn = 0.55 (1) :and time constants gml = 1 (1) lmin = 2 (ms) nmin = 0.1 (ms) pw = -1 (1) tq = -40 (mV) qq = 5 (mV) q10 = 5 :temperature sensitivity } ASSIGNED { :parameters needed to solve DE v (mV) ek (mV) :K reversal potential (reset in cell-setup.hoc) celsius (degC) ik (mA/cm2) ninf linf taul (ms) taun (ms) gka } STATE { :the unknown parameters to be solved in the DEs n l } LOCAL qt INITIAL { :initialize the following parameter using rates() rates(v) n = ninf l = linf gka = gkabar*n*l ik = gka*(v-ek) } BREAKPOINT { SOLVE states METHOD cnexp : ik = gkabar*n*l*(v+70) gka = gkabar*n*l ik = gka*(v-ek) } DERIVATIVE states { rates(v) n' = (ninf - n)/taun l' = (linf - l)/taul } PROCEDURE rates(v (mV)) { :callable from hoc LOCAL a,qt qt = q10^((celsius-24)/10) : temprature adjastment factor a = alpn(v) ninf = 1/(1 + a) : activation variable steady state value taun = betn(v)/(qt*a0n*(1+a)) : activation variable time constant if (taun