MouseLand / Kilosort

Fast spike sorting with drift correction for up to a thousand channels
https://kilosort.readthedocs.io/en/latest/
GNU General Public License v3.0
450 stars 235 forks source link

Problems with 4-shanks probes #652

Closed Lorena-J closed 4 months ago

Lorena-J commented 4 months ago

Describe the issue:

Hi! I have a problem with the way kilosort shows me the schema of the probe, i'm trying to do the sorting with a 4-shank probe, all the coordenates are revised and ok, but when i plot the probe view is not the same shape than my probe.

Captura de pantalla 2024-04-02 a las 14 25 39

(This is my probe loaded with the jupyter notebook)

Captura de pantalla 2024-04-02 a las 14 26 28

this is how the probe is seen in kilosort4) Páginas desdeCambridge-NeuroTech-Product-Catalog.pdf (and this is my real probe) thank's for help!!

jacobpennington commented 4 months ago

The visualization in the GUI is not exactly proportional even with single-shank probes, it just tries to use all the available space. So, a short and wide layout like yours is going to look stretched like that since the viewing box of the plot assumes the probe is going to be tall and narrow (like single-shank neuropixels probes). We're planning to add scale bars in the future, or possibly add an option to switch between representations.

Since you mentioned you're using a 4-shank probe though, you should also take a look here: https://kilosort.readthedocs.io/en/latest/multi_shank.html. In short, until we implement multi-shank sorting you should artificially stack the shanks in your probe layout so form a single shank.

Lorena-J commented 4 months ago

Thanks for the link, I'll take a look at it so I can set up my 4 shanks probe. Thank you very much for the quick response!

jacobpennington commented 4 months ago

FYI, the version I just pushed today (4.0.4) should be able to handle multi-shank probes without artifically stacking them, if you want to try that out. If you do, please let us know how it goes! There is also an option in the GUI now to show a physically proportional view of the probe.

If you have any more trouble with this, please let us know.