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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for muse2wfdb-1.4.0.tar.gz
Algorithm Hash digest
SHA256 d463256517baaa05f5c13af8da3e5885d2dedb8641060d7cccc2f91f7202d288
MD5 bece1f9e4d62afc3bc7b2506c95beaf5
BLAKE2b-256 ba46ee72044a5b74c9c104703f223fd6a97dcf868d83c629699041475d1d5f57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: muse2wfdb-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2196acff0188d5ad2c9d6ef07b6949a58547149d971be75e31fb921058e2ab4c
MD5 d13375bdfb2e3c1f925b67fa5a4217b6
BLAKE2b-256 6ca07971eb3cba61d14cdd653dcc80b05e063eb3d010b5c93a9b1f7dcb97658d

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