Trouble with creating ions
Posted: Thu Mar 20, 2014 12:37 pm
I've created a few new ions using ion_style, but it seems that they're not working correctly.
However, when I try to set the initial concentrations (in a set parameters hoc file that is called right after I make the ions), it doesn't work. It uses ion concentrations specified in the mod files instead.
My setParameters.hoc file says:
Am I naming the ions wrong? I did this according to the specifications in http://www.neuron.yale.edu/neuron/stati ... #ion_style
Code: Select all
// register the new ions with NEURON
cltype = ion_register("cl",-1)
hco3type = ion_register("hco3",-1)
catype = ion_register("ca",2)
forall {
kstyle = ion_style("k_ion",1,2,1,0,1)
nastyle = ion_style("na_ion",1,2,1,0,1)
clstyle = ion_style("cl_ion",3,2,1,1,1)
hco3style = ion_style("hco3_ion",1,2,1,0,1)
castyle = ion_style("ca_ion",3,2,1,0,1)
}
My setParameters.hoc file says:
Code: Select all
// ions from makeIons.hoc
ki0_k_ion = 120 // mM
ko0_k_ion = 3 // mM
nai0_na_ion = 5 // mM
nao0_na_ion = 120 // mM
cli0_cl_ion = 6 // mM
clo0_cl_ion = 125 // mM
hco3i0_hco3_ion = 10 // mM
hco3o0_hco3_ion = 25 // mM
cai0_ca_ion = 45.5E-6 // mM = 32-59 nM (as given in Maravall, et al. 2000, J Biophys.)
cao0_ca_ion = 0.546 // mM