Skip to main content

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

  1. Install System Requirements
sudo apt install python3-pip

sudo apt install python3-tk

sudo apt-get install python3-pil.imagetk
  1. Install the latest version available on Pypi: https://pypi.org/project/ecg-marker/
pip install ecg-marker==x.x.x

Test Commands

  1. Download the test files from the repository: https://github.com/SoaThais/ECG_MARKER/tree/main

  2. For unprocessed files

python3 python3 -m ecg_marker -i ./input/ -f 0 
  1. For processed files
python3 python3 -m ecg_marker  -i ./output/ecg_data.txt -r 0 

Install source code on Windows

  1. Enable WSL

Open PowerShell as administrator and run the following command to install WSL:

wsl --install
  1. Install Ubuntu on WSL

After enabling WSL, open the Microsoft Store, search for Ubuntu (or another Linux distribution you prefer), and install it.

  1. Update packages in Ubuntu

In the WSL terminal, run the following commands to update the system packages:

sudo apt update
sudo apt upgrade
  1. Install Miniconda:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc
  1. Install and configure Git
sudo apt install git
git config --global user.name "your_name"
git config --global user.email "your_email@example.com"
  1. Clone the repository and navigate to the project directory:
git clone git@github.com:SoaThais/ECG_MARKER.git
cd ECG_MARKER/
  1. Create a Conda environment with the project dependencies
conda env create -f environment.yml
  1. Activate the Conda environment
conda activate ecg_marker_env
  1. Install the library
conda install -c conda-forge libxcb

Test Commands

  1. For unprocessed files
python3 ./src/ecg_marker/ecg_marker.py  -i ./input/ -f 0 
  1. 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

ecg_marker-2.0.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecg_marker-2.0.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

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

Hashes for ecg_marker-2.0.0.tar.gz
Algorithm Hash digest
SHA256 2b9c7d8b759c8bcfaab7c9404f8a0beee8da6139e1f53a45ea04caf41c108ab2
MD5 d17bba0af7d4a0f876c6120dccd62c01
BLAKE2b-256 fdf0e135258354e0b75ff6a5882cc4b401ceba6f04a2ef666aa09b10c71230e1

See more details on using hashes here.

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

Hashes for ecg_marker-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f93204773e7bb0da3087476a5f4edafae8a5bf126e4e444b6646000c06c5d3c5
MD5 73f34c2956a1c87cbed070255f39cdfa
BLAKE2b-256 05179a69a39ca87c73dfb2b5a417c29532289fa459c96e6c92c3c4dbed416125

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page