csn-le / wave_clus

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

Batch files #126

Closed YawRay closed 5 years ago

YawRay commented 5 years ago

Hi again,

I am trying to analyse data from a tetrode. I created a txt file called polytrode1.txt and within this file I have:

my_channel_1.mat my_channel_2.mat my_channel_3.mat my_channel_4.mat

When I run Get_spikes_pol(1), I get the following error message:

Error using Get_spikes_pol>get_spikes_pol_single (line 107) The file my_channel_1.mat doesn't have raw data

Error in Get_spikes_pol (line 62) get_spikes_pol_single(polytrodes(j), par_input);

Does anyone know how I can solve this issue?

Thank you.

ferchaure commented 5 years ago

I think that is the same issue as before, you had a structure in your mat files

YawRay commented 5 years ago

HI,

It is not the same issue. It is not a structure mat file. I created it the same way I created the mat files for loading into the wave_clus gui, which worked. In fact, I recreated the files again and I am still having the same issue.

ferchaure commented 5 years ago

check that all the files have a variable called data with the continuous recording

YawRay commented 5 years ago

Thank you for your response. It works now. My files contained a variable called "my_channel_1" instead of "data." After changing the name of the variable to "data" everything works now. Thank you very much!