You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-6
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,13 @@ You can use the provided training set for the `training_data` and `holdout_data`
49
49
50
50
## How do I create data for these scripts?
51
51
52
-
You can use the scripts in this repository to convert the [CODE-15% dataset](https://zenodo.org/records/4916206) to [WFDB](https://wfdb.io/) format. These instructions use `code15_hdf5` as the path for the input data files and `code15_wfdb` for the output data files, but you can replace them with the absolute or relative paths for the files on your machine.
52
+
You can use the scripts in this repository to convert the [CODE-15% dataset](https://zenodo.org/records/4916206), the [SaMi-Trop dataset](https://zenodo.org/records/4905618), and the [PTB-XL dataset](https://physionet.org/content/ptb-xl/) to [WFDB](https://wfdb.io/) format.
53
+
54
+
Please see the [data](https://physionetchallenges.org/2025/#data) section of the website for more information about the Challenge data.
55
+
56
+
#### CODE-15% dataset
57
+
58
+
These instructions use `code15_input` as the path for the input data files and `code15_output` for the output data files, but you can replace them with the absolute or relative paths for the files on your machine.
53
59
54
60
1. Download and unzip one or more of the `exam_part` files and the `exams.csv` file in the [CODE-15% dataset](https://zenodo.org/records/4916206).
55
61
@@ -58,13 +64,42 @@ You can use the scripts in this repository to convert the [CODE-15% dataset](htt
58
64
3. Convert the CODE-15% dataset to WFDB format, with the available demographics information and Chagas labels in the WFDB header file, by running
Each `exam_part` file in the [CODE-15% dataset](https://zenodo.org/records/4916206) contains approximately 20,000 ECG recordings. You can include more or fewer of these files to increase or decrease the number of ECG recordings, respectively. You may want to start with fewer ECG recordings to debug your code.
67
73
74
+
#### SaMi-Trop dataset
75
+
76
+
These instructions use `samitrop_input` as the path for the input data files and `samitrop_output` for the output data files, but you can replace them with the absolute or relative paths for the files on your machine.
77
+
78
+
1. Download and unzip `exams.zip` file and the `exams.csv` file in the [SaMi-Trop dataset](https://zenodo.org/records/4905618).
79
+
80
+
2. Download and unzip the Chagas labels, i.e., the [`samitrop_chagas_labels.csv`](https://physionetchallenges.org/2025/data/samitrop_chagas_labels.zip) file.
81
+
82
+
3. Convert the SaMi-Trop dataset to WFDB format, with the available demographics information and Chagas labels in the WFDB header file, by running
83
+
84
+
python prepare_samitrop_data.py \
85
+
-i samitrop_input/exams.hdf5 \
86
+
-d samitrop_input/exams.csv \
87
+
-l samitrop_input/samitrop_chagas_labels.csv \
88
+
-o samitrop_output
89
+
90
+
#### PTB-XL dataset
91
+
92
+
These instructions use `ptbxl_input` as the path for the input data files and `ptbxl_output` for the output data files, but you can replace them with the absolute or relative paths for the files on your machine. We are using the `records500` folder, which has a 500Hz sampling frequency, but you can also try the `records100` folder, which has a 100Hz sampling frequency.
93
+
94
+
1. Download and, if necessary, unzip the [PTB-XL dataset](https://physionet.org/content/ptb-xl/).
95
+
96
+
2. Update the WFDB files with the available demographics information and Chagas labels by running
97
+
98
+
python prepare_ptbxl_data.py \
99
+
-i ptbxl_input/records500/ \
100
+
-d ptbxl_input/ptbxl_database.csv \
101
+
-o ptbxl_output
102
+
68
103
## Which scripts I can edit?
69
104
70
105
Please edit the following script to add your code:
@@ -122,7 +157,7 @@ If you have trouble running your code, then please try the follow steps to run t
0 commit comments