Kilosort
Kilosort copied to clipboard
Turning Off Drift Correction
I'm testing Kilosort on some v-probe data. Since the spacing is too big to have one unit recorded on multiply channels, I assume the drift correction doesn't work well anyway, and it may mess up the data. So I'm wondering if there's any way to turn off the drift correction.
Remove this line from your main file:
% NEW STEP TO DO DATA REGISTRATION
rez = datashift2(rez, 1); % last input is for shifting data
or, if you want to estimate the shift and see the output plots (drift map and drift traces) without actually drift-correcting the data:
rez = datashift2(rez, 0); % last input is for shifting data
In Kilosort3 this gives a subsequent error:
Unrecognized field name "dmin".
Error in template_learning (line 31)
dmin = rez.ops.dmin;
In Kilosort3 this gives a subsequent error:
Unrecognized field name "dmin". Error in template_learning (line 31) dmin = rez.ops.dmin;
Hello,
Please could you get back to me if you found a fix for this because I am encountering the same issue.
Best wishes,
Ken
Hi,
No, I don't think I was able to solve this issue. I tried it for testing purposes and it didn't work, so I switched back to drift correction. Why do you want to switch off drift correction?
Hi,
Thanks for getting back to me, I don't want to turn it off but I am having an issue running kilosort3.
Unrecognized field name "dmin".
Error in template_learning (line 31) dmin = rez.ops.dmin;
Error in master_file_kilosort3_Kenneth (line 42) rez = template_learning(rez, tF, st3);
I am a kilosort novice and so I am stumped at this error as to why dmin does not exist.
I've never tried running master_file_kilosort3_Kenneth
file. However, we have kilosort3 set up in our lab and running ok. There are a few odd features/bugs in the code though, but they can be resolved. I made instructions on how to set up kilosort3. If you want to try them, they are available here: https://petersen-lab.github.io/petersen-lab-book/documentation/Spikesorting%20Environment%20Setup.html