convnwb.sorting.utils.extract_clusters

convnwb.sorting.utils.extract_clusters(data)[source]

Extract individual clusters from a channel of data.

Parameters:
datadict

Spike sorting information from a channel of data. Should include the keys: times, waveforms, clusters, classes.

Returns:
cluster_timeslist of 1d array

Spike times, separated for each cluster. List has length of n_clusters.

cluster_waveformslist of 2d array

Spike waveforms, separated for each cluster. List has length of n_clusters.