MouseLand / Kilosort

Fast spike sorting with drift correction for up to a thousand channels
https://kilosort.readthedocs.io/en/latest/
GNU General Public License v3.0
457 stars 239 forks source link

Channel Number Changes #18

Closed barbouni closed 5 years ago

barbouni commented 5 years ago

Hello.

When running kilosort2 in our raw data we end up getting sorted spikes in less channels than originally recorded from in our actual raw data. We import the channel info in the gui but we only get around 70 from our total of 270 channels. Any ideas why this happens and how we could deal with it? Thanks!

chris-angeloni commented 5 years ago

By default, KiloSort removes "bad" channels that have low spike rates; it could be that a majority of your channels don't have spikes, so are not considered. If this is indeed the problem, you can force it to use all channels by setting ops.minfr_goodchannels to zero. (or the analogous field in the GUI, it's default is .1)

barbouni commented 5 years ago

Thank you!

chris-angeloni commented 5 years ago

You might also want to make sure your channel map has the correct number of channels, if it is importing fewer into the GUI by default (in the GUI, you should see all 270 channels in the probe layout window, and bad ones will be marked yellow or red, so if the automatic channel exclusion is removing 200 of your channels, you should see about 200 yellow/red channels, and 70 green ones)

nsteinme commented 5 years ago

I made an issue to remind myself to make this more clear in the GUI: https://github.com/MouseLand/Kilosort2/issues/20

@barbouni if this thread has answered your question, go ahead and close this issue? Thanks -