Skip to content

Drift correction makes things even worse #1006

@ZhongRenNeuroscience

Description

@ZhongRenNeuroscience

Describe the issue:

Hi,

I'm using kilosort4 GUI to sort Neuropixel2.0 recordings. The session can last for 1 to 2 hours. These days I'm sorting some data probably with big drift because I do see some flat lines at certain period of edge channels, and clusters always break at a consistant moment. However, I'm thinking whether KS4 overestimates the drift. For example this session, the drift correction algorithm moves in general 4 channels up. But I can always find the matched cluster 10-12 channels above. Which means, the drift correction makes a wrong estimation. Even the direction is totally wrong. It should correct the drift by moving 6-8 channels down but not 4 channels up. It makes the manual curation more difficult. Could you help me to check what is the reason and how to fix it? The majority of the sortings are still good, but this is not the only session with this issue as well. Thank you!

Image Image Image

kilosort4.log

Image

Reproduce the bug:

Error message:

Version information:

Python3.11
KS 4.0.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions