catalystneuro / ndx-bipolar-scheme

Structure for storing the bipolar schema of a recording in an NWB file.
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Define multiple electrodes for anode and cathode #2

Closed jessierliu closed 4 years ago

jessierliu commented 4 years ago

@bendichter Is it possible to define a DynamicTableRegion covering several electrodes for the anode and cathode columns of the bipolar_reference_scheme?

From the point of view of stimulation, you might spread out the anode, lets say, to actually be across several electrodes. However, the corresponding cathode would be only 1 elec. And this bipolar pair, would have 1 recorded waveform. So in the putative StimSeries (upcoming ndx-electrical-stim), we would want to map this 1d array to the row in bipolar_reference_scheme that may look like the first row in the below example table.

id      anode       cathode
0       1, 2                3
1       4           9

If the new bipolar DynamicTable could have row entries like that, then it seems like this solves both stimulation and recording purposes.

bendichter commented 4 years ago

Yes, this can be done. It requires making a VectorIndex column that targets the anode DynamicTableRegion. Are you sure you won't need vector cathodes as well?

jessierliu commented 4 years ago

Oh, hmm, so I thought that the elements of the anode column were DynamicTableRegions themselves? Would you not be able to simply define it with more electrodes than a single one?

And sure, it could be multiple cathode, multiple anode, or single in each, I think.