-
Notifications
You must be signed in to change notification settings - Fork 40
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
AP_end_indices needs some attention #88
Comments
We should also add detailed documentation about how these features work |
Hi,
|
It looks like this behavior is caused by the relatively slow drop of the voltage after the peak. eFEL is using a derivative threshold to detect the spike end. That value is hardcoded atm (should be changed) at -12, when I change it to e.g. -5, I get: So unless we rethink the entire feature, the solution seems to be to let the user change that threshold. Is that ok for you? |
I'm not OP here but I would definitely support user-defined derivative threshold.
Just like for AP_begin threshold.
/Alex
|
A user-defined derivative threshold could work, it's just a bit hard to know a priori what a good value might be. Another way that I found working for this trace is finding 'AP_end_indices' as the first index where voltage crosses the threshold after the peak. This is I think what experimentalists normally do to compute AP duration and AP duration at half height of the action potential. In this way we only need 'AP_begin_indices' (and derivative threshold) and 'peak_indices', which are calculated correctly for this case. However, as you said @wvangeit, I suspect that this would change the behaviour completely. |
Ok, so let's start with the user-definied derivate threshold then. |
What can be a good default value for the downward derivative? |
add AP end indices with a variable derivative threshold in LibV5 #88
In #196, the AP_end_indices work exactly like in V2 and it accepts a variable threshold. With @AurelienJaquier we also did a re-implementation similar to the |
What change in implementation makes these value differ? Is it a significant difference? |
The V2::AP_end_indices just takes the 1st value to be above threshold. When we make it similar to V5::AP_begin_indices, it takes the 1st value only when all next values in a given window (e.g. all 4 next values) are also above threshold. AP_end_indices: 9114->9138 So I guess it can create some significant differences on some features. |
Ok, not sure we should add this new implementation with the same name in eFEL atm. It will change all the results of people running optimizations etc. Maybe we can keep it in mind for the new major eFEL version? |
I think, it would make sense to keep the old default values for backward compatibility but make the threshold user-defined. If a significantly new algorithm is going to be implemented, then perhaps the feature deserves a new name (like adaptation_index and adaptation_index2). |
Ok, sure, #196 has made the threshold user-definable. |
As a followup on an issue encountered by @a1eko, we should look deeper into the AP_end_indices feature. AP_begin_indices was reimplemented in LibV5, but we also need a clean up version of AP_end_indices.
The text was updated successfully, but these errors were encountered: