help > RE: Seed-to-voxel within ROI analysis
May 7, 2020  06:05 AM | Pedro Valdes-Hernandez - University of Florida
RE: Seed-to-voxel within ROI analysis
That look great
Thank you Alfonso
Originally posted by Alfonso Nieto-Castanon:
Hi Pedro,

Right, the 'analysis mask' field is really applied only at the initial 'Setup' step (by selecting only voxels within that mask for further analyses). If you want to apply a different (smaller) mask to your second-level analysis, you may do that using the 'display SPM' option mentioned in the previous mail. Alternatively, you may also use conn_module('glm',...) syntax to run any arbitrary second-level analysis, and, among other things, that allows you to explicitly select a different voxel-level mask just for that analysis (see conn_module for more details), for example using something like:

load SPM.mat;                            % existing second-level analysis
maskfile = '/data/mymask.nii';     % new voxel-level mask (in same space, e.g. MNI)

info = SPM.xX_multivariate;
conn_module('glm',...
   'design_matrix', info.X,...               % design matrix
   'data', info.Zfiles,...                        % functional data
   'contrast_between', info.C,...           % between-subjects contrast
   'contrast_within', info.M,...              % between-conditions contrast
   'mask', maskfile, ...                        % mask
   'folder', fullfile(SPM.swd,'masked')); % output analysis folder

Best
Alfonso
Originally posted by Pedro Valdes-Hernandez:
Hi Alfonso,
Regarding this. It seems that CONN is not using the mask in Setup.Options once the whole preprocessing and estimations were done with a previous (bigger) mask.
I calculated everything with a GM mask up to the seed to voxel estimations. Then I changed my mind and decided to analyze (and thus restrict the FDR corrections) within a smaller mask (subset of the bigger GM mask). However, CONN keeps ignoring this smaller mask and is still plotting and FDR correcting across the original bigger mask.
Any solution to this?
Originally posted by Alfonso Nieto-Castanon:
Hi Isabel,

If I am interpreting correctly, the simplest way to do that would be to perform standard seed-to-voxel analyses (between your seed and every voxel in the brain) and then simply restrict your results to only voxels within your target region of interest (you can do that, for example, from the results explorer window by clicking on 'display SPM' and then entering whem prompted your ROI file as a mask). Another possibility, if you really are not planning to look beyond the ROI voxels, is to directly select your ROI as an 'analysis mask' (in Setup.Options), so that all voxel-level analyses are restricted automatically to only voxels within your ROI.

Hope this helps
Alfonso
 
Originally posted by Isabel Berwian:
Hello

I would like to do a a seed-to-voxel analysis, but not for all voxels in the whole brain, but only for those voxel which lie within a specified ROI. It seems to me that this is not possible using the GUI or the script or am I mistaken? Originally I thought, I could do this by doing a ROI-to-ROI analysis, but Conn seems to only correlate the timeseries of my seed with the average timeseries of all voxels, or their PCA decomposition or a weighted sum, but I did not figure out how to correlate the seed timeseries with the timeseries of the voxels within the ROI. 

Is it possible to do this by adjusting the source code?

Is there a specific reason why one should not do the approach I was planning to do? What is the advantage of using e.g. the PCA decomposition and what do I lose compared to looking at individual voxels?

Best, 

Isabel

Threaded View

TitleAuthorDate
Isabel Berwian Dec 13, 2016
Dione Q Sep 11, 2021
Alfonso Nieto-Castanon Dec 13, 2016
Pedro Valdes-Hernandez May 4, 2020
Alfonso Nieto-Castanon May 4, 2020
RE: Seed-to-voxel within ROI analysis
Pedro Valdes-Hernandez May 7, 2020
Brian Kavanaugh Sep 13, 2024
Alex G Oct 27, 2020