Sharing variables between NMODL files without using ions
Posted: Wed Feb 26, 2014 4:40 pm
Hi all,
Is there any way to pass variables between NMODL files without resorting to the use of ions? I ask because we are working on a model of chloride transport wherein we have two NMODL files: (1) a file for calculating the percentage of potassium chloride cotransporter proteins (KCC2) in the membrane (which is a dynamic variable) and (2) a file for chloride transport and diffusion. (We had to separate these two functions into different .mod files because the change in the chloride transporter is handled by a DERIVATIVE block, while the transport and chloride diffusion is handled by a KINETIC block, and we couldn't put both types of block in the same .mod file.)
The variable we have to share between the .mod files is the percentage of KCC2 transporter in the membrane from the first file - it helps to determine the efficacy of chloride transport in the second .mod file. As it currently stands we use a dummy ion to stand in for the percentage of transporter in the mebrane. So, in the first file we have:
and in the second file:
This works, but it seems deeply inelegant to me. Not least because we have to translate into mM to do this, yet the percentage can only be between 0-1! Does anyone know a better way to share variables between .mod files?
Thanks,
Blake
Is there any way to pass variables between NMODL files without resorting to the use of ions? I ask because we are working on a model of chloride transport wherein we have two NMODL files: (1) a file for calculating the percentage of potassium chloride cotransporter proteins (KCC2) in the membrane (which is a dynamic variable) and (2) a file for chloride transport and diffusion. (We had to separate these two functions into different .mod files because the change in the chloride transporter is handled by a DERIVATIVE block, while the transport and chloride diffusion is handled by a KINETIC block, and we couldn't put both types of block in the same .mod file.)
The variable we have to share between the .mod files is the percentage of KCC2 transporter in the membrane from the first file - it helps to determine the efficacy of chloride transport in the second .mod file. As it currently stands we use a dummy ion to stand in for the percentage of transporter in the mebrane. So, in the first file we have:
Code: Select all
USEION mkcc2 WRITE mkcc2i VALENCE 1
...
mkcc2i = percentage of KCC2 in the membrane
Code: Select all
USEION mkcc2 READ mkcc2i VALENCE 1
...
use mkcc2i to modulate transporter efficacy
Thanks,
Blake