-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresample.sh
33 lines (26 loc) · 2.61 KB
/
resample.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
#!/bin/bash
# This function resamples subject-level surface data to a common mesh using surfmap files from CIVET.
for file in ./sigmoid_fit/smoothed/*_model_c_left_log_20mm.txt
do
echo surface-resample /opt/quarantine/CIVET/2.1.0/build/CIVET-2.1.0/models/icbm/icbm_avg_mid_sym_mc_left.obj ./surfaces/GM_50_surfaces/$(basename $file _model_c_left_log_20mm.txt)_GM_50_surface_left.obj $file ./surf_map/$(basename $file _model_c_left_log_20mm.txt)_left_surfmap.sm ./sigmoid_fit/resampled/$(basename $file .txt)_rsl.txt
done > joblist_resample
for file in ./sigmoid_fit/smoothed/*_model_c_right_log_20mm.txt
do
echo surface-resample /opt/quarantine/CIVET/2.1.0/build/CIVET-2.1.0/models/icbm/icbm_avg_mid_sym_mc_right.obj ./surfaces/GM_50_surfaces/$(basename $file _model_c_right_log_20mm.txt)_GM_50_surface_right.obj $file ./surf_map/$(basename $file _model_c_right_log_20mm.txt)_right_surfmap.sm ./sigmoid_fit/resampled/$(basename $file .txt)_rsl.txt
done >> joblist_resample
for file in ./sigmoid_fit/smoothed/*_model_c_left_20mm.txt
do
echo surface-resample /opt/quarantine/CIVET/2.1.0/build/CIVET-2.1.0/models/icbm/icbm_avg_mid_sym_mc_left.obj ./surfaces/GM_50_surfaces/$(basename $file _model_c_left_20mm.txt)_GM_50_surface_left.obj $file ./surf_map/$(basename $file _model_c_left_20mm.txt)_left_surfmap.sm ./sigmoid_fit/resampled/$(basename $file .txt)_rsl.txt
done >> joblist_resample
for file in ./sigmoid_fit/smoothed/*_model_c_right_20mm.txt
do
echo surface-resample /opt/quarantine/CIVET/2.1.0/build/CIVET-2.1.0/models/icbm/icbm_avg_mid_sym_mc_right.obj ./surfaces/GM_50_surfaces/$(basename $file _model_c_right_20mm.txt)_GM_50_surface_right.obj $file ./surf_map/$(basename $file _model_c_right_20mm.txt)_right_surfmap.sm ./sigmoid_fit/resampled/$(basename $file .txt)_rsl.txt
done >> joblist_resample
for file in ./sigmoid_fit/smoothed/*_model_ratio_left_20mm.txt
do
echo surface-resample /opt/quarantine/CIVET/2.1.0/build/CIVET-2.1.0/models/icbm/icbm_avg_mid_sym_mc_left.obj ./surfaces/GM_50_surfaces/$(basename $file _model_ratio_left_20mm.txt)_GM_50_surface_left.obj $file ./surf_map/$(basename $file _model_ratio_left_20mm.txt)_left_surfmap.sm ./sigmoid_fit/resampled/$(basename $file .txt)_rsl.txt
done >> joblist_resample
for file in ./sigmoid_fit/smoothed/*_model_ratio_right_20mm.txt
do
echo surface-resample /opt/quarantine/CIVET/2.1.0/build/CIVET-2.1.0/models/icbm/icbm_avg_mid_sym_mc_right.obj ./surfaces/GM_50_surfaces/$(basename $file _model_ratio_right_20mm.txt)_GM_50_surface_right.obj $file ./surf_map/$(basename $file _model_ratio_right_20mm.txt)_right_surfmap.sm ./sigmoid_fit/resampled/$(basename $file .txt)_rsl.txt
done >> joblist_resample