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

Get_spikes #191

Open Soooli69 opened 3 years ago

Soooli69 commented 3 years ago

Hello I have a problem with the new version of "Wave_Clus" algorithm. When I run Get_spikes, no result saves. In that instruction has been said : "Saves spikes, spike times (in ms), used parameters and a sample segment of the continuous data (optional) in filename_spikes.mat." Please help me.

ferchaure commented 3 years ago

Hi In which format your data is saved? How do you call the function?

Soooli69 commented 3 years ago

In this version, you said that we have to use Matlab cell according to these phrases "A .txt file with the names of the files to use. % A matlab cell with the names of the files to use. % A vector with channel numbers. In this case the function will proccess all the % supported files (except .mat files) located in the folder with those % channel numbers (e.g., CSC1.Ncs or NSX4.NC5)
% 'all', in this case the functions will process all the % supported files in the folder (except .mat files)." I call it using this code "Get_spikes('Data.mat')"

ferchaure commented 3 years ago

the call looks fine, has Data.mat a data variable inside with the raw data ?

Soooli69 commented 3 years ago

I've used the older version (2004). Data.mat is a raw data with 16 channels.

ferchaure commented 3 years ago

Wave_clus loads one file per channel (to use polytrodes follow the instructions on the wiki), you will have to separate that file in 16 files if you want to sort each channel independently.

Soooli69 commented 3 years ago

Thank you, Fernando. I'll try again.