parents and children of a section

Managing anatomically complex model cells with the CellBuilder. Importing morphometric data with NEURON's Import3D tool or Robert Cannon's CVAPP. Where to find detailed morphometric data.

parents and children of a section

Postby manyi » Wed Jun 27, 2012 5:49 am

Hi there,

I have a detailed single neuron model and want to extract the parents and children of a section, let's say necks[0].
Code: Select all
oc>psection()
necks[0] { nseg=1  L=2.78238  Ra=180.122
   dend[14] connect necks[0] (0), 0.857143
   /* First segment only */
   insert morphology { diam=0.18}
   insert capacitance { cm=1}
   insert pas { g_pas=2.57538e-05 e_pas=-78.1613}
}

When I enter cm or necks[0].cm, 1 is returned, the same for other parameters. I have tried has_parent() according to
http://www.neuron.yale.edu/neuron/stati ... has_parent
and 1 is returned. But how can I get dend[14] which is the parent of the section, and spines[0] (not shown in psection()) which is the child?
manyi
 
Posts: 11
Joined: Mon Apr 02, 2012 6:48 am

Re: parents and children of a section

Postby ted » Wed Jun 27, 2012 2:33 pm

In the Programmer's Reference read about the SectionRef class's has_parent(), parent(), child(), and nchild() methods. Also see the SectionList class's children() method.
ted
Site Admin
 
Posts: 3589
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: parents and children of a section

Postby figoyouwei » Sun Dec 16, 2012 10:35 am

Hi Ted:

I wonder, is there a sec.get_parent_loc() like function ? e.g. if dend (connected at pos 0) is a child of soma (connected at pos 1). If do : dend.get_parent_loc(), it will return "soma, 1" ? How could one get that info ? Thanks !
figoyouwei
 
Posts: 7
Joined: Sun Aug 08, 2010 11:09 am

Re: parents and children of a section

Postby ted » Sun Dec 16, 2012 5:04 pm

The SectionRef class's has_trueparent comes closest to what you want. In practice, the absence of a more general function is not a problem because, with few exceptions, each child section should be attached to its parent's 1 end.

It is never a good idea to connect a section to its parent's 0 node, unless its parent is the root section of the model cell.

It is almost never a good idea to connect a section to an internal node, because the actual location of the connection may change if nseg changes. In most situations where one is tempted to attach a section to an internal node, it is probably a good idea to break the parent section into two sections, and attach the child to the point where they join. The only exceptions to this are:

1. A soma to which many neurites (dendrites and maybe one or more axons) are attached--although in most cases one could specify soma.nseg=1 and attach all child branches to 0, 0.5, or 1 without significantly affecting simulation results.

2. A dendrite that has multiple spines. In most cases it should be possible to assign an electrotonically-appropriate nseg value to the dendrite, which would mean that each segment is many 10s of um long and has multiple spines attached to it. However, if one is specifically interested in interactions between neighboring spines, it might be appropriate to make nseg very large so that each spine is attached to its own segment.
ted
Site Admin
 
Posts: 3589
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine


Return to Anatomically detailed models

Who is online

Users browsing this forum: No registered users and 0 guests