Hi AFNI
I was wondering if you can suggest me which of your programs could help me to identify clinical correlations between fMRI data and clinical scores but having as covariates age, gender and voxel wise map of gray matter concentration for each subject.
In other words I want to know if one of my clinical scores (grief_score) can be predicted by the fMRI activations of my task. Considering that I am working with older adults, I have to add as a covariate the age, gender and the gray matter concentration per voxel per subject (this is a .nii file).
Probably I didn’t explain correctly. My grief_score is the score of one of my clinical test, just a number. I want to know if this score can be predicted or have any correlation with the activation maps of my fMRI task, including the gray matter concentration (per voxel), age and gender as covariates.
If I include my faces_gr_shapes_avg.nii as a covariate in the 3dttest++, what can I use as the input in the script?
Found 2 dataset name columns: gm anger
++ Number of -Clustsim threads set to 24
++ option -setA :: processing as LONG form (label label dset label dset …)
++ have 30 volumes corresponding to option ‘-setA’
++ option -setB :: processing as LONG form (label label dset label dset …)
++ have 23 volumes corresponding to option ‘-setB’
++ 2-sample test: ‘-AminusB’ option is assumed
++ 2-sample test: results will be HighGrief - LowGrief
++ loading covariates
*+ WARNING: 3dttest++ -setB covariate #4 :: 125 vectors are constant
*+ WARNING: 3dttest++ -setA covariate #4 :: 80 vectors are constant
** ERROR: -permute failure for unexplainable reasons /
++ Two samples: t-testing fixed covariates for similarity between groups
gender: mean of setA-setB=0.402899 ; 2-sided p-value=0.1241
age: mean of setA-setB=-1.788406 ; 2-sided p-value=0.4839
daysSinceLoss: mean of setA-setB=49.36377 ; 2-sided p-value=0.0504
gm: values come from datasets ==> skipping test
anger: values come from datasets ==> skipping test
++ loading -setA datasets
*+ WARNING: 3dttest++ -setA :: 30 volumes are constant
++ loading -setB datasets
*+ WARNING: 3dttest++ -setB :: 30 volumes are constant
++ t-testing:0123456789.0123456789.0123456789.0123456789.0123456789.!
++ ---------- End of analyses – freeing workspaces ----------
++ Creating FDR curves in output dataset
++ Smallest FDR q [1 HighGrief-LowGrief_Zscr] = 8.75693e-13
*+ WARNING: Smallest FDR q [3 HighGrief-LowGrief_gender_Zscr] = 0.845485 ==> few true single voxel detections
*+ WARNING: Smallest FDR q [5 HighGrief-LowGrief_age_Zscr] = 0.737125 ==> few true single voxel detections
*+ WARNING: Smallest FDR q [7 HighGrief-LowGrief_daysSinceLos_Zscr] = 0.820422 ==> few true single voxel detections
++ Smallest FDR q [9 HighGrief-LowGrief_gm_Zscr] = 2.01046e-12
*+ WARNING: Smallest FDR q [11 HighGrief-LowGrief_anger_Zscr] = 0.998594 ==> few true single voxel detections
++ Smallest FDR q [13 HighGrief_Zscr] = 1.04776e-15
*+ WARNING: Smallest FDR q [15 HighGrief_gender_Zscr] = 0.609763 ==> few true single voxel detections
*+ WARNING: Smallest FDR q [17 HighGrief_age_Zscr] = 0.999329 ==> few true single voxel detections
*+ WARNING: Smallest FDR q [19 HighGrief_daysSinceLos_Zscr] = 0.996382 ==> few true single voxel detections
++ Smallest FDR q [21 HighGrief_gm_Zscr] = 1.97659e-12
*+ WARNING: Smallest FDR q [23 HighGrief_anger_Zscr] = 0.999863 ==> few true single voxel detections
++ Smallest FDR q [25 LowGrief_Zscr] = 3.13504e-07
++ Smallest FDR q [27 LowGrief_gender_Zscr] = 0.00888113
*+ WARNING: Smallest FDR q [29 LowGrief_age_Zscr] = 0.638056 ==> few true single voxel detections
*+ WARNING: Smallest FDR q [31 LowGrief_daysSinceLos_Zscr] = 0.849133 ==> few true single voxel detections
++ Smallest FDR q [33 LowGrief_gm_Zscr] = 0.000260319
*+ WARNING: Smallest FDR q [35 LowGrief_anger_Zscr] = 0.999875 ==> few true single voxel detections
Added 18 FDR curves to dataset
++ Output dataset ./Griefpredicted_anger_highvslow.resid.nii
=== temporary files will have prefix Griefpredicted_anger_highvslow ===
=== running 24 -randomsign jobs (417 iterations per job) ===
=== creating 1,488,680,000 (1.5 billion) bytes of pseudo-data in .sdat files ===
— 3dClustSim reads .sdat files to compute cluster-threshold statistics —
— there is 34,359,738,368 (34 billion) bytes of memory on your system —
++ 3dttest++: AFNI version=AFNI_20.1.06 (May 4 2020) [64-bit]
++ Authored by: Zhark++
++ 74434 voxels in -mask dataset
++ Covariates file: 6 columns, each with 53 rows
Found 2 dataset name columns: gm anger
++ option -setA :: processing as LONG form (label label dset label dset …)
++ have 30 volumes corresponding to option ‘-setA’
++ option -setB :: processing as LONG form (label label dset label dset …)
++ have 23 volumes corresponding to option ‘-setB’
++ random seeds are 1403444933 1717604198
++ 2-sample test: ‘-AminusB’ option is assumed
++ 2-sample test: results will be rAAA - rBBB
++ loading covariates
*+ WARNING: 3dttest++ -setB covariate #4 :: 125 vectors are constant
*+ WARNING: 3dttest++ -setA covariate #4 :: 80 vectors are constant
** ERROR: -permute failure for unexplainable reasons /
++ Two samples: t-testing fixed covariates for similarity between groups
gender: mean of setA-setB=0.402899 ; 2-sided p-value=0.1241
age: mean of setA-setB=-1.788406 ; 2-sided p-value=0.4839
daysSinceLoss: mean of setA-setB=49.36377 ; 2-sided p-value=0.0504
gm: values come from datasets ==> skipping test
anger: values come from datasets ==> skipping test
++ opened file ./Griefpredicted_anger_highvslow.0000.sdat for output
++ loading -setA datasets
++ loading -setB datasets
++ t-test randomsign/permute:0123456789.0123456789.0123456789.0123456789.0123456789.01!
++ saving main effect t-stat MIN/MAX values in ./Griefpredicted_anger_highvslow.0000.minmax.1D
++ output short-ized file ./Griefpredicted_anger_highvslow.0000.sdat
3dttest++ ===== simulation jobs have finished (4405.5 s elapsed)
3dttest++ ===== starting 3dClustSim A: elapsed = 4416.0 s
++ 3dClustSim: AFNI version=AFNI_20.1.06 (May 4 2020) [64-bit]
++ Authored by: RW Cox and BD Ward
++ Loading -insdat datasets
++ -insdat had 10008 volumes = new ‘-niter’ value
++ Startup clock time = 0.0 s
++ Using 15 OpenMP threads
Simulating:0123456789.0123456789.0123456789.0123456789.01234567!
++ Clock time now = 583.8 s
++ Command fragment to put cluster results into a dataset header;
(also echoed to file Griefpredicted_anger_highvslow.CSimA.cmd for your scripting pleasure)
Append the name of the datasets to be patched to this command:
3drefit -atrstring AFNI_CLUSTSIM_NN1_1sided file:Griefpredicted_anger_highvslow.CSimA.NN1_1sided.niml -atrstring AFNI_CLUSTSIM_NN2_1sided file:Griefpredicted_anger_highvslow.CSimA.NN2_1sided.niml -atrstring AFNI_CLUSTSIM_NN3_1sided file:Griefpredicted_anger_highvslow.CSimA.NN3_1sided.niml -atrstring AFNI_CLUSTSIM_NN1_2sided file:Griefpredicted_anger_highvslow.CSimA.NN1_2sided.niml -atrstring AFNI_CLUSTSIM_NN2_2sided file:Griefpredicted_anger_highvslow.CSimA.NN2_2sided.niml -atrstring AFNI_CLUSTSIM_NN3_2sided file:Griefpredicted_anger_highvslow.CSimA.NN3_2sided.niml -atrstring AFNI_CLUSTSIM_NN1_bisided file:Griefpredicted_anger_highvslow.CSimA.NN1_bisided.niml -atrstring AFNI_CLUSTSIM_NN2_bisided file:Griefpredicted_anger_highvslow.CSimA.NN2_bisided.niml -atrstring AFNI_CLUSTSIM_NN3_bisided file:Griefpredicted_anger_highvslow.CSimA.NN3_bisided.niml
++ Environment variable AFNI_DONT_LOGFILE already set to ‘NO’. Value of ‘YES’ from /Users/lbohorquez/.afnirc is ignored.
To kill such warnings Set AFNI_ENVIRON_WARNINGS to NO
++ 3drefit: AFNI version=AFNI_20.1.06 (May 4 2020) [64-bit]
++ Authored by: RW Cox
++ Processing AFNI dataset ./Griefpredicted_anger_highvslow+tlrc.HEAD
would you mind to suggest me how to interpret these results assuming the 3dtest++ is running without errors?
Did you get an output from 3dttest++ aside from the whining part? I suspect that 3dttest++ could not perform permutations because of the two voxelwise covariates, but only Bob could address the issue. You could still interpret the results independent of the permutation component.
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.