-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.sh
executable file
·34 lines (31 loc) · 1.32 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# Check for dependencies
if ! hash git 2>/dev/null; then
echo "git must be installed to run automatic setup!"
fi
if ! hash curl 2>/dev/null; then
echo "wget must be installed to run automatic setup!"
fi
if ! hash matlab 2>/dev/null; then
echo "Matlab must be installed and be available in PATH (as 'matlab') to run notebooks!"
fi
# Change current directory to the directory of this script
dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
cd $dir
julia -e 'using Pkg; Pkg.instantiate()'
# change to parent directory
cd ../
# clone required repositories
git clone https://github.com/JeffFessler/mirt.git
git clone https://github.com/hakkelt/reproduce-l-s-dynamic-mri.git
# download data
cd reproduce-l-s-dynamic-mri
mkdir data
cd data
curl -O https://web.eecs.umich.edu/~fessler/irt/reproduce/19/lin-19-edp/data/Xinf.mat
curl -O https://web.eecs.umich.edu/~fessler/irt/reproduce/19/lin-19-edp/data/abdomen_dce_ga.mat
curl -O https://web.eecs.umich.edu/~fessler/irt/reproduce/19/lin-19-edp/data/aperiodic_pincat.mat
curl -O https://web.eecs.umich.edu/~fessler/irt/reproduce/19/lin-19-edp/data/cardiac_cine_R6.mat
curl -O https://web.eecs.umich.edu/~fessler/irt/reproduce/19/lin-19-edp/data/cardiac_perf_R8.mat
curl -O https://web.eecs.umich.edu/~fessler/irt/reproduce/19/lin-19-edp/data/readme-data.txt
echo "Automatic setup completed!"