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
469 stars 245 forks source link

Can not use drift correction kilosort3 #577

Closed WWL606 closed 8 months ago

WWL606 commented 11 months ago

Hi,

I am using kilosort3. There is no error when 'N blocks for registration' on GUI is 0. But when it is not zero , I get the following error message:

Error using gpuArray/subsref
Subscript indices must either be real positive integers or logicals.

Error in extractTemplatesfromSnippets (line 56)
wTEMP = dd(:, round(linspace(1, size(dd,2), nPCs)));

Error in extract_spikes (line 42)
[wTEMP, wPCA]    = extractTemplatesfromSnippets(rez, NrankPC);

Error in ksGUI/runSpikesort (line 795)
                [obj.rez, st3, tF]     = extract_spikes(obj.rez);

Error in ksGUI>@(~,~)obj.runSpikesort() (line 339)
                'Callback', @(~,~)obj.runSpikesort())

Error while evaluating UIControl Callback.

Any help is appreciated!

Thanks, Wenliang

zkcsmxz commented 11 months ago

I have the very same issue.

marius10p commented 11 months ago

It means that no spikes were detected. You can double check that the data is loaded correctly (data type especially) and it looks right in the GUI, and if everything looks normal, you can try lowering the spike detection threshold (advanced parameter in the config384 script). The spike threshold is negative.