Metadata-Version: 2.4
Name: muse2wfdb
Version: 1.5.0
Summary: Convert GE MUSE ECG XML exports to WFDB format
Author: Levente Nagy
License: MIT
Project-URL: Homepage, https://github.com/nagyl1999/muse2wfdb
Project-URL: Issues, https://github.com/nagyl1999/muse2wfdb/issues
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: wfdb>=4.1.0
Requires-Dist: xmltodict>=0.13.0
Requires-Dist: numpy>=1.22
Dynamic: license-file

# 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:

```bash
pip install muse2wfdb
```

Or install locally from source:

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

## Usage

An example is provided in the `examples` folder.

```python
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")
```
