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

Error from Kilosort 4.0, using Neuropixel 1.0 probe, single column mode #850

Open
Haorun-KUL opened this issue Jan 15, 2025 · 6 comments
Open

Comments

@Haorun-KUL
Copy link

Describe the issue:

Traceback (most recent call last):

File "C:\ProgramData\anaconda3\envs\kilosort\lib\site-packages\kilosort\gui\sorter.py", line 90, in run

clu, Wall = cluster_spikes(st, tF, ops, self.device, bfile, tic0=tic0,

File "C:\ProgramData\anaconda3\envs\kilosort\lib\site-packages\kilosort\run_kilosort.py", line 420, in cluster_spikes

clu, Wall = clustering_qr.run(ops, st, tF, mode = 'template', device=device,

File "C:\ProgramData\anaconda3\envs\kilosort\lib\site-packages\kilosort\clustering_qr.py", line 317, in run

raise ValueError(

ValueError
:
get_data_cpu never found suitable channels in clustering_qr.run.
dmin, dminx, and xcenter are: (20.0, 1.0, 19.0)

Reproduce the bug:

No response

Error message:

No response

Version information:

Kilosort 4.0, using Neuropixel 1.0 probe, python

@jacobpennington
Copy link
Collaborator

Please upload kilosort4.log from the results directory.

@Haorun-KUL
Copy link
Author

Please upload kilosort4.log from the results directory.

sorry, I could not find this file in the results directory. Seems it did not be generated successfully

@Haorun-KUL
Copy link
Author

WhatsApp Image 2025-01-13 at 14 41 05_e12659c7
it could not work when the mapping is like this, which I extract from OpenEphys;

WhatsApp Image 2025-01-16 at 10 48 50_59e8ee0e
so that I simplified the map like this and then I got the error

@jacobpennington
Copy link
Collaborator

It looks like you're using an older version of kilosort4, which is why the log did not generate. Please update to the latest version with pip install --upgrade kilosort, then try sorting again. If you still run into problems, upload kilosort4.log.

@Haorun-KUL
Copy link
Author

Image
now it seems working fine but still I am not sure if it is correct because half of the channels did not show any waveform

kilosort4.log
This is the log file.

Image
this is the channel map I selected while doing recording with open ephys

@jacobpennington
Copy link
Collaborator

I'm not familiar with that open ephys interface. Is that showing that you only recorded from channels with the same horizontal position on the shank? Your kilosort probe preview is showing something very different.

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

No branches or pull requests

2 participants