wiki

Create ROI Masks

Mask File Organization

Extracting ROIs with cluster command

1) You first must create a cluster_index.nii.gz with the script [[cluster_roi]].sh

This script assigns a different threshold value to each relevant cluster in the image. This script is essentially running the command:

cluster -i zstat1.nii.gz -t 2.3 --oindex=cluster_index.nii.gz  # (in stats directory)

from within the groupFEAT directory. The mask represents ALL of the clusters we might be interested in. If you use the script, be sure to edit the variable “COPES” for the copes that you want nifti index files created for. To run the script on command line:

qsub -v EXPERIMENT=FIGS.01 cluster_roi.sh 4.9 Faces run01       #[threshold, Design, run name]

It produces the above output - cluster_index.nii in the stats folder of the GroupFEAT directory).

IMPORTANT: The output file (located at the level of the GroupFEAT design) contains the table with cluster index values. Copy this table into the EXPERIMENT.xls under the “ROI Masks” tab.

Thresholding the cluster mask

2) We now must LOOK at the cluster_index.nii.gz and decide how we might best separate the clusters and make many individual masks. You must record the intensities (which identify the different clusters) of the ones you want to create individual files for, for the next step. The easiest thing to do is to highlight the intensity values that you want to run in the EXPERIMENT excel in blue.

fslmaths cluster_index.nii.gz -thr 21 -uthr 21.5 Cluster_masks/cluster1.nii

This command can be run with the script create-cluster-masks.sh

which will create a .nii.gz file for each cluster intensity that you specify and place it in a “Cluster_masks” directory in the .gfeat/stats folder.

3) Now we need to input our masks into featquery for each subject

Other ROI Mask Making Techniques

Drawing ROIs in MRIcron

MRIcron is a good solution to draw ROIs if the clustering script or fslmaths doesn’t work

Drawing ROIs with overlay2 in MATLAB

For this technique, you have to select the area slice by slice - it doesn’t make sense unless you have a really crazy ROI