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

Setup 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

Running the Program

  1. Activate the Conda environment
conda activate ecg_marker_env
  1. Install the library
conda install -c conda-forge libxcb
  1. Run the program
python3 ecg_marker.py  [-h] [-i INPUT] [-f INPUT_FILE] [-d OUTPUT_DIR]
                       [-o OUTPUT_FILE] [--qrs_file QRS_FILE]
                       [--qt_file QT_FILE] [--vel_file VEL_FILE]
                       [--arrhythmia_file ARRHYTHMIA_FILE]
                       [--extrasystole_file EXTRASYSTOLE_FILE]
                       [--apd_file APD_FILE] [-r RAW_DATA]
  • Options:
  -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)

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.

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-1.1.0.tar.gz (16.7 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-1.1.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file ecg_marker-1.1.0.tar.gz.

File metadata

  • Download URL: ecg_marker-1.1.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for ecg_marker-1.1.0.tar.gz
Algorithm Hash digest
SHA256 28e8430549502b1f1ee094711b200e3dd2f5795a922c8a9b361d9e54c253017f
MD5 f251c473d51dc68910f55f5fd8e25e8e
BLAKE2b-256 170fe97de86d1297cd44e983feef8ad49e90ebd8aa229c5dbf79a51aa0b2c767

See more details on using hashes here.

File details

Details for the file ecg_marker-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: ecg_marker-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 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-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fce196424f3252a32b067590340249039e0a9f5f37a577199afc9c79f191540
MD5 92290f76c156dcefa8fde16d65ea06ce
BLAKE2b-256 d25c1db9d91abbb516b450d46633f46ea5195f739d726b54e3d4ee5748055cb6

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