question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avoid segmentation error during kilosort2 cluster splitting

See original GitHub issue

Hi We have been experiencing segmentation errors during cluster splitting with kilosort2.5 We resolved this by installing a different version of the mkl library and, in our fork, setting the corresponding (system specific) paths as environment variables in kilosort_master.m as follows:

setenv('BLAS_VERSION', '/usr/lib/x86_64-linux-gnu/mkl/libblas.so');
setenv('LAPACK_VERSION', '/usr/lib/x86_64-linux-gnu/mkl/liblapack.so');

Allowing this in df spikeinterface is pretty much the last step we need before we can get rid of our fork Do you think that would be possible? Do you have a preference about how to do this? We could for instance add the paths to BLAS and LAPACK as kilosort parameters.

We’ll be happy to submit a PR implementing whichever approach seems preferable. Best Tom

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
samuelgarciacommented, Oct 6, 2022

@alejoe91 : Maybe it would be more convinient to add some option in kilosort with theses env variable that could injected in the generated script as suggested. If we use the slurm laucher then the solution of @Dradeliomecus will not work but if it is inside the shell script then it should be OK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Segmentation fault on splitting cluster · Issue #199 - GitHub
I'm having the same problem as issue #85 although that one is closed. I printed mean(diag(StS)) in every iteration as suggeested and what...
Read more >
A Fully Automated Approach to Spike Sorting - ScienceDirect
In other situations, clustering is automated, but the user must curate the results by selecting which clusters to reject, merge, or even split...
Read more >
Evaluation and resolution of many challenges of neural spike ...
Electrophysiological recordings from multiple neurons across multiple channels pose great difficulty for spike sorting of single neurons.
Read more >
Spike sorting based on shape, phase, and distribution ...
Spike sorting based on shape, phase, and distribution features, and K-TOPS clustering with validity and error indices.
Read more >
Improved Quality Control for Spike Sorting and Clustering to ...
Figure 1. Clusters Merging Errors: Example. A. Upper panel shows 'ON-OFF' categorization for Cluster 17 from blocks 95 to 195. X axis refers...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found