csn-le / wave_clus

A fast and unsupervised algorithm for spike detection and sorting using wavelets and super-paramagnetic clustering
121 stars 65 forks source link

is there a way to delete all spikes from cluster 0? #189

Closed shirquinn closed 2 years ago

shirquinn commented 3 years ago

Hi, is there a way to reject/delete all spikes from cluster 0 that are unassigned? Thank you

ferchaure commented 3 years ago

Hi, sorry but I don't understand the question. If you don't want them in your analysis, after loading the times file you can do something like:

keep = cluster_class(1,:)>0; %keep only the spikes from non zero clusters
cluster_class = cluster_class(:,keep);