-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input data and Kilosort GUI #46
Comments
You could try formatting the data as int16 in matlab
I have some code that has successfully converted .sev files, which I believe are from TDT, if you're interested. For the GUI, I had the same issue too, you need to make sure that you add the correct GUI Layout Toolbox, and make sure to add it from the Add On menu in Matlab. By default, searching "GUI Layout Toolbox" does not get the correct one, instead you need to search the author's name "David Sampson" in the Add On window, and that will find the right one. If the one you're downloading is not by David Sampson, it won't work. If you already installed a different one, make sure you completely uninstall it and remove it from the path before trying to install the correct one. |
Thank you very much! both of the solutions worked. I neither understand why I was getting my values transformed to 0. Also I would be interested in trying your code, I am curios to see if the extraction of the data is being done correctly by the .mat file provided by the company. Right now I am doing my filtering outside Kilosort (notch 60hz fiir 2 degree, highpass fiir 2 degree, sampling rate 48828.125), and I am not having good results detecting the spikes. Do you know by any chance the noise toleration of the algorithm? I am still leaving some artifacts that are in the signal (high magnitud spikes), but if needed I would include another filter. |
The best way to debug this is to visualize the data you are giving to Kilosort. Errors in saving the .dat file, or providing the wrong number of channels can both cause Kilosort to fail, as it can't load the data correctly. A simple way to load and visualize the .dat file, assuming a 32 channel recording (beware, if it's really big, this method can lock up matlab):
Check to see if that plots your channels correctly |
This is this point of the GUI, to do this for you ;)
…On Sat, Mar 30, 2019 at 11:48 AM Chris Angeloni ***@***.***> wrote:
The best way to debug this is to visualize the data you are giving to
Kilosort. Errors in saving the .dat file, or providing the wrong number of
channels can both cause Kilosort to fail, as it can't load the data
correctly.
A simple way to load and visualize the .dat file, assuming a 32 channel
recording (beware, if it's really big, this method can lock up matlab):
nChan = 32; fid = fopen('continuous.dat','r'); dat = fread(fid,[nChan
inf],'*int16'); fclose(fid); plot(dat(:,1:50000)'+(1:size(dat,1))*1000);
Check to see if that plots your channels correctly
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHPUP4qiPlq48G-EnGm62ySLp5weUL7Aks5vb7FzgaJpZM4cRSES>
.
|
Hi: |
Hi Chenchal, This sounds great, let me know when you finish with this script to try it out. definitely the .bin files are "huge" |
@jesusdpa1 : I have had some success in coding interface for TDT data that can be used to to exercise Kilosort2. Basically, modified Kilosort2 files that read data from the binary file. Additionally, implemented a RawBinDataAdapter to work with the eMouse-generated-sample-binary file directly. |
Issue has become inactive. Closing. |
Hi,
I have started to use Kilosort2 to sort the data gather using TDT, but have had many difficulties when setting everything up. The first difficulty I am having is when I transform the data from .mat to .bin using fwrite(fidOut, datae_f, 'int16'); the data gets downsample, most values are transformed to 0. Therefore the sorting of the data is done incorrectly giving me in most channels an error of bad channel, and when plotted using phy the signal looks like small pulses across time.
The values are presented in micro Volts ranges. I multiply the values by 10000, and got an improvement in the shape of the signal and the sorting but kept observing down sampling on the data. In the other hand when I multiplied by larger values the signal start looking over saturated. Any recommendations towards the input data?
The second issue I am having is when I tried to use the new Kilosort Gui. The first error that showed was that I needed to download the Adds On "GUI Layout Toolbox" after doing this the error change to "No constructor 'handle.listener' with matching signature found"
any suggestions?
Thanks
The text was updated successfully, but these errors were encountered: