Excitatory and inhibitory contributions
Excitatory and inhibitory contributions
Hello,
I have a network of 150 neurons. Some are excitatory neurons, some are inhibitory neurons and i did connections.
And, what i would like to do is to sum all the membrane potentials generated by excitatory neurons and all the membrane potentials generated by inhibitory neurons, in order to find the respective contributions of excitatory and inhibitory neurons in my network.
Is it possible to plot the resulting curves?
Thanks a lot for your help,
Sandrine.
I have a network of 150 neurons. Some are excitatory neurons, some are inhibitory neurons and i did connections.
And, what i would like to do is to sum all the membrane potentials generated by excitatory neurons and all the membrane potentials generated by inhibitory neurons, in order to find the respective contributions of excitatory and inhibitory neurons in my network.
Is it possible to plot the resulting curves?
Thanks a lot for your help,
Sandrine.
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
All things are possible through programming. However, human language is imprecise.
What exactly does this statement mean?
SUMMA v
over all excitatory neurons
or
SUMMA i
over all excitatory synapses
?
If the former, are your model cells multicompartment or single compartment?
What exactly does this statement mean?
Do you wantSandrine wrote:i want to sum the different contributions of excitation and inhibition.
SUMMA v
over all excitatory neurons
or
SUMMA i
over all excitatory synapses
?
If the former, are your model cells multicompartment or single compartment?
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Code: Select all
want
SUMMA v
over all excitatory neurons
membrane potential trajectories, and at the end of a run use the add method to add them up.
Assuming that the model cells are instances of a class, and that the objrefs for all instances
of excitatory neurons have been appended to a List called ecells,
This setup code creates the Vectors
Code: Select all
objref vrecs, tobj
vrecs = new List()
for i=0,ecells.count()-1 {
tobj = new Vector()
ecells.o(i).soma tobj.record(&v(0.5))
vrecs.append(tobj)
}
elements are the time course of the sum of somatic membrane potentials.
Code: Select all
objref vsum
proc postprocess() { local i
vsum = vrecs.o(0).c
// assumes that there is more than one excitatory neuron
for i=1,vrecs.count()-1 vsum.add(vrecs.o(i))
}
proc myrun() {
run()
postprocess()
}
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
If all neurons are single compartment models,
Code: Select all
objref vrecs, tobj, areavec
vrecs = new List()
areavec = new Vector()
for i=0,ecells.count()-1 {
tobj = new Vector()
ecells.o(i).soma {
tobj.record(&v(0.5))
vrecs.append(tobj)
areavec.append(area(0.5))
}
}
proc postprocess() { local i
vsum = vrecs.o(0).c.mul(areavec.x[0])
// assumes that there is more than one excitatory neuron
for i=1,vrecs.count()-1 vsum.add(vrecs.o(i).c.mul(areavec.x[i])
}
Unfortunately i have multicompartmental models of neurons. Actually, i have 10 compartments per neuron.
Maybe i can do the first part of the code for each compartment:
objref vrecs, tobj, areavec
vrecs = new List()
areavec = new Vector()
for i=0,ecells.count()-1 {
tobj = new Vector()
ecells.o(i).soma { //idem for axon and for dend
tobj.record(&v(0.5))
vrecs.append(tobj)
areavec.append(area(0.5))
}
}
is there a better way to do it?
Maybe i can do the first part of the code for each compartment:
objref vrecs, tobj, areavec
vrecs = new List()
areavec = new Vector()
for i=0,ecells.count()-1 {
tobj = new Vector()
ecells.o(i).soma { //idem for axon and for dend
tobj.record(&v(0.5))
vrecs.append(tobj)
areavec.append(area(0.5))
}
}
is there a better way to do it?