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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file muse2wfdb-1.3.0.tar.gz.
File metadata
- Download URL: muse2wfdb-1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ce35fadd8d55270ce3ba9eed675377835ff81e580f232bcd8235320f3fd6f3c
|
|
| MD5 |
84dba633d22cecd40c1ba41e53a7686f
|
|
| BLAKE2b-256 |
fd03fee87e0392ca6c61a0c4f9db5f31e2167311b4c4d04eb665b18703d6e97a
|
File details
Details for the file muse2wfdb-1.3.0-py3-none-any.whl.
File metadata
- Download URL: muse2wfdb-1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcad0ceba27c4d3b00e1e2e57fd7e979733980dd00fe3dd28dd832a3c52b7a4d
|
|
| MD5 |
4032c7de178e7f3321d5f393f7cf48ca
|
|
| BLAKE2b-256 |
863e4f11bea13a9b3eafa597bf38cca02757adcea412941e836645904c427fe9
|