Getting a NetCon location on a dendrite

Anything that doesn't fit elsewhere.
Post Reply
ryang
Posts: 17
Joined: Wed Mar 21, 2018 6:34 pm

Getting a NetCon location on a dendrite

Post by ryang »

I'm having trouble with a simple issue. What commands do I need to do to get the location of a NetCon object on a dendrite? Was playing with SectionRef() and couldn't get a parent or child, been stuck on this for a while.
ted
Site Admin
Posts: 6289
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Getting a NetCon location on a dendrite

Post by ted »

Read the documentation of the NetCon class in the Programmer's Reference
https://www.neuron.yale.edu/neuron/stat ... index.html
ryang
Posts: 17
Joined: Wed Mar 21, 2018 6:34 pm

Re: Getting a NetCon location on a dendrite

Post by ryang »

Yes, thank you, I've read that many times. There is a postcell() method but that returns the cell. Am I even doing the right thing here? I want to comfirm that my synapses are in the right location on the dendrite of the cell after I assign them to a NetCon object.
ryang
Posts: 17
Joined: Wed Mar 21, 2018 6:34 pm

Re: Getting a NetCon location on a dendrite

Post by ryang »

Synapses were in the right place when I used the pointgroupmanager, for some reason I had problems using it before. Still I'd like to be able to verify things in hoc.
ted
Site Admin
Posts: 6289
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Getting a NetCon location on a dendrite

Post by ted »

There is a postcell() method but that returns the cell.
preloc? postloc?
ryang
Posts: 17
Joined: Wed Mar 21, 2018 6:34 pm

Re: Getting a NetCon location on a dendrite

Post by ryang »

Those return the locatoin on the dendrite but not the dendrite number. Given the following code:

Code: Select all

NetCon[index].postcell
NetCon[index].preloc
NetCon[index].postloc
NetCon[index].syn
the return is:

Code: Select all

	cell_object[0]
	-1 
	0.9516129 
	synapse_receptor_nmodl[0] 
My preloc is a vecstim object, so as expected it returms -1.
Last edited by ryang on Fri Aug 24, 2018 7:42 pm, edited 1 time in total.
ted
Site Admin
Posts: 6289
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Getting a NetCon location on a dendrite

Post by ted »

Documentation of netcon.postloc():
"The section of the target point process is pushed onto the section stack so that it is the currently accessed section . . . pop_section() must be called after you are finished with the section".
So after you call postloc, print the name of the currently accessed section, and that's the section to which the NetCon's target is attached.

What does the documentation for netcon.preloc say, and how would you use that information to discover the name of the presynaptic section?
ryang
Posts: 17
Joined: Wed Mar 21, 2018 6:34 pm

Re: Getting a NetCon location on a dendrite

Post by ryang »

Okay, thanks for the push, things popped for me a bit. This is where I'm at now:

Code: Select all

print NetCon[index].postcell
{x = NetCon[index].preloc print x, pop_section()}
{x = NetCon[index].postloc print secname(), "( ",x,")"  pop_section()}
print NetCon[index].syn
and it returns

Code: Select all

cell_object[0] 
-1 
cell_object[0].dendrite[3]( 0.9516129 )
synapse_receptor_nmodl[0]
I'm not sure how to get the name of presynaptic section since it's source is an object (an nmodl object to be precise that creates short term depression and is taking in the vectstim object). I get -1 like the documenation says and when I ask for the secname(), I get the return of the cell_object soma. Maybe it will come to me tonight.
ted
Site Admin
Posts: 6289
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Getting a NetCon location on a dendrite

Post by ted »

I'm not sure how to get the name of presynaptic section since its source is an object
There's your answer.
Post Reply