Play both excitatory and inhibitory conductances into SEClamp

Anything that doesn't fit elsewhere.
Post Reply
swienbar
Posts: 2
Joined: Fri Oct 18, 2019 4:48 pm

Play both excitatory and inhibitory conductances into SEClamp

Post by swienbar »

Hello,
I am attempting to do a dynamic clamp recording on a model cell that I made in NEURON in python.
I understand that you can do this by playing a vector through SEClamp._ref_rs, but I was wondering if I could inject both excitatory and inhibitory conductances? I know that you can't feed two conductances through the same electrode, but could I do something like this? If this is not possible, do you have suggestions on what I should do instead?

For example:

Code: Select all


Cell = MakeCell()

ExcConductances = Vector1
InhConductances = Vector2

ExcClamp = h.SEClamp(Cell.soma(0.4))

InhClamp = h.SEClamp(Cell.soma(0.6))

ExcConductances.play(ExcClamp._ref_rs, h.dt)
InhConductances.play(InhClamp._ref_rs, h.dt)

soma_v = h.Vector().record(Cell.soma(0.5)._ref_v)

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

Re: Play both excitatory and inhibitory conductances into SEClamp

Post by ted »

You're on the right track. Just be sure to
1. set each SEClamp's dur1 to 1e9
2. set each SEClamp's amp1 to the appropriate "synaptic reversal potential"
3. make sure that the "rs values" that drive the two clamps are in megohms. For example, if you have the time course of a synaptic conductance gs0, gs1, gs2 . . . in picosiemens, the corresponding rs values would be 1e6/gs0, 1e6/gs1, 1e6/gs2 etc.. A practical way to accomplish this would be to fill a Vector with a gs time series, then (assuming the gs vector's name is gsvec)

Code: Select all

rsvec = h.Vector(gsvec.size())
rsvec.fill(1e6)
rsvec.div(gsvec)
swienbar
Posts: 2
Joined: Fri Oct 18, 2019 4:48 pm

Re: Play both excitatory and inhibitory conductances into SEClamp

Post by swienbar »

This was very helpful! Thanks so much!
ted
Site Admin
Posts: 5935
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Play both excitatory and inhibitory conductances into SEClamp

Post by ted »

Just make sure that your synaptic conductance values are all > 0. Forcing a minimum value of 1e-9 should be sufficient.
Post Reply