I am fairly new to using NEURON (via Python), and I am trying to create a mechanism in which the conductance can be optionally regulated by an ion pool. If a Ca pool, say, writes to cai, and if a mechanism was inhibited by cai, then I would need to have the line
Code: Select all
USEION ca READ cai
Code: Select all
UNITS {
(mV) = (millivolt)
(mA) = (milliamp)
(uS) = (microsiemens)
(um) = (micrometer)
(mM) = (milli/liter)
}
NEURON {
SUFFIX test
RANGE i, g, e, regulated
NONSPECIFIC_CURRENT i
USEION ca READ cai
}
PARAMETER {
g (uS) e (mV) regulated
}
ASSIGNED {
i (mA/cm2) v (mV) area (um2) cai (mM)
}
BREAKPOINT {
SOLVE states METHOD derivimplicit
i = (100)*g/area*(v-e)*regulation(cai)
}
FUNCTION regulation(c) {
if (regulated == 0) {
regulation = 1
} if (regulated == 1) {
regulation = 1/(1+17*(c/(6e-4+c)))
}
}