AFNI version info (afni -ver): Precompiled binary linux_ubuntu_16_64: Oct 17 2023 (Version AFNI_23.3.02 'Septimius Severus')
code text # or delete if not needed
deconvolve command #1
## This is getting contrast between tape (run 1) - odor (run 3)
echo "Running contrast tape - odor"
3dDeconvolve -input pb05.${sub}.r01.detrend+orig \
pb05.${sub}.r03.detrend+orig[2..$] \
-polort 2 -num_stimts 9 \
-mask ~/Volumes/Coutanche/Shared/Projects/Craving/AnatomicalData/${sub}/brain_mask_${sub}_re+orig \
-stim_times_IM 1 ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/timing_files/timing_tape.1D 'BLOCK(30,1)' -stim_label 1 tape \
-stim_times_IM 2 ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/timing_files/timing_tape-odor_odor.1D 'BLOCK(30,1)' -stim_label 2 odor \
-stim_times_IM 3 ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/timing_files/timing_question_tape-odor.1D 'BLOCK(24,1)' -stim_label 3 question \
-stim_file 4 'dfile.r0103.1D[0]' -stim_base 4 -stim_label 4 roll \
-stim_file 5 'dfile.r0103.1D[1]' -stim_base 5 -stim_label 5 pitch \
-stim_file 6 'dfile.r0103.1D[2]' -stim_base 6 -stim_label 6 yaw \
-stim_file 7 'dfile.r0103.1D[3]' -stim_base 7 -stim_label 7 dS \
-stim_file 8 'dfile.r0103.1D[4]' -stim_base 8 -stim_label 8 dL \
-stim_file 9 'dfile.r0103.1D[5]' -stim_base 9 -stim_label 9 dP \
-gltsym 'SYM: tape - odor' -glt_label 1 tape-odor \
-fout -tout -full_first -x1D ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/BetaWeights/stats/Xmat_tape-odor.${sub}.x1D \
-fitts ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/BetaWeights/stats/fitts_r_tape-odor.${sub} \
-bucket ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/BetaWeights/stats/stats_tape-odor.${sub}
deconvolve command #2
## This is getting contrast between odor (run 3) - tape (run 1)
echo "Running contrast odor - tape"
3dDeconvolve -input pb05.${sub}.r03.detrend+orig[2..$] \
pb05.${sub}.r01.detrend+orig \
-polort 2 -num_stimts 9 \
-mask ~/Volumes/Coutanche/Shared/Projects/Craving/AnatomicalData/${sub}/brain_mask_${sub}_re+orig \
-stim_times_IM 1 ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/timing_files/timing_odor.1D 'BLOCK(30,1)' -stim_label 1 odor \
-stim_times_IM 2 ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/timing_files/timing_odor-tape_tape.1D 'BLOCK(30,1)' -stim_label 2 tape \
-stim_times_IM 3 ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/timing_files/timing_question_odor-tape.1D 'BLOCK(24,1)' -stim_label 3 question \
-stim_file 4 'dfile.r0301.1D[0]' -stim_base 4 -stim_label 4 roll \
-stim_file 5 'dfile.r0301.1D[1]' -stim_base 5 -stim_label 5 pitch \
-stim_file 6 'dfile.r0301.1D[2]' -stim_base 6 -stim_label 6 yaw \
-stim_file 7 'dfile.r0301.1D[3]' -stim_base 7 -stim_label 7 dS \
-stim_file 8 'dfile.r0301.1D[4]' -stim_base 8 -stim_label 8 dL \
-stim_file 9 'dfile.r0301.1D[5]' -stim_base 9 -stim_label 9 dP \
-gltsym 'SYM: odor - tape' -glt_label 1 odor-tape \
-fout -tout -full_first -x1D ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/BetaWeights/stats/Xmat_odor-tape.${sub}.x1D \
-fitts ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/BetaWeights/stats/fitts_r_odor-tape.${sub} \
-bucket ~/Volumes/Coutanche/Shared/Projects/Craving/Analysis/BetaWeights/stats/stats_odor-tape.${sub}
Hello!
We have been trying to get contrast and beta weights between two different runs, where the conditions are called tape and odor. Both of these runs are block design. For the odor condition we are discarding the first 4 seconds of the block, and the TR is 2 seconds so essentially first two sub-bricks of the odor run (which is run 3). We are also merging the motion files for these particular runs separately hence the name dfile.r0301.1D which is the concatenated motion file for run3 and run1. For this merged motion file as well we have removed the first two rows of the dfile.r03.1D file. The number of sub bricks in tape run (run 1) are 41 and number of sub bricks in odor run (run 3) are 38. So the total concatenated sub-bricks after removing the first two should be 77.
Initially we used the first deconvolve command with odor run (run 3) as the second input. When we ran the command it gave us these warnings:
++ Number of time points: 75 (no censoring)
- Number of parameters: 16 [12 baseline ; 4 signal]
*+ WARNING: -stim_file 4: file length is 77, longer than expected 75 (from dataset)
*+ WARNING: -stim_file 5: file length is 77, longer than expected 75 (from dataset)
*+ WARNING: -stim_file 6: file length is 77, longer than expected 75 (from dataset)
*+ WARNING: -stim_file 7: file length is 77, longer than expected 75 (from dataset)
*+ WARNING: -stim_file 8: file length is 77, longer than expected 75 (from dataset)
*+ WARNING: -stim_file 9: file length is 77, longer than expected 75 (from dataset)
But when I switched the input order of the runs as shown in the deconvolve command #2 the warnings went away. Another thing that I noticed was warnings went away when input pb05.{sub}.r03.detrend+orig\[1..] for the deconvolve command #1 as well. So, inputting this as the second input was removing 2 sub-bricks.
I am not sure why pb05.{sub}.r03.detrend+orig\[2..] is removing 2 sub-bricks when its the first input but 4 sub-bricks when it's the second input. I thought that switching up the order would have not affected the number of sub-bricks getting considered for the deconvolution. Let me know if you need any more information and have any idea what is happening with it. What would you recommend to do? Thank you!
Regards,
Medha Sharma