-
Notifications
You must be signed in to change notification settings - Fork 196
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
Amplitude Cutoff not working #3605
Comments
Kilosort often has a problem of generating spikes after the recording (maybe due to padding?). We suggest running import spikeinterface.curation as scur
clean_sorting = scur.remove_excess_spikes(sorting, recording) Then analyze your data with this :) |
I've added these lines into my code like this:
|
analyzer = si.create_sorting_analyzer(sorting=sorting, recording=recording, format="memory") This is wrong. You need to put in your |
After using this, much of the data I get is NaN. At first it wouldn't let me compute the amplitudes at all and gave me this error:
In order to get some output I changed line 1266 in "misc_metrics.py" to this:
Now my output for amplitude cutoff looks something like this: Amplitude Cutoff |
amplitude cutoff is a pretty strict metric (I often find that my neurons don't fit with the requirements). How many spikes are you getting/neuron. Looking at your script more I'm still seeing a lot mixed analysis inside of spikeinterface and outside of spikeinterface (for example I don't think your "pcs" that you are loading make sense. I would suggest cleaning up the script a bit so we can make sure things are working. I would suggest starting out by looking at something like |
I was trying now to get the raw amplitudes sorted by unit. In the documentation it stated:
I tried doing this to get the raw amplitudes separated per unit:
However I'm getting this error:
|
I am trying to calculate the amplitude cutoff for a set of data. Whenever I try to compute it I get an error.
I'm assuming there is some type of discrepancy between the size of the computed spike amplitudes and the way the amplitude cutoff is calculated.
The text was updated successfully, but these errors were encountered: