-
Notifications
You must be signed in to change notification settings - Fork 0
/
trust_test.cfg
executable file
·42 lines (35 loc) · 2.76 KB
/
trust_test.cfg
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
#!/usr/bin/bash
#This was used to test and debug preprocAll.R
protocol=WPC-6605 #Dombax proto
meson_mr_root=/disk/mace2/scan_data/${protocol} #location of protocol directory on meson
meson_mb_root=${meson_mr_root}/multiband #location of reconstructed MB data on meson
loc_root=/Users/wilsonj3/bek_clone/trust_preproc_clone #local root directory for project
loc_mrraw_root=${loc_root}/MR_Raw #local dicom sync directory
loc_mb_root="" #multiband rsync directory...Ask about this! <- There is no MB data for this scan!
loc_mrproc_root=${loc_root}/MR_Proc #where preprocessed data is stored, else it will be in subject's loc_mmraw_root
#meson_subid_regex="${meson_mr_root}/.*/[[:digit:]]{4}\.[[:digit:]]{2}\.[[:digit:]]{2}-[[:digit:]]{2}\.[[:digit:]]{2}\.[[:digit:]]{2}" #Example here: 2013.05.12-12.33.59
meson_subid_regex="${meson_mr_root}/.*[[:digit:]]{4}\.[[:digit:]]{2}\.[[:digit:]]{2}-[[:digit:]]{2}\.[[:digit:]]{2}\.[[:digit:]]{2}" #Example here: 2013.05.12-12.33.59 remove slash
mb_regex="" #No mb data
mr_regex=".*Trust-Gamex?(\\d).*" #for grabbing raw dicoms
preprocessed_dirname="mni_5mm_trust" #needs to be changed
mprage_dirpattern="*mprage_hr_G2*" #needs to be filled out
task_name=trust #Name of the task that was ran
paradigm_name="trust"
func_run_number=4 #Number of scans taken during the run
n_expected_funcruns=4 #how many functional runs are expected per subject. Used to skip out of completed subjects
#if gre_fieldmap_dirpattern is defined, script will look for two fieldmap directories (phase and magnitude) and incorporate into preprocessing
gre_fieldmap_dirpattern="fieldmap_*" #WILL HAVE TO CHANGE?
fieldmap_cfg="trust" #config file for fieldmap processing (see preprocessFunctional for details) <-CHANGE!!
#preprocessFunctional call to be used (only the part that does not vary across subjects).
#Do not include any information here about -4d (the input), -mprage_bet or -warpcoef (varies by subject), or -fm_phase, -fm_magnitude, or fm_cfg.
#make sure this is a quoted string! Can use backslashes to separate call across lines (within quotes).
preproc_call="-tr 1.67 -hp_filter 100s -rescaling_method 100_voxelmean -template_brain MNI_2.3mm \
-func_struc_dof bbr -warp_interpolation spline -constrain_to_template y \
-4d_slice_motion \
-wavelet_despike -wavelet_m1000 -wavelet_threshold 10 -motion_censor fd=0.9,dvars=20 \
-nuisance_file nuisance_regressors.txt -nuisance_compute csf,dcsf,wm,dwm -smoothing_kernel 5 \
-delete_dicom archive" #no custom slice times
#need to export these environment variables to be accessible in R
export protocol meson_mr_root meson_mb_root loc_root loc_mrraw_root loc_mrproc_root loc_mb_root \
meson_subid_regex mprage_dirpattern preprocessed_dirname paradigm_name n_expected_funcruns \
preproc_call gre_fieldmap_dirpattern fieldmap_cfg mb_regex mr_regex