Accessing section type (or segment type) information

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
sgratiy
Posts: 41
Joined: Tue Mar 30, 2010 5:33 pm

Accessing section type (or segment type) information

Post by sgratiy » Thu Jun 18, 2015 3:37 pm

When I instantiating a morphology in NEURON, is there a way of getting section types (or segment types) in the same format as in the swc file? Basically, I would like to be able to have one of the following integer values for a give section/segment:

type of neuronal compartment:
0 - undefined
1 - soma
2 - axon
3 - basal dendrite
4 - apical dendrite


Currently, to get the section type I use .hname() function, but then have to parse the string to get the relevant information. It works but seems like a backdoor approach to me. My goal is to save segment coordinates but also the segment type to disk for a later analysis.


Thanks

Post Reply