Section path

Anything that doesn't fit elsewhere.
Post Reply
Franzi

Section path

Post 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.
ted
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

Post 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()
Franzi

Post by Franzi »

Thank you. This was a helpful solution. :-)
Post Reply