|
a |
|
b/get_datasets.sh |
|
|
1 |
#!/bin/bash |
|
|
2 |
|
|
|
3 |
#################################### |
|
|
4 |
# GET PTBXL DATABASE |
|
|
5 |
#################################### |
|
|
6 |
mkdir -p data |
|
|
7 |
cd data |
|
|
8 |
wget https://storage.googleapis.com/ptb-xl-1.0.1.physionet.org/ptb-xl-a-large-publicly-available-electrocardiography-dataset-1.0.1.zip |
|
|
9 |
unzip ptb-xl-a-large-publicly-available-electrocardiography-dataset-1.0.1.zip |
|
|
10 |
mv ptb-xl-a-large-publicly-available-electrocardiography-dataset-1.0.1 ptbxl |
|
|
11 |
cd .. |
|
|
12 |
|
|
|
13 |
#################################### |
|
|
14 |
# GET ICBEB CHALLGENGE DATABASE |
|
|
15 |
#################################### |
|
|
16 |
mkdir -p tmp_data |
|
|
17 |
cd tmp_data |
|
|
18 |
wget http://2018.icbeb.org/file/REFERENCE.csv |
|
|
19 |
wget http://hhbucket.oss-cn-hongkong.aliyuncs.com/TrainingSet1.zip |
|
|
20 |
wget http://hhbucket.oss-cn-hongkong.aliyuncs.com/TrainingSet2.zip |
|
|
21 |
wget http://hhbucket.oss-cn-hongkong.aliyuncs.com/TrainingSet3.zip |
|
|
22 |
unzip TrainingSet1.zip |
|
|
23 |
unzip TrainingSet2.zip |
|
|
24 |
unzip TrainingSet3.zip |
|
|
25 |
cd .. |
|
|
26 |
python code/utils/convert_ICBEB.py |
|
|
27 |
cp data/ptbxl/scp_statements.csv data/ICBEB/ |