-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhcp7life.sh
executable file
·45 lines (37 loc) · 1.14 KB
/
hcp7life.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
#!/bin/bash
#PBS -k o
#PBS -l nodes=1:ppn=2,mem=32000mb,walltime=96:00:00
#PBS -M [email protected]
#PBS -m abe
#PBS -N hcp7t-life
#PBS -j oe
ID_0009=108323
ID_0010=109123
ID_0011=131217
ID_0012=910241
SUB=$1
ID=$(eval echo "\$ID_$1")
if [ $2 = 'dtidet' ]; then
LAB1='wm_tensor'
LAB2='tensor_'
elif [ $2 = 'csddet' ]; then
LAB1='csd_lmax8_wm_SD_STREAM'
LAB2='SD_STREAM_lmax8'
elif [ $2 = 'csdprob' ]; then
LAB1='csd_lmax8_wm_SD_PROB'
LAB2='SD_PROB_lmax8'
else
echo 'Wrong type of tractography'; exit
fi
DIR=/N/dc2/projects/lifebid/Paolo/data/O3D_SRC/HCP7T/${ID}
SRC=/N/dc2/projects/o3d/test3/O3D_HCP7T/derivatives/preprocess/sub-${SUB}/dwi
DWI=${SRC}/sub-${SUB}_b-2000_dwi.nii.gz
OUT=${DIR}/fe_structure_${ID}_STC_run01_${LAB2}_connNUM
ADD1="addpath(genpath('/N/dc2/projects/lifebid/Paolo/local/matlab'))"
ADD2="addpath(genpath('/N/dc2/projects/lifebid/Paolo/code/multishell-mrtrix'))"
for N in 01 02 03 04 05 06 07 08 09 10; do
TCK=${DIR}/data_b2000_${LAB1}-NUM${N}-500000.tck
MAT=${OUT}${N}.mat
CMD="life_eval_multishell $TCK $DWI $MAT"
matlab -nojvm -nodesktop -nosplash -r "${ADD1};${ADD2};${CMD};exit"
done