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 in rezToPhy2 #419

Closed
gaiabianchini opened this issue Jun 25, 2021 · 1 comment · Fixed by #595
Closed

Error in rezToPhy2 #419

gaiabianchini opened this issue Jun 25, 2021 · 1 comment · Fixed by #595

Comments

@gaiabianchini
Copy link

Hi all,
I am running Kilosort3 on Nueopixels dataset. All the output files are saved and it seems to work but it just crushes when saving the cluster_group and the params file. I made my own params file to check if the output was fine and I ran Phy2. The number of clusters and spikes seems reasonable so I don't really understand where this error is coming from.
This is what I get:

Error using copyfile
Cannot write to destination:
/'dir'/kilosort3.
Use the 'f' option to override.
Error in rezToPhy2 (line 184)
    copyfile(KSLabelFilename, fullfile(savePath, 'cluster_group.tsv'));
Error in main_kilosort (line 52)
rezToPhy2(rez, rootZ);

Thank you for your help!

@czuba
Copy link
Contributor

czuba commented Jul 2, 2021

tl;dr: something is up with your save path...probably check your repo/script usage too.


Looks like you've got some kind of mashup between an older & newer version of Kilosort. The script version of running Kilosort3 is main_kilosort3.m, not simply main_kilosort.m. ...in the "3" version, it tacks on & creates a sub directory on top of your intended save directory, but that output directory appears to not exist in your usage.

rootZ = fullfile(rootZ, 'kilosort3');
mkdir(rootZ)
rezToPhy2(rez, rootZ);

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.

2 participants