I'm trying to add ephaptic connections to a ~100 neuron network. I'd like to have one group of them produce a net output, and have the other group "see" it. Unfortunately, the network is a parallel context version, and I'm not sure how to even start. I do not need very sophisticated devices here, just a way of collecting the outputs of that group and then multiplying it by some parameter as an input current. I would be happy with a very arbitrary measure.
I have thought of 2 ways. One is to piggyback onto my working parallel-style gap junctions. The problems there are 1) they introduce conductance to the cells and I can see a big difference when the conductances are high--not a great model of ephaptic connections, and 2) I would need N^2 connection statements. The gap junctions use the halfgap.mod in the following style, connecting reciprocally to each cell.
pnm.pc.target_var(&g.vgap, $3)
pnm.pc.source_var(&v(.5), $4)
If there is a clever way to fool this mechanism into injecting current without changing conductance, I'd be happy with it.
The other way is that perhaps it can be done with a direct injected current into each cell, that takes as a factor the summed currents of all cells (which I am already recording and writing anyway). This would clearly be better, though I'm not sure exactly how to "collect" all the cells' data at each time step in pnm.pc.
