An Unsupervised and Automatic Spike Sorting Method based on the Joint Optimization of Linear Discrimination Analysis and Density Peaks. Run_Sample.m
is an example of use.
Run DetectWave.m
to detect spikes from raw data.
Run ldadp_fuc.m
to do the sorting.
X: Waveforms of the spikes.
Sample_data: Number of the spikes
Dim_sub: dimension of the feature
numCluster0: initial number of clusters
flagMerge: merge the cluster or not
Idx_sort: the cluster label
Idx_center: the centers of each clusters
A Robust Spike Sorting Method based on the Joint Optimization of Linear Discrimination Analysis and Density Peaks. Yiwei Zhang, Jiawei Han, Tengjun Liu, Zelan Yang, Weidong Chen, Shaomin Zhang. BioRxiv 2022.02.10.479846; doi: https://doi.org/10.1101/2022.02.10.479846