-
Notifications
You must be signed in to change notification settings - Fork 0
/
con_framing.cfg
49 lines (40 loc) · 3.12 KB
/
con_framing.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
42
43
44
45
46
47
48
49
#!/usr/bin/bash
protocol=WPC-7101
meson_mr_root=/disk/mace2/scan_data/${protocol} #location of protocol directory on meson
meson_mb_root=${meson_mr_root} #location of reconstructed MB data on meson
loc_root=/Volumes/bek/neurofeedback/sonrisa2 #local root directory for project
loc_mrraw_root=${loc_root}/raw #local dicom sync directory
loc_mb_root="" #multiband rsync directory... <- There is no MB data for this scan!
loc_mrproc_root=${loc_root}/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=".*ContextualFraming_(\d)_.*"
mr_regex=".*ContextualFraming_(\d)_.*" #for grabbing raw dicoms Need the //d for getting the run numbers
preprocessed_dirname="cf_proc"
mprage_dirpattern="*MPRAGE*"
task_name=ContextualFraming #Name of the task that was ran
paradigm_name="cf"
func_run_number=2 #Number of scans taken during the run
n_expected_funcruns=2 #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="*field_mapping*" #There might be an underscore there might not...
#gre_fieldmap_dirpattern="*field_mapping*"
fieldmap_cfg="nfb" #config file for fieldmap processing (see preprocessFunctional for details) <-CHANGE!!
#Added for syncMRRAW testing -- to debug type source xxx.cfg into terminal
meson_dir=${meson_mr_root} #source dir
local_dir=${loc_mrraw_root} #destination dir
subid_regex=${meson_subid_regex} #regular expression string
pro_name=${protocol} #protocol name
#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.0 -hp_filter 100s -rescaling_method 100_voxelmean -template_brain MNI_3mm \
-func_struc_dof bbr -warp_interpolation spline -constrain_to_template y \
-4d_slice_motion -custom_slice_times /Volumes/bek/neurofeedback/sonrisa2/sonrisa_custom_slice_times/nfbMBTimings.1D \
-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 7 \
-delete_dicom archive"
#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 meson_dir local_dir subid_regex pro_name \