I am trying to run a 3dDeconvolve command, but I am running it in bash terminal through a containerized AFNI program. It works until I add the bit that specifies the contrast. This portion of the command needs to be passed in with quotes and spaces.
-gltsym ‘SYM: +exc -eq’
Bash is separating it out and the command is failing. Does anyone have any suggestions on how to get around this?
I have tried…
- creating a separate variable with the argument and passing in to the command, but this still fails. https://mywiki.wooledge.org/BashFAQ/050
- quotes, more quotes around the actual argument
- maybe I am missing something here?
The full code is here…
3dDeconvolve \
-input /work/06953/jes6785/ls6/NECTARY_DATA/derivatives/fmriprep-v22.0.2/sub-b071/ses-01/func/sub-b071_ses01_task-cyb_dir-AP_space-MNI152NLin2009cAsym_desc-preproc_6.0blur+scale.nii \
-mask /work/06953/jes6785/ls6/NECTARY_DATA/derivatives/fmriprep-v22.0.2/sub-b071/ses-01/func/sub-b071_ses-01_task-soc_dir-AP_space-MNI152NLin2009cAsym_desc-brain_mask.nii.gz \
-polort A \
-num_stimts 2 \
-stim_times_AM1 1 /work2/06953/jes6785/ls6/NECTARY_DATA/derivatives/AFNI_Behavioral_Files/sub_b071/sub_071-1_tf_under_1.1D dmBLOCK\(2\) \
-stim_label 1 exc \
-stim_times_AM1 2 /work2/06953/jes6785/ls6/NECTARY_DATA/derivatives/AFNI_Behavioral_Files/sub_b071/sub_071-1_tf_equal_1.1D dmBLOCK\(2\) \
-stim_label 2 eq \
-ortvec /work2/06953/jes6785/ls6/NECTARY_DATA/derivatives/Confound_Files/sub_b071/sub_b071_conservative_confounds.txt \
test \
-gltsym 'SYM: +exc -eq' \
-glt_label 1 exc \
-fout -tout \
-x1D X.xmat.1D \
-xjpeg 071X.jpg \
-x1D_uncensored 071X.nocensor.xmat.1D \
-fitts fitts.071 \
-errts errtsSYM:exc-eqSYM:1-2.071 \
-bucket stats.071