This program allows the interactive visualization and annotation of ECG tracings from input files (either raw data or previously annotated)
Project description
ECG_MARKER
Install using PyPi
- Install System Requirements
sudo apt install python3-pip
sudo apt install python3-tk
sudo apt-get install python3-pil.imagetk
- Install the latest version available on Pypi: https://pypi.org/project/ecg-marker/
pip install ecg-marker==x.x.x
Test Commands
-
Download the test files from the repository: https://github.com/SoaThais/ECG_MARKER/tree/main
-
For unprocessed files
python3 python3 -m ecg_marker -i ./input/ -f 0
- For processed files
python3 python3 -m ecg_marker -i ./output/ecg_data.txt -r 0
Install source code on Windows
- Enable WSL
Open PowerShell as administrator and run the following command to install WSL:
wsl --install
- Install Ubuntu on WSL
After enabling WSL, open the Microsoft Store, search for Ubuntu (or another Linux distribution you prefer), and install it.
- Update packages in Ubuntu
In the WSL terminal, run the following commands to update the system packages:
sudo apt update
sudo apt upgrade
- Install Miniconda:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc
- Install and configure Git
sudo apt install git
git config --global user.name "your_name"
git config --global user.email "your_email@example.com"
- Clone the repository and navigate to the project directory:
git clone git@github.com:SoaThais/ECG_MARKER.git
cd ECG_MARKER/
- Create a Conda environment with the project dependencies
conda env create -f environment.yml
- Activate the Conda environment
conda activate ecg_marker_env
- Install the library
conda install -c conda-forge libxcb
Test Commands
- For unprocessed files
python3 ./src/ecg_marker/ecg_marker.py -i ./input/ -f 0
- For processed files
python3 ./src/ecg_marker/ecg_marker.py -i ./output/ecg_data.txt -r 0
Note
If a folder is used as input, name the files in the directory in alphabetical order.
Command line arguments
-h, --help show this help message and exit
-i INPUT Input
-f INPUT_FILE Input File (1) or Input Directory (0)
-d OUTPUT_DIR Output Directory
-o OUTPUT_FILE Output File
--qrs_file QRS_FILE Output file with QRS data
--qt_file QT_FILE Output file with QT data
--vel_file VEL_FILE Output file with estimated normalized velocity data
--arrhythmia_file ARRHYTHMIA_FILE Output file with arrhythmia marking
--extrasystole_file EXTRASYSTOLE_FILE Output file with extrasystole marking
--apd_file APD_FILE Output file with estimated APD data
-r RAW_DATA Raw Data (1) or not (0)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ecg_marker-2.0.0.tar.gz.
File metadata
- Download URL: ecg_marker-2.0.0.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b9c7d8b759c8bcfaab7c9404f8a0beee8da6139e1f53a45ea04caf41c108ab2
|
|
| MD5 |
d17bba0af7d4a0f876c6120dccd62c01
|
|
| BLAKE2b-256 |
fdf0e135258354e0b75ff6a5882cc4b401ceba6f04a2ef666aa09b10c71230e1
|
File details
Details for the file ecg_marker-2.0.0-py3-none-any.whl.
File metadata
- Download URL: ecg_marker-2.0.0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f93204773e7bb0da3087476a5f4edafae8a5bf126e4e444b6646000c06c5d3c5
|
|
| MD5 |
73f34c2956a1c87cbed070255f39cdfa
|
|
| BLAKE2b-256 |
05179a69a39ca87c73dfb2b5a417c29532289fa459c96e6c92c3c4dbed416125
|