Skip to content

bablab/Physiology_GUIs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Physiology_GUIs

Author: Paul Savoca

Email: ps365@g.ucla.edu

Twitter: @pw_savoca....

Lab: Brain and Body Lab, UCLA

Neurokit2 ECG GUI (nk_ecg_gui.py)

This application is intended for manual editing of ECG data from .Acq files. The GUI allows for manual checking and editting of R-peaks which are initially detected using the Neurokit2 (Makowski et al., 2020).

As of May 2024, you can also edit ECG data stored as a time-series in a .Csv file. The data must be stored as a single column with no header. The application will prompt you to manually enter the sampling rate of your data.

The application generates 2 output files:

  1. the filtered ECG signal
  2. the finalized set of R-peaks

These files can then be used for ECG-based analyses (e.g., IBI, HRV, ect.)

Installation & Running

  1. Download 'nk_ecg_gui.py'
  2. Install necessary dependencies:
  • 'pip install numpy neurokit2 PySimpleGUI matplotlib mpl_point_clicker bioread'
  1. To start application -- From command line: 'python nk_ecg_gui.py'

Using Neurokit2 ECG GUI

After selecting the .acq file you want to clean, select the channel containing your ECG data and the notch filter you wish to use: nk_gui_settings

You can then visualize your ECG Data. Zoom and Scroll through data using toolbar: nk_gui_viewECG

You can manually added missing peaks using the "Add Peak" function and then clicking where you would like to add the r-peak. It will automatically "snap" to nearest peak: nk_gui_addPeak

Alternatively, you can use the "Remove Peak" to identify peaks that were erronously detected, and you wish to be removed from analyses: nk_gui_removePeak

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages