I have two problems:
First,
I want to model a high voltage activated calcium channel CaN with ca current of the form:
ica = gmax*q^2*u*ghk(v,cai,cao) where q is the activation and u the inactivation states and ghk is the GHK current equation with the form:
I = (V/Cao)*[(Cai - Caoexp(-zFV/(RT)))/(1 - exp(-zFV/(RT)))]
where Cai ,Cao are the intracellular and extracellular calcium concentrations respectively. So I made the following code based on the camchan.mod of nrn's demos.
Code: Select all
UNITS {
(mV) = (millivolt)
(mA) = (milliamp)
}
NEURON {
SUFFIX CaN
USEION ca READ eca,cai,cao WRITE ica
RANGE gmax,ica
}
UNITS {
:FARADAY = 96520 (coul)
:R = 8.3134 (joule/degC)
FARADAY = (faraday) (coulomb)
R = (k-mole) (joule/degC)
}
PARAMETER {
gmax = 1.15e-3 (mho/cm2)
}
ASSIGNED {
celsius (degC)
v (mV)
eca (mV)
ica (mA/cm2)
cai (mM)
cao (mM)
qinf
qtau(ms)
uinf
utau(ms)
}
STATE {
q u
}
INITIAL {
q=qinf
}
BREAKPOINT {
SOLVE states METHOD cnexp
ica = gmax*q^2*u*ghk(v,cai,cao)
}
DERIVATIVE states { : exact when v held constant
rate(v*1(/mV))
q'=(qinf-q)/qtau
u'=(uinf-u)/utau
}
FUNCTION ghk(v(mV), cai(mM), cao(mM)) (.001 coul/cm3) {
LOCAL z
z = 2*FARADAY*v/(R*(celsius+273.15))
ghk=(v/cao)*((cai-cao*exp(-z))/(1-exp(-z)))
}
UNITSOFF
PROCEDURE rate(v) { LOCAL a, b :rest = -70
TABLE qinf, qtau,uinf,utau DEPEND celsius FROM -100 TO 100 with 200
qinf=1/(1+exp((-24.6-v)/11.3))
qtau=1.25/cosh(-0.03(v+37.1))
uinf=1/(1+exp((v+60)/12.5))
utau=98+cosh(0.021(10.1-v))
}
UNITSON
Code: Select all
FUNCTION ghk(v(mV), ci(mM), co(mM)) (.001 coul/cm3) {
LOCAL z, eci, eco
z = (1e-3)*2*FARADAY*v/(R*(celsius+273.15))
eco = co*efun(z)
eci = ci*efun(-z)
:high cao charge moves inward
:negative potential charge moves inward
ghk = (.001)*2*FARADAY*(eci - eco)
}
FUNCTION efun(z) {
if (fabs(z) < 1e-4) {
efun = 1 - z/2
}else{
efun = z/(exp(z) - 1)
}
}
and the second question:
what changes in the code if the DERIVATIVE states depend on the intracellular calcium concentration Cai and not on potential V?
rates(cai):
q'(cai)=[qinf(cai)-q(cai)]/qtau(cai)
where [cai] is modelled as:
[cai] ' =(Ical+Ican+IcaT)*c*(cai0-[cai])/tca
c :is the conversion constant
tca:the time constant of the decay
cai0:the basal intracellular calcium level
and Ical,Ican,IcaT three different calcium currents
thanks a lot,
George.