convnwb.sorting.process.collect_all_sorting

convnwb.sorting.process.collect_all_sorting(spike_data, sort_data)[source]

Collect together all the organized spike sorting information for a channel of data.

Parameters:
spike_datadict

Loaded data from the spike data file. Should include the keys: times, waveforms.

sort_datadict

Loaded sorting data from the spike sorting data file. Should include the keys: index, classes, groups.

Returns:
outputsdict

Each value is an array of all values for valid events in the channel of data, including:

  • times : spike times for each event

  • waveforms : spike waveform for each event

  • classes : class assignment for each event

  • clusters : cluster (group) assignment for each event

Notes

Kept information is for all valid spikes - all clusters considered putative single units.

This excludes:

  • spike events detected but excluded from sorting due to being listed as artifact

  • spike events entered into sorting, but that are unassigned to a group

  • spike events sorted into a group, but who’s group was listed as an artifact