Page 1 of 1

voltage propagation in the whole cell

Posted: Tue Mar 24, 2015 9:24 pm
by xiaosage
Hello,

I have downloaded a NEURON code and want to add a few lines to visualize the voltage propagation from a synaptic input site to the rest part of the neruon as time evolves. So far I only found some functions such as "Shape/PlotShape", but I am not sure whether they work or not. Can anyone tell me how to do it? Thanks!

Re: voltage propagation in the whole cell

Posted: Tue Mar 24, 2015 10:06 pm
by ted
xiaosage wrote:want to . . . visualize the voltage propagation from a synaptic input site to the rest part of the neruon as time evolves.
What kind of a visualization do you want? You could just plot the time course of v in different parts of the model vs. time in the same graph. Then you can compare the detailed time course of v at each of those locations.

Re: voltage propagation in the whole cell

Posted: Tue Mar 24, 2015 11:10 pm
by xiaosage
Hi Ted,

Thanks for your reply! I actually want to see the voltage distribution in the whole cell, for example, as the movie shown below

http://cns.iaf.cnrs-gif.fr/files/dendritRE_short.mpg

Thanks!

Re: voltage propagation in the whole cell

Posted: Wed Mar 25, 2015 12:02 pm
by ted
Here's how to to generate such a graph by writing hoc code; it's even easier to do this with the GUI's tools.

First you'll need an instance of the PlotShape class, configured as a "shape plot," that will update at every fadvance.

Code: Select all

// this assumes you have already loaded the standard run system
// e.g. by double clicking on nrngui.hoc or some other hoc file
// or by starting NEURON by executing nrngui
// or by including either load_file("nrngui.hoc") or load_file("stdrun.hoc")
// at the top of your program
objref ps
ps = new PlotShape()
fast_flush_list.append(ps)
ps.exec_menu("Shape Plot")
Then you'll need to use the standard run system's movierun() instead of run().

Code: Select all

load_file("movierun.hoc")
Finally, when you're ready to run a simulation, use

Code: Select all

movierun()
If you want to make it run more slowly, specify the frame interval by using a hoc assignment statement that gives the parameter movie_frame_dur_ a value larger than 0.01 (seconds).