-
Notifications
You must be signed in to change notification settings - Fork 0
/
methods_subs.sh
executable file
·46 lines (31 loc) · 1020 Bytes
/
methods_subs.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
#!/bin/bash
#$ -m be
#$ -m be
#$ -M [email protected]
#$ -S /bin/bash
module load afni/stable
# MAIN
#read -p 'Run in IPS? True or enter to skip' ips
#Check if argument is given
ips=${1:-False}
list_subj=$( count -digits 1 1 5 )
echo "List of subjects is ${list_subj}"
for method in "vanilla" "nordic" "hydra"
do
for n_sub in ${list_subj}
do
for task in task-HABLA1200 task-HABLA1700
do
error_txt=/bcbl/home/home_g-m/mflores/ips_logs/sub${n_sub}_${method}_${task}_tsnr.txt
if [[ -e ${error_txt} ]]; then
rm ${error_txt}
fi
if [[ ${ips} == True ]]; then
qsub -q short.q -N sub${n_sub}_${method}_${task}_tsnr -o ${error_txt} -e ${error_txt} /bcbl/home/public/MarcoMotion/scripts/HABLA_SPiN/_fmwh.sh ${method} ${n_sub} ${task}
else
echo "bash /bcbl/home/public/MarcoMotion/scripts/HABLA_SPiN/_methods_tsnr.sh ${method} ${n_sub} ${_task} &> ${error_txt}"
bash /bcbl/home/public/MarcoMotion/scripts/HABLA_SPiN/methods_tsnr.sh ${method} ${n_sub} ${task} &> ${error_txt} &
fi
done
done
done