Skip to main content

Convert GE MUSE ECG XML exports to WFDB format

Project description

muse2wfdb

Convert GE MUSE XML ECG exports to WFDB format

muse2wfdb is a lightweight Python library that converts ECG data exported from the GE MUSE Resting ECG System (in XML format) into WFDB (WaveForm DataBase) format, compatible with PhysioNet tools and the wfdb Python package.

Installation

Install directly from PyPI:

pip install muse2wfdb

Or install locally from source:

git clone https://github.com/nagyl1999/muse2wfdb.git
cd muse2wfdb
pip install .

Usage

An example is provided in the examples folder.

from muse2wfdb.converter import muse_to_wfdb
import wfdb

muse_export = "examples/anonim_pac_xml_export.txt"
wfdb_filename = "patient001_ecg"

annotations = muse_to_wfdb(muse_export, wfdb_filename, ['Age: 75', 'Dx: 316998'])

record = wfdb.rdrecord(wfdb_filename)
annotation = None

if annotations:
    annotation = wfdb.rdann(wfdb_filename, 'atr')

wfdb.plot_wfdb(record=record, annotation=annotation, title="MUSE exported ECG")

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

muse2wfdb-1.5.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

muse2wfdb-1.5.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file muse2wfdb-1.5.0.tar.gz.

File metadata

  • Download URL: muse2wfdb-1.5.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for muse2wfdb-1.5.0.tar.gz
Algorithm Hash digest
SHA256 4b4296bde844148342717ab83850cb20cca18d40c9ae6e4167167743d91e8a52
MD5 75814844e720060faf2b4055dbbfa329
BLAKE2b-256 304ff9f38d96138009c4b9becd06139cee3ad3951aee155d31dcaf0c51253287

See more details on using hashes here.

File details

Details for the file muse2wfdb-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: muse2wfdb-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for muse2wfdb-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f96296d8ee17bece0207ce719c4565baaa010e85937ad4c237a117f0535d9af
MD5 947eac784b97c4dfde6857ea11dd8d60
BLAKE2b-256 a9ddde7f2a7a9eb6a011388d069ddefccd4ceef85000440cff87aac89cb4e317

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