Finding a netcon through its target

Anything that doesn't fit elsewhere.
Post Reply
Sherif
Posts: 27
Joined: Thu Oct 13, 2005 4:32 pm

Finding a netcon through its target

Post by Sherif » Mon Mar 05, 2012 6:56 pm

Hi,

I was given a model cell that has synapses (Exp2Syn type) and I want to calculate the synaptic conductance over that model cell. To do that, my strategy was the following:

1- for each section in the cell, find the pointprocesses of the Exp2Syn type
2- iterate over these PPs to:
2-1- find the netcon object that connects to this PP
2-2- read the synaptic weight of that individual Exp2Syn

The following code, which I got from Neuron documentation, allowed me to do steps 1 and 2; however, I couldn't find a way to do steps 2-1 and 2-2. I would appreciate your help in finding a way to get the netcon object that connects to a known pointprocess and read its weight

Here is the code:

Code: Select all

objref mt, pp
mt = new MechanismType(1)
mt.select("Exp2Syn")

forall {
	for (pp = mt.pp_begin(); object_id(pp) != 0; pp = mt.pp_next()) {
		x = pp.get_loc()
		printf("%s located at %s(%g)\n", pp, secname(), x)

		// Here, I need to access the netcon object connected to this PP to read its weight


		pop_section()
	}
}
thanks.

ted
Site Admin
Posts: 5601
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Finding a netcon through its target

Post by ted » Tue Mar 06, 2012 12:22 am

I think I'd try the CVode class's netconlist() method. The documentation
http://www.neuron.yale.edu/neuron/stati ... netconlist
suggests that
cvode.netconlist("", "", "Exp2Syn")
should return a List of objrefs that point to all NetCons that target Exp2Syns. If foo is the name of an objref that points to the model cell to which the Exp2Syns are attached,
cvode.netconlist("", "foo", "Exp2Syn")
should return a List of objrefs that point to all NeCons that target Exp2Syns attached to the sections that belong to foo.

You can then iterate over the List of NetCons and retrieve their weights.

Post Reply