Page 1 of 1
how to implement a synapse of square conductance
Posted: Sun Jul 18, 2010 10:22 am
by zhg2601
Hi, just a very stupid question. I know there are built-in alpha and bi-exponential synapses. But the assignment from the teacher requires a square synapse. How to do that in a simple way?
Re: how to implement a synapse of square conductance
Posted: Sun Jul 18, 2010 1:41 pm
by ted
Compile this and use it just like you'd use an ExpSyn. This is a very limited mechanism--any input turns it on, and it stays on with a fixed conductance until it turns itself back off. A train of input events delivered to an instance of this mechanism, whether by a single NetCon or by multiple NetCons, does NOT result in an incrementing synaptic conductance. It's either on, or it's off, and when it's on, its conductance remains constant until it turns itself off.
Code: Select all
COMMENT
"Pulse" synapse (you may think of this as a single ion channel
with fixed open time that responds to synaptic activation).
If the synapse is off, an input event increments g by g1 for duration dur.
If the synapse is on, input events have no effect.
Magnitude of the conductance is specified by PARAMETER g1,
not by the NetCon's weight.
ENDCOMMENT
NEURON {
POINT_PROCESS PulseSyn
RANGE dur, g1, e, g, i
NONSPECIFIC_CURRENT i
}
UNITS {
(nA) = (nanoamp)
(mV) = (millivolt)
(uS) = (microsiemens)
}
PARAMETER {
dur = 0.1 (ms) <1e-9,1e9>
g1 = 0 (uS) <0,1e9> : conductance response to a unitary event
e = 0 (mV)
}
ASSIGNED {
v (mV)
i (nA)
g (uS)
on (1)
}
INITIAL {
g = 0
if (g1 < 0) { g1 = 0 }
on = 0
}
BREAKPOINT {
i = g*(v - e)
}
NET_RECEIVE(w) {
: the only events that arrive when on==0 are input events
if (on==0) {
: a spike arrived and the channel is closed
g = g1
net_send(dur, 1) : to turn it off
on = 1
} else if (flag==1) {
g = 0
on = 0
}
}
Re: how to implement a synapse of square conductance
Posted: Mon Jul 19, 2010 7:25 am
by zhg2601
thanks for your prompt help. it works well.
Re: how to implement a synapse of square conductance
Posted: Mon Jul 19, 2010 12:56 pm
by ted
If your work leads to a publication, please be sure to let me know so we can add it to the Bibliography page
http://www.neuron.yale.edu/neuron/stati ... ednrn.html
Re: how to implement a synapse of square conductance
Posted: Wed Jul 21, 2010 7:07 am
by zhg2601
Of course, I am now in the beginning stage of learning.
Re: how to implement a synapse of square conductance
Posted: Wed Jul 21, 2010 11:50 am
by ted
Learning never stops.