-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
[Feature] Add Fast Visibility Graph Based ECG R-peak Detector #939
[Feature] Add Fast Visibility Graph Based ECG R-peak Detector #939
Conversation
Thanks for opening this pull request! We'll make sure it's perfect before merging 🤗 |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #939 +/- ##
==========================================
- Coverage 54.82% 54.60% -0.22%
==========================================
Files 304 304
Lines 14269 14333 +64
==========================================
+ Hits 7823 7827 +4
- Misses 6446 6506 +60 ☔ View full report in Codecov by Sentry. |
Now, I should have adapted the package at all the required places. Together with the authors of the koka2022 method, we decided to remove it in favor of this more advanced method. I tested the implementation briefly on two databases, and it appears that it procures results comparable to the original FastNVG algorithm (https://github.com/JonasEmrich/vg-beat-detectors) |
Amazing job! Thanks
In that case, could we leave the |
Thanks for pointing this out! Now, I added a warning in |
I think we can just add it in |
Although the emrich2023 method uses the same cleaning as koka2022 (points to the same function), I think that perhaps users also should use emrich2023 here instead of koka2022. It's just the naming but makes it more consistent, since the koka2022 method is deprecated/removed. Or what are your thoughts? |
makes sense! |
@JonasEmrich is it good for me to merge? |
@DominiqueMakowski yes, from my side it is ready to merge |
Amazing, thanks again for all the work :) |
Hello @JonasEmrich and @DominiqueMakowski , ValueError: NeuroKit error: ecg_findpeaks(): 'emrich2023' not implemented. After installing ts2vg, I was able to use koka2022, but I am still unable to run ecg_findpeaks() using the Emrich 2023 method. Is this emrich2023 method actually implemented in NeuroKit2? When I checked the source code for ecg_findpeaks(), I also noticed, that emrich2023 wasn't listed in the available methods. Any help would be greatly appreciated, thank you! |
I can see the lines in the current version: NeuroKit/neurokit2/ecg/ecg_clean.py Lines 126 to 127 in 1aa8dee
Do you have the latest version of NK installed? |
Thank you for the quick response! I was using version 0.2.7. I have now updated to version 0.2.9 and can now use the emrich2023 option. Thank you so much! :) |
Adding the accelerated visbility-graph-based R-peak detector (https://ieeexplore.ieee.org/document/10290007, https://github.com/JonasEmrich/vg-beat-detectors) #938