Semi-automated extrema detection in ECG and respiratory signals
Project description
biotop: picking peaks in physiological data
A simple GUI for human-assisted semiautomatic ECG and respiration preprocessing.
Purpose ECG analysis of real-world data can be tricky, especially when there are lots of artefacts. Automated pipelines exist but the results can often not be inspected, and not manually adjusted.
The current script allows you to import, view and explore ECG and respiratory data. You can run automated peak detection which you can then inspect and modify manually. The results are saved in a JSON file format.
Prerequisites
- Python 3.X
Prerequisite packages are installed automatically using the following:
python3 -m pip install biotop
Usage
For ECG analysis:
biotop
For respiration analysis:
respire
Basic GUI controls
- Mouse scroll wheel up/down : Scroll back and forth in time
Ctrl
key + Mouse scroll wheel up/down : Zoom in/out in time- Mouse left button double click : Insert peak (or zoom in if not zoomed in enough)
- Hold down
shift
while moving the mouse : Snap to closest maximum - Mouse right button single click : Remove peak
- Mouse middle button click : Insert marker for invalid region
- Mouse middle button double click : Remove invalid region
- Keyboard keys:
z
toggles between micro and macro zoom (make sure the window has focus)a
shows the entire signal- Left/right arrow keys scroll through the signal slowly
- PageDown/PageUp keys browse through the signal a full window at a time
For respire (the respiration picker script)
- Hold down
ctrl
while moving the mouse : Snap to closest minimum (handy for selecting troughs)
Development
Install latest development version:
pip install --upgrade "biotop @ git+https://github.com/florisvanvugt/biotop"
Wishlist
- Show a window when waiting for peak autodetection to complete
- Make sure y axis labels remain visible even for greater zoom
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file biotop-0.5.2.tar.gz
.
File metadata
- Download URL: biotop-0.5.2.tar.gz
- Upload date:
- Size: 38.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69d73cf30789e826ff45dfbeaf8193317442c690d25735dbd27587928f0a9b4e |
|
MD5 | 4fcbebfebc00d6cbb17a36722006fcae |
|
BLAKE2b-256 | 8dfdcf09cf38e1bbe56763e856b4103d10453265abf475cf61dbfb72803241e9 |
File details
Details for the file biotop-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: biotop-0.5.2-py3-none-any.whl
- Upload date:
- Size: 38.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 283d9524b88608a08b6dba81ecb9a038785d138d8015931daf07aaf4344469cb |
|
MD5 | 6805316373059eea33f2950f3c4e236f |
|
BLAKE2b-256 | b20ae2ee841acb7886391fa15b784ea1c320bdb8b1cc0525765323c29c392960 |