Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Polytrodes

Fernando Chaure edited this page Jun 1, 2018 · 1 revision

How-To

Wave_clus is also able to do spike sorting from polytrodes (including tetrodes), concatenating the spikes from different channels and taking them as a single shape for clustering purposes.

First, write the name of the files you want to process as polytrode in a text file named as polytrode1.txt.

For example if your polytrode1 is channels 21 to 25, polytrode1.txt will contain:

my_channel_21.mat
my_channel_22.mat
my_channel_23.mat
my_channel_24.mat
my_channel_25.mat

Second, do the spike detection by typing in the Matlab command window the batch file Get_spikes_pol(1) which will produce the output file polytrode1_spikes.mat containing the spike times and shapes. Then execute Do_clustering(1) which produces the file times_polytrode1.mat.

Third, you can visualize and change the clustering results with GUI by loading times_polytrode1.mat. Using the Plot_polytrodes button you will be able to visualize the clusters in each channel. The Plot all projections gives the peak amplitudes of the spikes for each channel against the others

In case you may want to process another polytrode at the same time, you just have to make the file polytrode2.txt, type Get_spikes_pol(1:2) and Do_clustering(1:2). Same for any number of polytrodes.

Clone this wiki locally