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!
voltage propagation in the whole cell
-
- Site Admin
- Posts: 6303
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: voltage propagation in the whole cell
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.xiaosage wrote:want to . . . visualize the voltage propagation from a synaptic input site to the rest part of the neruon as time evolves.
Re: voltage propagation in the whole cell
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!
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!
-
- Site Admin
- Posts: 6303
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: voltage propagation in the whole cell
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.
Then you'll need to use the standard run system's movierun() instead of run().
Finally, when you're ready to run a simulation, use
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).
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")
Code: Select all
load_file("movierun.hoc")
Code: Select all
movierun()