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

Unrecognized function or variable "extract_spikes" #334

Closed
Idavr opened this issue Feb 11, 2021 · 4 comments · Fixed by #595
Closed

Unrecognized function or variable "extract_spikes" #334

Idavr opened this issue Feb 11, 2021 · 4 comments · Fixed by #595

Comments

@Idavr
Copy link

Idavr commented Feb 11, 2021

Hi!

I am trying to run KS3 for the first time, and I ran into issues during the "extracting spikes for clustering" stage with this error:

Unrecognized function or variable 'extract_spikes'.

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

Error in ksGUI/runAll (line 628)
obj.runSpikesort;

Error in ksGUI>@(,)obj.runAll() (line 319)
'Callback', @(,)obj.runAll());

Error while evaluating UIControl Callback.

I updated Kilosort right before running this as I noticed there had been some changes done, but there still seems to be something missing in the code I have or am I reading the error wrong?

@metmic
Copy link

metmic commented Feb 11, 2021

Hello,
I am having a similar issue:

Undefined function or variable 'extract_spikes'.

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

Error in ksGUI>@(,)obj.runSpikesort() (line 337)
'Callback', @(,)obj.runSpikesort());

Error while evaluating UIControl Callback.

Thanks.

@marius10p
Copy link
Contributor

The function is here: https://github.com/MouseLand/Kilosort/blob/main/clustering/extract_spikes., and it should be in your Matlab path. Could it be that you added an old version of Kilosort to the path instead?

@metmic
Copy link

metmic commented Feb 11, 2021

Thank you. Yep, that was probably the reason. The folder clustering was not in my Matlab path.

@Idavr
Copy link
Author

Idavr commented Feb 12, 2021

Thank you @marius10p , it does indeed seem like this was the reason. All good now :)

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

Successfully merging a pull request may close this issue.

3 participants