-
Notifications
You must be signed in to change notification settings - Fork 186
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
Exception: kilosort2_5 returned a non-zero exit code #3204
Comments
Hi @sarage22 this means that the sorting failed while running the sorter in Matlab. Some troubleshooting you could try would be:
|
Similar question in spikeinterface v0.101.0! import numpy as np
import matplotlib.pyplot as plt
import spikeinterface.full as si # import core only
import spikeinterface.extractors as se
import spikeinterface.preprocessing as spre
import spikeinterface.sorters as ss
import spikeinterface.postprocessing as spost
import spikeinterface.qualitymetrics as sqm
import spikeinterface.comparison as sc
import spikeinterface.exporters as sexp
import spikeinterface.curation as scur
import spikeinterface.widgets as sw
import os
os.system('newgrp docker')
os.system('export KILOSORT2_5_PATH=/home/zhangdaohan20h/Kilosort-kilosort25/')
# add the path of unzipped files downloaded from github to environmental variance KILOSORT2_5_PATH
rec = se.read_spikeglx("/home/zhangdaohan20h/public_data/NPX_examples/Pt01",
load_sync_channel=False, stream_id="imec0.ap")
rec = si.astype(rec, np.float32)
rec = si.bandpass_filter(rec)
rec = si.common_reference(rec)
import docker
sorting_KS2 = ss.run_sorter(sorter_name="kilosort2_5", recording=rec, docker_image=False, n_jobs = 20, verbose=True) (kilosort4) [zhangdaohan20h@gpu01 notebook]$ python preanalysisGLX.py /home/zhangdaohan20h/public_data/NPX_examples/Pt01/Pt01_g0_t0.imec0.ap.meta --version, -[vV] Print version and exit successfully. Recommended use is to write the output of (alias; declare -f) to standard If the options --read-alias and/or --read-functions are specified then the Report bugs to which-bugs@gnu.org.
Warning: Name is nonexistent or not a directory: /tmp/Editor_vxdxq To get started, type doc. For product information, visit www.mathworks.com. Time 1s. Computing whitening matrix.. Getting channel whitening matrix... Warning: The CUDA driver must recompile the GPU libraries because your device is more recent than the libraries. Recompiling can take several minutes.
In preprocessDataSub (line 57) In kilosort2_5_master (line 71) Channel-whitening matrix computed. Time 783s. Loading raw data and applying filters... Time 1034s. Finished preprocessing 382 batches. Drift correction ENABLED pitch is 20 um ----------------------------------------Undefined function 'spikedetector3' for input arguments of type 'gpuArray'. #And my spikeinterface_log.json file in the generated kilosort2_5 _output folder looked like this: |
I have tested that Run KS2.5 locally without using the spikeinterface wrapper is normal, but our VM running Matlab is terribly inconvenient to use. So i still hope the problems can got fixed! Thanks a lot! |
Hello,
My process got killed at the very end of spike sorting (kilosort 2_5) and I don't understand the error.
I am not familiar with spike interface so any help is welcome 🙏
The text was updated successfully, but these errors were encountered: