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

Force removal of template? #41

Open
ereming opened this issue Dec 10, 2016 · 3 comments
Open

Force removal of template? #41

ereming opened this issue Dec 10, 2016 · 3 comments

Comments

@ereming
Copy link

ereming commented Dec 10, 2016

I'm interested in experimenting with something. Would it be straightforward to kill a cluster manually, then re-run part of the sorting algorithm to resort that cluster's spikes among the remaining templates? One special case would be where I suspect that a particular cluster may actually be several neurons firing together (also see #10). Would it be possible to remove the template for that neuron manually, then rerun the step which determines overlapping spikes (from the remaining templates)?

@marius10p
Copy link
Collaborator

You can do this by setting to zeros the corresponding array of rez.dWU(:,:,k) = 0 for the cluster k you want to remove. Then run fullMPMU again. Keep in mind that Phy uses zero indexing.

@nsteinme
Copy link
Collaborator

nsteinme commented Dec 10, 2016 via email

@ereming
Copy link
Author

ereming commented Mar 27, 2018

I have a question about this technique, related to how KiloSort implements thresholding for spike detection. Is the threshold applied to single channels, or groups? Will an event with low energy on multiple channels get counted as a spike, but not an event with the same amplitude on a single channel? I ask because I'm sorting a file and noticing that there are several clusters with the following properties:

  1. spatially segregated peaks.
  2. a moderate number of spikes - too many for them to be statistically likely to result from the temporal collision of a pair of any of the other clusters.
  3. template shapes on the individual electrodes which are much smaller than any of the other clusters to which they might otherwise be assigned.

The curious thing is 3 - I don't see clusters with the same (small) amplitudes but which exist only at a single location (i.e. fewer channels).

I think the solution is probably to just ignore these clusters as noise, so I'm asking mostly out of curiosity. It wasn't clear to me by going back through the paper.

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

3 participants