-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_DeDriftAndResample_vetting_data.sh
executable file
·85 lines (65 loc) · 2.22 KB
/
get_DeDriftAndResample_vetting_data.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
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
77
78
79
80
81
82
83
84
85
#!/bin/bash
DATABASE_ARCHIVE_ROOT="/data/hcpdb/archive"
DESTINATION="/home/shared/HCP/TimB/MSMAllDeDriftAndResample_NEW"
source ../xnat_pbs_jobs/GetHcpDataUtils/GetHcpDataUtils.sh
subject_list=""
subject_list+=" 100307 "
subject_list+=" 111716 "
subject_list+=" 114924 "
subject_list+=" 120212 "
subject_list+=" 128632 "
#subject_list+=" 130922 "
#subject_list+=" 136833 "
#subject_list+=" 153429 "
#subject_list+=" 163432 "
#subject_list+=" 194140 "
#subject_list+=" 198451 "
#subject_list+=" 199150 "
#subject_list+=" 200614 "
#subject_list+=" 205725 "
#subject_list+=" 210617 "
#subject_list+=" 211215 "
#subject_list+=" 285446 "
#subject_list+=" 441939 "
#subject_list+=" 545345 "
#subject_list+=" 559053 "
#subject_list+=" 567052 "
#subject_list+=" 586460 "
#subject_list+=" 627549 "
#subject_list+=" 702133 "
#subject_list+=" 861456 "
#subject_list+=" 887373 "
#subject_list+=" 889579 "
#subject_list+=" 932554 "
mkdir --parents --verbose ${DESTINATION}
# Get group average drift data
get_hcp_msm_group_average_drift_data "${DATABASE_ARCHIVE_ROOT}" "HCP_Staging" "${DESTINATION}"
for subject in ${subject_list} ; do
session="${subject}_3T"
get_hcp_struct_preproc_data "${DATABASE_ARCHIVE_ROOT}" "HCP_500" "${subject}" "${session}" "${DESTINATION}"
scans=""
scans+="rfMRI_REST1_LR "
scans+="rfMRI_REST1_RL "
scans+="rfMRI_REST2_LR "
scans+="rfMRI_REST2_RL "
for scan in ${scans} ; do
get_hcp_func_preproc_data "${DATABASE_ARCHIVE_ROOT}" "HCP_500" "${subject}" "${subject}_3T" "${scan}" "${DESTINATION}"
get_hcp_fix_proc_data "${DATABASE_ARCHIVE_ROOT}" "HCP_500" "${subject}" "${subject}_3T" "${scan}" "${DESTINATION}"
get_hcp_postfix_data "${DATABASE_ARCHIVE_ROOT}" "HCP_500" "${subject}" "${subject}_3T" "${scan}" "${DESTINATION}"
done
get_hcp_msm_all_registration_data "${DATABASE_ARCHIVE_ROOT}" "HCP_500" "${subject}" "${session}" "${DESTINATION}"
get_hcp_resampled_and_dedrifted_data "${DATABASE_ARCHIVE_ROOT}" "HCP_500" "${subject}" "${session}" "${DESTINATION}"
done
chmod 777 ${DESTINATION}
pushd ${DESTINATION}
chmod -R 777 *
keep_list="${subject_list} DeDriftingGroup"
files=`ls`
for file in ${files} ; do
if [[ "${keep_list}" == *${file}* ]] ; then
echo "${file} in keep list"
else
rm -rf ${file}
fi
done
popd