Page 1 of 1

Measuring longitudinal intracellular current

Posted: Mon May 08, 2006 6:05 pm
by ssothro
Hi all,
I am interested in the longitudinal current that flows intracellularly through the Ra resistors in a cell model. Does NEURON keep this current in a variable accessible to the user? If not is there an easy way to calculate this current?

Thanks.

Posted: Tue May 09, 2006 10:29 am
by Raj

Posted: Wed May 10, 2006 4:00 pm
by ssothro
"Code:
dend { iax = ( v(0.01) - v(0) ) / ri(0.01) }

This assumes that dend.nseg < 100. "

What if section dend has nseg=1? Is the above formula still valid?

Posted: Wed May 10, 2006 4:21 pm
by Raj
From the description of ri one can conclude that nseg=1 is a fine choice, because it assures that the points 0 and 0.01 are in the same segment. Which is requirement of ri to give the correct answer.

You can also do a little test yourself. Take three sections, connect them, clamp both outer sections and see if the functions you used are behaving as you would expect them to.