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.
Section path
-
- Site Admin
- Posts: 6394
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
using SectionRef to explore a tree
In NEURON a model cell is a singly connected structure, so there is only one direct pathI want to know how i can realize to find out all pathes from a soma to the last segment of a dendritetree.
between any two points.
Use the SectionRef classi need the parent and the child of a section.
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()