spyglass icon indicating copy to clipboard operation
spyglass copied to clipboard

Add a new attribute called `electrical_series_name` to the primary key of `Raw`

Open khl02007 opened this issue 1 year ago • 4 comments

@rly @edeno @lfrank

Is your feature request related to a problem? Please describe. Some NWB files have multiple electrical series objects. For example, NWB files containing Neuropixels 1.0 data have one electrical series for the AP band and another for the LF band. At the moment, spyglass cannot restrict the downstream processing to a particular electrical series because it assumes that NWB files contain only one electrical series.

Describe the solution you'd like Add a new attribute called electrical_series_name to the primary key of Raw. This will allow selection of a single electrical series from an NWB file to process (e.g. spike sort). We can populate this column from the NWB file during ingestion.

Additional context Currently the only primary key of Raw is nwb_file_name from Session. Expanding the primary key cannot be done in datajoint without dropping the table (as far as I know). We will have to make this change in SQL. If we are to make this change, it would be better to do it sooner rather than later so that the downstream pipelines can refer to specific electrical series.

khl02007 avatar Oct 09 '23 03:10 khl02007