Request for support of spike raster type #554
Labels
category: extension
proposed extensions
priority: medium
non-critical problem and/or affecting only a small set of NWB users
Use Case: A common mechanism for neural data processing is the spike raster matrix. This is a sparse, binary (0 or 1) 2D matrix, generally in the shape of:( electrode/neuron #, time (ms) ). This base matrix is then indexed into, generally based on behavioral epochs, and binned/smoothed/etc, projected down to low dimensions, input into machine learning algorithms, etc.
Current: NWB uses the Units table as the primary representation for sorted spikes. NWB currently does use the spike raster matrix format directly as it is a derived, lossy representation of the data.
**Proposal: For analysis purposes it would be useful to be able to: a) easily create a spike-raster matrix from the Units table for analysis and b) be able to store the spike raster matrix in the file as part of the "/analysis" folder to simplify and accelerate downstream analysis. I.e., the Units table would remain the main data representation and the spike raster matrix would be an additional representation of the data that would be derived from the Units table.
Proposed process: As this is a major addition, this should follow the NWB proposal process described here https://www.nwb.org/proposal-review-process/ . As such, the first step should be to create an ndx extension. To store the spike raster, the extension would look similar to ElectricalSeries:
data
would be a 2D array of bool where the first dimensions is time and the second dimension is unitunit
a 1D DynamicTableRegion selecting the corresponding rows from the Units tableThis issue is based on a request by @bil-paul
The text was updated successfully, but these errors were encountered: