-
Notifications
You must be signed in to change notification settings - Fork 256
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
KiloSort 2.5 and 3 fail on 4 channel (tetrode) data while KiloSort 2 succeeds #350
Comments
I have been tracking down this problem and it is due to the data shift and alignment code. Depending on how I enter the tetrode locations, I get different errors from
I get the following error:
If I set I get:
In all of these cases, the coordinate definitions are not invalid (in a basic sense). I have traced through and tried to locate the specific causes, but I cannot follow the shift code well enough to be certain I'm going to change an algorithmic element or violate assumptions. Since this doesn't occur in KiloSort 2, it's due to the changes to 2.5 and 3 in this preprocessing step. |
FYI, I was working on a PR to help with this, but I'd need assistance to determine this shift problem. However, to get to this problem, the following change is needed in
|
Sorry for the slow response. I think you should just disable drift correction completely, since it won't do anything meaningful on tetrode data. If you do that in Kilosort 2.5, you'll get back a version of Kilosort1. If you do that in Kilosort3, you'll get a fancier clustering algorithm that should be an improvement over Kilosort1. However, if drift is a big problem in your data, Kilosort2 remains the only version that can deal with that drift directly for tetrodes, since it does not use a geometric model like 2.5/3.0. |
Hello, I have run my tetrode recording on kilosort2 via matlab but it failed when one tetrode (4 channels) recordings was as input. Maybe something was wrong. Would you mind sending example tetrode recording and corresponding code project to me for learning. Thank you! |
I've setup KiloSort 2, 2.5 and 3 and am testing for tetrode recordings via SpikeInterface. The data is 30ks Open Ephys data, processed in SpikeInterface and sent identically to KiloSort2, 2.5 and 3. The test geometry is for running a single tetrode is:
which produces:
KiloSort 2.5 and 3 then fail with:
While kiloSort2 succeeds.
This appears to have been seen here:
https://github.com/SpikeInterface/spikesorters/issues/198
The text was updated successfully, but these errors were encountered: