-
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
What amount of drift and fr / amplitude changes are expected during day to day alignment? #397
Comments
Hi all, I just wanted to continue this conversation, as I've done some more experiments which basically lead me to more questions than answers. If I take recordings on two subsequent days and just look at the activity on each channel it looks totally identical. Including the distribution of noise, spikes, etc. I mean really on every channel it looks exactly the same. It could have been the same recording file, in terms of the overall statistics and general properties on each channel. So great, super stable recording. Except when I use KS2.5 on the concatenated files, it looks even worse sometimes than what I pasted above. Like 60 um shift, and subjectively no alignment on the spikes vs. depth plot. But a 60um shift shouldn't be possible, since I know every single channel is basically perfectly stable. So what gives?? Very confused. We are considering just running this with no registration at all, but that doesnt seem ideal... Has anyone run into a similar circumstance? @marius10p you mentioned alignment works the best on KS2.0 in another thread? What's the failure mechanism of 2.5 and 3.0? Have you seen this before where qualitatively totally stable recordings are way too shifted by KS2.5? Any suggestions for parameters I should change? |
Another update (maybe someday this will be useful to someone!) running KS2.5 with rigid registration seems to have more or less fixed our alignment issues. Infact, even single day recordings look better with rigid registration. |
Hearing this last point I suspect that this issue is related to something I've noticed as well when working with a dataset with very large (non-rigid) drift (up to 150um). I've meant to open an issue as well but haven't finished double-checking my work. I notice two things that might cause some issue with datasets with large drift, in particular non-rigid drift. I'm not sure it applies to your case but you might want to have a look anyway:
Another possibility is: https://github.com/evarol/NeuropixelsRegistration , which I suppose/hope should be integrated with kilosort eventually Cheers |
Hi @TomBugnon |
Update @TomBugnon I tried your non-rigid target code, unfortunately it doesn't fix my issues. Even when the drift map allignment looks good by eye KS often (basically always!) splits cells into day1 and day2. I can merge them in phy but that's not ideal. |
@achristensen56 Sorry to hear. Would you care to share the drift map (or ideally some zoom of it) with both versions of the algorithm? |
Hi All!
Similar to other discussions on tracking, I was wondering if we could have a discussion about the amount of drift and noise that's expected from day to day, and what amount is indicative of a probe with too much drift to successfully do day to day alignment.
I've read the NP2.0 paper and looked at those examples, but like all papers I assume they are rather best case scenarios. Would people be willing to share some examples of "good" day to day alignment drift maps and neural features, and "bad" features, and qualitatively how you make those decisions? We can of course use the quantitative metrics in the KS/NP paper, but we'd like also to get a qualitative feel for this type of data, and what quality we should be aiming for based on community wisdom.
I'm attaching the KS output from a day-to-day alignment we recently attempted. These sessions were recorded on consecutive days, with a chronic probe in an awake behaving rat. For stupid technical failures of our recording setup, we also had to align many individual sessions in each day -- but as you can see the large shift in the middle is "day to day" and is much more poorly registered than the almost imperceptible shift in the different sub sessions on the same day. All told the data below is 5 separate sessions aligned, across two different days.
Here are some screenshots from Phy of the resulting sorting output. I've attached a neurosn that seems 'good', and one that seems questionable. In all cases there are basically zero ISI violations, amplitude is > 100, and min fr > .1
Good:
Questionable:
Very interested in any insight the community might have, in particular if you have suggestions for how to improve our day to day alignment!
The text was updated successfully, but these errors were encountered: