-
Notifications
You must be signed in to change notification settings - Fork 249
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
Removing bad channels not working in Kilosort 2.5? #315
Comments
Something isn't right here, could you please double check your configuration file? I am running it fine with several channels disabled via connected(k) = 0. NchanClosest should be 10, so that index should certainly not exceed 95. You could stop in debugger there and see what the different parameters are and what are the sizes of different variables. |
I see now, thanks. It has to do with the lower number of channels then when you remove those 10. We are in the process of patching the code so it works for lower channel counts, should be some time today. |
That would be awesome. Thanks! |
I am wondering if this has been already done. Or, is it now updated on Kilosort 3 and not 2.5? |
I think that's correct. I just got around this by modifying "standalone_detector.m" in Kilosort 2.5. I copied this line of code from "standalone_detector.m" in Kilosort 3: NchanNearUp = min(numel(xcup), 10*NchanNear); and replaced this line of code in "standalone_detector.m" in Kilosort 2.5: NchanNearUp = 10*NchanNear |
Hi,
I think this relates to what was discussed but unsolved in #279, but I'm wondering if there is a way to remove bad channels from sorting in Kilosort 2.5. I'm using Cambridge 64ch linear probe, and I'm trying to exclude ch1-10, for example.
When I tried setting connected = 0 for ch1-10 in the chanMap file, datashift2 throws an error:
Alternatively, I also tried right-clicking the channels in the GUI, but in this case I got a different error:
Is there anything I'm missing? Back in Kilosort 1, changing chanMap file as well as ops.Nchan was enough to exclude channels, but I don't see ops.Nchan in Kilosort 2.5.
I would appreciate your help.
Thanks!
The text was updated successfully, but these errors were encountered: