Skip to content
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

Turning Off Drift Correction #433

Closed
EricZhu0313 opened this issue Aug 3, 2021 · 6 comments · Fixed by #595
Closed

Turning Off Drift Correction #433

EricZhu0313 opened this issue Aug 3, 2021 · 6 comments · Fixed by #595

Comments

@EricZhu0313
Copy link

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.

@TomBugnon
Copy link

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

@dervinism
Copy link

In Kilosort3 this gives a subsequent error:

Unrecognized field name "dmin".

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

@ImJustKenSteel
Copy link

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

@dervinism
Copy link

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?

@ImJustKenSteel
Copy link

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.

@dervinism
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants