Skip to content

Waveform limit locator #134

Open
Open

Description

@krivenkoz

Is there any way to detect P and/or T peaks and/or their bounds in new version? Something like ECGPUWAVE functionality. Now I have to call subprocess with binary ECGPUWAVE version and it's inconvenient way for me. Thanks a lot.

Activity

  1. cx1111 commented on Jun 21, 2018

    @cx1111
    Collaborator

    Not currently. Planning to add in the next few months. Contributions welcome.

  2. self-assigned this
    on May 14, 2020
  3. RichardBJ commented on Mar 18, 2022

    @RichardBJ

    Whoops, posted comment from wrong account!
    I am going to have a crack at converting ECGPUWAVE into a Python form... version I have from Physionet is Fortran so since I've only ever done a little (Fortran) programming... and that was 30 years ago, don't hold your breath. I am always re-inventing the wheel so if anyone has already done this or even made a big start please let me know!?
    I am already aware that apart from regular errors, I am likely to have errors with the switch to zero indexing, but perhaps I should put a git of this little project up entirely separately from this project... I don't want to contaminate your beautiful code!!

  4. cx1111 commented on Mar 18, 2022

    @cx1111
    Collaborator

    Hey Richard, we're always grateful for contributions. Feel free to make pull requests to this project if you'd like, and we'd be happy to review.

  5. krivenkoz commented on Mar 19, 2022

    @krivenkoz
    Author

    Hi guys! I wasted a lot of time for searching Python-version of waveform locators. The only version I've found is in Neurokit2 package. But. I've compared it with binary version of ECGPUWAVE and IMHO ECGPUWAVE is slightly better in terms of MSE (mean squired error) and, of course, much faster. Moreover, it's good idea to implement robust Lipponen-Tarvainen algorithm of R-peaks correction (PMID: 31314618, DOI: 10.1080/03091902.2019.1640306).

  6. RichardBJ commented on Mar 20, 2022

    @RichardBJ

    Thanks, Neurokit2 actually looks great, I will check it out, meanwhile I am merely attempting a line-by-line translation of Fortran to Python. If I ever get it to work it will be very slow compared to any complied version. Just scratching an itch here, I doubt it will be of practical use, but time will tell.

  7. RichardBJ commented on Mar 28, 2022

    @RichardBJ

    Update: Having translated over 1000 lines of code, including an interesting coding bug that you have to clone for the program to work... I have given up! I got to the point where one of the subroutines has too many GOTOs that drop you back into the middle of nested ifs that I realised I would have to reproduce the functionality, not just "translate". AND The Neurokit2 ecg_delineate() you pointed me to works pretty well. The line-by-line translation of Fortran to Python would have been rather slow anyway. So I will move ahead using that suite now alongside WFDB. I am now converting my raw data from CED format to wfdb records and drawing from a mixture of wfdb, neurokit2 and the full range of Python packages available. Thanks so much for your help with this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions