You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am wondering if you could clarify what the units are for the parameters: threshold, min_avg_amp, and AHP_thr.
We are hoping to modify our parameters for our sorts as we are running into the issue that HS2 4 is detecting way more spikes and units compared to HS2 3.104 (and far more than what is reasonably expected for our recordings).
The text was updated successfully, but these errors were encountered:
I'm pretty sure threshold is a multiple of the standard deviation of the signal.
For the other two there are some clarifications in #80, but from my experience a lot of it comes down from trying out parameters and iterating until you find something that visually matches what you expect of a spike and produces good clusters.
threshold is indeed an amplitude threshold, but it compares the current amplitude against a baseline and noise estimate that are both approximated as percentiles (baseline is the 33 signal percentage). This is described here: https://www.frontiersin.org/articles/10.3389/fninf.2015.00028/full
min_avg_amp is a threshold for the sum of the signal from threshold crossing to peak - essentially it rejects threshold crossings too short to be real spikes. Note this will depend on signal filtering. On BioCam data we used to apply no filtering, but this HS version has a built-in lowpass filter (can be turned off for a small speed gain). This will affect this sum and so give inconsistent results.
AHP_thr is a threshold for a rebound after a detected peak, it rejects events that don't show a repolarisation. It's compared again against the basline estimate. As @lkct discovered, this was actually not working in the previous implementation, but now it will help reject noise events.
Hope this makes sense. I suggest to analyse a small data segment, start with a high threshold and then see where you start detecting noise. Visualisation is useful, happy to help with tha.
Hello,
I am wondering if you could clarify what the units are for the parameters:
threshold, min_avg_amp
, andAHP_thr.
We are hoping to modify our parameters for our sorts as we are running into the issue that HS2 4 is detecting way more spikes and units compared to HS2 3.104 (and far more than what is reasonably expected for our recordings).
The text was updated successfully, but these errors were encountered: