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

How to run batch processing #99

Closed QZZ57 closed 6 years ago

QZZ57 commented 6 years ago

The GUI for single channel processing works pretty well. However, I got in a trouble for batch processing: when I was trying to do batch processing, there were 4 channels I hoped to process simultaneously, so I converted the file names (channel_9.mat, channel_10.mat, channel_11.mat, channel_12.mat) into ASCII format and saved in a .txt file with the file name ‘polytrode1.txt’. Each ‘channel_X.mat’ file contains a ‘data’ vector and a ‘sr’ variable (same as in single channel processing through the GUI). However, I was keeping getting the error that ‘the file did not get uploaded’ when I called ‘Get_spikes_pol(1)’. I must have made an error, but for now, I couldn’t figure it out. Could you please let me know how to write down the file names properly and run the batch processing function? Greatly appreciate your kind help.

ferchaure commented 6 years ago

What do you mean with 'I converted the file names'? Can I see a screenshot of the error?

QZZ57 commented 6 years ago

Hi, If I converted the file names (channel_9, channel_10) into ASCII format (099 104 097 110 110 101 108 095 057 046 109 097 116 013 010 099 104 097 110 110 101 108 095 049 048 046 109 097 116 013 010 013 010 013 010), there was an error when I called function Get_spikes_pol(1):

[cid:image001.png@01D46557.8CEA1C20]

ferchaure commented 6 years ago

You don't have to convert the names like that (probably there is an issue with the documentation), just write them in plain text. Did you see the wiki page? https://github.com/csn-le/wave_clus/wiki/Polytrodes

Let me know if you have better luck following that steps.

QZZ57 commented 6 years ago

Yes, it’s working. Thanks so much.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: Fernando J. Chauremailto:notifications@github.com Sent: Tuesday, October 16, 2018 2:13 PM To: csn-le/wave_clusmailto:wave_clus@noreply.github.com Cc: Zhang, Qingqingmailto:qzz57@psu.edu; Authormailto:author@noreply.github.com Subject: Re: [csn-le/wave_clus] How to run batch processing (#99)

You don't have to convert the names like that (probably there is an issue with the documentation), just write them in plain text. Did you see the wiki page? https://github.com/csn-le/wave_clus/wiki/Polytrodeshttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsn-le%2Fwave_clus%2Fwiki%2FPolytrodes&data=02%7C01%7Cqzz57%40psu.edu%7C367ecd1d5d264bc734fe08d633931439%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636753104130296020&sdata=LV48U9BSrngjT2UIvIx2U4dKpYJgZG9B8ZpzLTbqhno%3D&reserved=0

Let me know if you have better luck following that steps.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsn-le%2Fwave_clus%2Fissues%2F99%23issuecomment-430339994&data=02%7C01%7Cqzz57%40psu.edu%7C367ecd1d5d264bc734fe08d633931439%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636753104130306033&sdata=lBxUtUn5XbFyAZEabjjendgBXSW2YvZDAktrHEy%2FLmM%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAqKAJTipdS3EoBr2adfN1Oit5zCI6VBfks5uliG4gaJpZM4XeiZI&data=02%7C01%7Cqzz57%40psu.edu%7C367ecd1d5d264bc734fe08d633931439%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C636753104130316037&sdata=s9W9FItEg3uSf6%2FosMvJt1Oe8pAEGYZmQzVaMSpVS2g%3D&reserved=0.