-
Notifications
You must be signed in to change notification settings - Fork 66
Run wave_clus #3
Comments
Use the files Batch_files/Get_spikes.m and Batch_files/Do_clustering.m to run Wave_clus without the Gui. |
Thanks for your answer. I was wondering how I should use wave_clust when each of my Tetrode has 4 electodes. Should do the clustering for each electrode separately, or is there any function which would do this job in some specific way? |
You can use Batch_files/Get_spikes_pol.m and then Batch_files/Do_clustering.m like before. |
I am a bit confused with how I should give the input: However when I call Get_spikes_pol([{'TT1E1.ncs'; 'TT1E2.ncs'}]); it gives me an error. Do I need to convert TT1E1.ncs to TT1E1.txt and TT1E2.ncs to TT1E2.txt and give those two text files as an input to Get_spikes_pol? |
The polytrode support will be rewrite, but for now, you can follow the instructions from the old documentation:
|
Thanks. It works now. I was trying to run the code on real data which is uploaded on the website. I have one problem though. 2- I have set both thrmax as thrmax = stdmax * noise_std_detect; par.stdmax = 15; and par.detection = 'neg'; and ran the code on CSC4. I have an example for a spike which I can't make sense out of it. based on the data and stdmax the thrmax would be 85.2812 (I also have changed the order of filter to 4th order and par.sr =32556;) and I have got a spike which has a maximum> 200. I thought that those spikes which are greater than 85.2812 would be considered as artifacts and excluded from spikes!? Another question is when I ran Do_clustering on the data I always get 2 classes in cluster_class. How can I find out what is the temperature for these classes, and how can I get different clusters for different temperature. Do I need to run it separately for each temperature?? Thanks |
1- Inside that part of Do_clustering, thrmax is only an internal variable to define the limits of the plots. 2- As you said before: thrmax = stdmax * noise_std_sorted. Check the par.detect_fmax/fmin parameters, probably noise_std_sorted is bigger than noise_std_detect . 3- For analyse the results: open the raw data using the GUI, its will find the results and show them. |
Thank you. I have been trying to apply use the code for clustering my data and I came across tow problems: 2- When I use the code for another Tetrode I can still detect spikes with (Get_spikes) but when I run Do_cluster I get an error, and I figured out that the number of classes are less than number of index by two. Which I am guessing it has to do with this part of the code but I might be wrong: if par.permut == 'y'
Could you please help me in these issues? Thanks |
1- You can try with more inputs to improve the discrimination (par.inputs) or with a smaller par.min_clus to accept smaller clusters. 2- I'm not sure, what is exactly the error? Are you using the latests version of the code? |
Is there anyway I run wave_clus without GUI, i.e., I want to give wave_clus my data and set of parameters (e.g., temperature, min cluster size, threshold and so on ) and then get the clustered data as output.
Also how can I have the shape of each cluster that has been clustered as an out-put.
Thanks
The text was updated successfully, but these errors were encountered: