-
Notifications
You must be signed in to change notification settings - Fork 3
/
run_inter3_brain.sh
executable file
·49 lines (39 loc) · 1.17 KB
/
run_inter3_brain.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#
# Copyright 2020. Uecker Lab, University Medical Center Goettingen.
#
# Author: Xiaoqing Wang, 2020
#
# Wang X et al.
# Model‐Based Reconstruction for Simultaneous Multi‐Slice T1 Mapping
# using Single‐Shot Inversion‐Recovery Radial FLASH.
# Magn Reson Med. 2020
#
set -e
if [ ! -e $TOOLBOX_PATH/bart ] ; then
echo "\$TOOLBOX_PATH is not set correctly!" >&2
exit 1
fi
export PATH=$TOOLBOX_PATH:$PATH
export BART_COMPAT_VERSION="v0.7.00"
dir=brain/inter3
sample=512
res=$((sample / 2))
TR=4100
GA=7
lambda=0.001
reg=${lambda: 2:5}
nstate=60
overgrid=1.25
nspokes=330;
nspokes_per_frame=5
sms=1
slices=3
prefix=vol_1-inter3-center
echo $prefix
bart scale 1. $dir/$prefix data/_ksp
./prep.sh -s$sample -R$TR -G$GA -p$nspokes -f$nspokes_per_frame -m$sms -S$slices -c$nstate data/_ksp ${prefix}-data.coo ${prefix}-traj.coo ${prefix}-TI.coo
./reco.sh -m$sms -R$lambda -o$overgrid ${prefix}-TI.coo ${prefix}-traj.coo ${prefix}-data.coo ${prefix}-brain-reco-${reg}.coo | tee -a $prefix.log
./post.sh -R$TR -r$res ${prefix}-brain-reco-${reg}.coo ${prefix}-brain-${reg}-t1map.coo
rm ${prefix}-traj.coo ${prefix}-data.coo