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.0.0.tar.gz (3.4 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.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ecg_marker-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 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.0.0.tar.gz
Algorithm Hash digest
SHA256 d5e4b65222204fe998e60227e3798b307c05f157f098d6185e9caad24ec87468
MD5 0ea4cd1eec2e7797949155fbb43be1e8
BLAKE2b-256 532c32757b08c3d30672e0512cb36b956c2ce3012d11e964f3eb1d3b9bae67f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecg_marker-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2331807497d11cc1c66e37f1fec5f5f1227969a69716e45a9f9b5c2f156627a
MD5 14ed345421384e17c4db5fec685b0fad
BLAKE2b-256 7ee8539d7be8ad3c67f9a6913132b42da1dbec7a517e0fb9d93fa1fcabf4cec8

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