SectionList
Posted: Sun Jun 23, 2013 8:04 am
Hello
I am using complex morphology import using neuro-morph. From a reference point (currently accessed section) I have identified all the sections which have a path to the currently accessed section (including the currently accessed section).
The code :
pt=598
access cell1_3[pt]
objref s,pos
s = new SectionList()
pos = new Vector()
s.wholetree()
forsec s print secname()
However the list includes cell1_1,cell1_3,spineh,spinen. I want to have a subset with only the section in the path of currently accessed section which are belonging to cell1_3.(i.e secname's in s should only begin with cell1_3)
And then to compute the distance from the currently accessed section (cell1_3[pt]) to points in the sub set of section list I use :
forsec s {
for (x,0) {
pos.append(distance(1,x))
}
}
Is this approach correct ????
I am using complex morphology import using neuro-morph. From a reference point (currently accessed section) I have identified all the sections which have a path to the currently accessed section (including the currently accessed section).
The code :
pt=598
access cell1_3[pt]
objref s,pos
s = new SectionList()
pos = new Vector()
s.wholetree()
forsec s print secname()
However the list includes cell1_1,cell1_3,spineh,spinen. I want to have a subset with only the section in the path of currently accessed section which are belonging to cell1_3.(i.e secname's in s should only begin with cell1_3)
And then to compute the distance from the currently accessed section (cell1_3[pt]) to points in the sub set of section list I use :
forsec s {
for (x,0) {
pos.append(distance(1,x))
}
}
Is this approach correct ????