-
Notifications
You must be signed in to change notification settings - Fork 256
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
Fail to get some seemingly good quality units #190
Comments
hi Qianyun, can you please post a screenshot of the data in the GUI, where you can clearly see the same spikes on nearby channels? That is usually the best way to verify the configuration. Also, please post the batch-to-batch similarity matrix. If there is an abrupt transition, that could explain some of the missing spikes you are seeing. For the neuron with the double waveform template, it's possible this is not the "main" template. Have you looked around for other templates on that channel? |
Sorry for the long delay. I meant I wanted to see the whitened data in the Kilosort GUI (not the Phy GUI). Based on what I see, your neurons are either small, or the channels are spaced relatively far apart. Each unit only shows up on one channel, which means that during drift, units may "fall" in-between channels, and then you cannot track them anymore. However, this wouldn't explain why some seemingly good spikes are not picked. Have you checked whether they are picked by a different unit on those channels? It would be a very different problem if a unit got "over split" into multiple pieces vs some spikes just never got picked at all. |
Hi,
I've been using KS2 for spike soring with recordings in cerebellar nuclei for a while. Recently, we changed to a new probe (not sure if this is the cause) and ran into a new problem that I have never experienced before - missing/oversplit units that seem to have pretty good quality (at least by eye).
The probe we are using now is a neuronexus A4X16-poly2 probe, and for our recording purposes, we deliberately broke one shank, so now it's a A3X16-poly2 probe. The broken shank has been marked disconnected in the channel map and has been verified in KS2 GUI. We are doing acute recording in head-fixed mice locomoting on a wheel, so there is certain amount of short-term and long-term drifting.
As you can see in the figure below, there is a very good unit at channel 38. It was at channel 36 in the beginning, but drifted to channel 38 (22 is the OpenEphys channel num for the same channel) and remained relatively stable at channel 38 at least for the later half of the recording. But the spike sorting was never able to sort the majority of the spike into a single unit. After the sorting, there were always several units associated with this channel, and every sorted unit picked only a fraction of the spike, and the waveform looked wierd to me.
After enlarging the trace view, using my own eyes, I cannot see obvious differences between the spikes that KS2 picked and not picked.
Based on what I saw, I tried to manipulate some parameters, thinking maybe that would help. I tried these things separately: (1) make KS2 biases on big amplitude units by increase the threshold to [20 8]. (2) since there was drifting, decrease the amplitude penalty lam to 3. (3) restrict the time range to only the later half of the recording. (4) increase the waveform variability within one template - momentum - to [50 400].
Basically, none of these parameter twicking improved the sorting effectively...The sorting results got even worse in most of the cases...
I was wondering what makes this unit so difficult to sort. One possible reason is that there is actually two neurons on that channel, with different waveforms, so that's why the template waveform looks so wierd. Another thought is that since the amplitude is very high, indicating the neuron was very close to the recording site, so maybe it was subjected to a higher variability in its waveform due to the brain movement/drifting, a tiny bit of drifts can shift the waveform a lot???...
BTW I've had KS2 working well with my other sessions, and it can effectively pick good units even with drifting. Here is another example, and use just default settings for all the parameters:
All KS2 sorted spikes were marked with color. You can see that KS2 was able to pick channel 27 (even considered drifting!) but failed to catch channel 40.
It would be deeply appreciated if you can offer any advice! Big thanks in advance!!
Qianyun
The text was updated successfully, but these errors were encountered: