Skip to content
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

Noisy clusters #80

Open
shihaisun opened this issue Aug 6, 2017 · 10 comments
Open

Noisy clusters #80

shihaisun opened this issue Aug 6, 2017 · 10 comments

Comments

@shihaisun
Copy link

Hi KiloSort team,

A lot of my clusters are noisy following KiloSort spike-sorting. Below is an example of a noisy cluster (as seen in the feature view and waveform view).

image

I changed the maximum clusters in the config file to 128 and left the rest on default. Can you guys recommend me any setting changes to fix my noisy clustering issue?

Thank you so much for your time,
Scott

@nsteinme
Copy link
Collaborator

nsteinme commented Aug 7, 2017 via email

@brendonw1
Copy link

Hey @nsteinme any nice ways you guys have to run such a filter? Maybe a plugin?

@nsteinme
Copy link
Collaborator

nsteinme commented Mar 10, 2018 via email

@brendonw1
Copy link

Ah i see. That's a good point. So you create a second binary file that's averaged across channels and then run kilosort on that? (also, have you ever tried median filtering?). Thanks

@nsteinme
Copy link
Collaborator

nsteinme commented Mar 10, 2018 via email

@brendonw1
Copy link

Thanks!
By the way it looks like that does 2D median filtering actually!
"% Subtracts median of each channel, then subtracts median of each time
% point."
(and all calls are "median" not "mean")

@nsteinme
Copy link
Collaborator

I think by "median filtering" people sometimes mean like what matlab's "medfilt1" does - where it takes a running window and replaces each point with the median of the values in that window. Here I'm doing something different: First, for each channel separately, I subtract the channel's median (across all time) from every point in the trace (this step just removes channel offsets, which is a thing with neuropixels probes but probably irrelevant for most probes); second, for each time point separately, I take the median across channels and subtract it from every channel's point. The second step is what people call common average referencing (whether it's a mean or median, probably doesn't matter too much...). I should have made that comment in the function more clear!

@g874259
Copy link

g874259 commented Oct 26, 2018

Hi @nsteinme,

  1. Should we do the data preprocessing (subtract channel's median and CAR) ONLY for good channels?
  2. The data preprocessing on 1. should be done after high-pass (300Hz) filtering?
    Tks, JJ

lshaheen pushed a commit to LBHB/KiloSort that referenced this issue Mar 17, 2021
@HankyulKwak
Copy link

Hi @nsteinme,

I have a question
Firstly, when we start kilosort, it begins with preprocessing. I was wondering if the preprocessing includes applyCARtoDat.m ?
Secondly, if it doesn't include applyCARtoDat.m, do I have to run kilosort following applyCARtoDat.m ?

Thanks a lot.

Hankyul Kwak

@nsteinme
Copy link
Collaborator

nsteinme commented Aug 27, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants