Diff of /download_data.sh [000000] .. [2b63f5]

Switch to unified view

a b/download_data.sh
1
2
# create a directory
3
mkdir brain_tumor_dataset
4
cd brain_tumor_dataset
5
6
# download the dataset
7
wget -O temp.zip -q https://ndownloader.figshare.com/articles/1512427/versions/5
8
9
# unzip the dataset and delete the zip
10
unzip -q temp.zip && rm temp.zip
11
12
# concatenate the multiple zipped data in a single zip
13
cat brainTumorDataPublic_* > brainTumorDataPublic_temp.zip
14
zip -FF brainTumorDataPublic_temp.zip --out data.zip > progress.txt
15
16
# remove the temporary files
17
rm brainTumorDataPublic_*
18
19
# unzip the full archive and delete it 
20
unzip -q data.zip -d data && rm data.zip
21
22
# check that "data" contains 3064 files
23
ls data | wc -l