Page 1 of 1

Section path

Posted: Sun Mar 05, 2006 3:01 pm
by Franzi
Hello,

i've got a question. I want to know how i can realize to find out all pathes from a soma to the last segment of a dendritetree. From the soma to the end of a dendrite there are several nodes with new sections and i need the every possible way from beginning of the soma to the last segment in every dendrite.
I get the whole tree about the command "topology()", but i need the parent and the child of a section.

using SectionRef to explore a tree

Posted: Sun Mar 05, 2006 3:53 pm
by ted
I want to know how i can realize to find out all pathes from a soma to the last segment of a dendritetree.
In NEURON a model cell is a singly connected structure, so there is only one direct path
between any two points.
i need the parent and the child of a section.
Use the SectionRef class
http://www.neuron.yale.edu/neuron/stati ... ecref.html
Example: suppose you have a section called foo and want to discover its parent and its
children.

Code: Select all

objref sref
foo sref = new SectionRef()
if (sref.has_parent) sref.parent print secname()
if (sref.nchild > 0) for i = 0,sref.nchild-1 sref.child[i] print secname()

Posted: Mon Mar 06, 2006 1:22 pm
by Franzi
Thank you. This was a helpful solution. :-)