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.2.0.tar.gz (4.3 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.2.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for muse2wfdb-1.2.0.tar.gz
Algorithm Hash digest
SHA256 3aec379c592808f25ebdd44e7d5dfdd1dcc7aa9a37d3a4056b87a30187c44be2
MD5 dee23fecd89300c24e4ec316f24bc4c5
BLAKE2b-256 fb8271c3d3afca873e718ab5b3d68fb700ffb0bdbc5a98db083646ae3a2de274

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for muse2wfdb-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8695b3caf42adb9cdd9a32bbf03d97656d986679790189e77fab3f9e83083d1b
MD5 5d4036a6258ee2faf9a23e45d61f2c4a
BLAKE2b-256 154449636fc339174a2994fabd0a98dfd9008e4564c0f3676f436df70ea4881f

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