Kilosort icon indicating copy to clipboard operation
Kilosort copied to clipboard

Turning Off Drift Correction

Open EricZhu0313 opened this issue 3 years ago • 1 comments

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.

EricZhu0313 avatar Aug 03 '21 16:08 EricZhu0313

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

TomBugnon avatar Aug 26 '21 11:08 TomBugnon

In Kilosort3 this gives a subsequent error:

Unrecognized field name "dmin".

Error in template_learning (line 31)
dmin = rez.ops.dmin;

dervinism avatar May 23 '23 15:05 dervinism

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

ImJustKenSteel avatar Feb 04 '24 22:02 ImJustKenSteel

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?

dervinism avatar Feb 04 '24 23:02 dervinism

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.

ImJustKenSteel avatar Feb 05 '24 21:02 ImJustKenSteel

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

dervinism avatar Feb 06 '24 09:02 dervinism