-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathx.PreProc_RUN_Template
executable file
·76 lines (57 loc) · 2.08 KB
/
x.PreProc_RUN_Template
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/sh
# A starting template of how to RUN these functions together and across subjects
# Copy this RUN file into your project directory. Then just change this file, not the specific functions.
#####################################
# Chose analysis options below (1=run)
#####################################
DO_PreProc_BET_3D=0
DO_PreProc_SEG_anat=0
DO_PreProc_VolReg_4D=0
DO_PreProc_DistortCorrect=0
DO_PreProc_BET_4D=0
DO_PreProc_Mask_4D=0
DO_PreProc_TissueReg=0
DO_PreProc_Transform_MASK=0
DO_PreProc_MEANTS=0
code_dir='/Users/XXXX/Documents/GitHub/PreProc_BRAIN' #change this to where the PreProc_BRAIN repo is on your computer
################################
################################
################################
for subject in sub-01 sub-02
do
echo "*********************"
echo "Processing ${subject}"
echo "*********************"
##################################
###### x.PreProc_BET_3D ########
##################################
if [ "${DO_PreProc_BET_3D}" -eq 1 ]
then
echo "*****************************************"
echo "Running x.PreProc_BET_3D for ${subject}"
echo "*****************************************"
${code_dir}/x.PreProc_BET-3D /path_to_T1_input_file /path_to_output_dir
else
echo "*********************************************"
echo "Not running x.PreProc_BET_anat for ${subject}"
echo "*********************************************"
fi
##################################
###### x.PreProc_SEG_anat ########
##################################
if [ "${DO_PreProc_SEG_anat}" -eq 1 ]
then
echo "*****************************************"
echo "Running x.PreProc_SEG_anat for ${subject}"
echo "*****************************************"
${code_dir}/x.PreProc_SEG-anat /path_to_T1_input_file /path_to_output_dir partial_volume_threshold
else
echo "*********************************************"
echo "Not running x.PreProc_SEG_anat for ${subject}"
echo "*********************************************"
fi
###################################
########## NEXT FUNCTION ##########
###################################
# code
done #end subject loop