Mri binarize: Difference between revisions

From CCN Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 31: Line 31:
  --sval-annot $SUBJECTS_DIR/fsaverage/label/lh.200functional_subclusters.annot \
  --sval-annot $SUBJECTS_DIR/fsaverage/label/lh.200functional_subclusters.annot \
  --tval $SUBJECTS_DIR/FS_T1_501/label/lh.200functional_subclusters.annot
  --tval $SUBJECTS_DIR/FS_T1_501/label/lh.200functional_subclusters.annot
mri_surf2surf \
--srcsubject fsaverage \
--trgsubject FS_T1_501 \
--hemi rh \
--sval-annot $SUBJECTS_DIR/fsaverage/label/rh.200functional_subclusters.annot \
--tval $SUBJECTS_DIR/FS_T1_501/label/rh.200functional_subclusters.annot

Revision as of 15:29, 29 March 2017

If you have data from different time points, as with the booth data, and want to make comparisons of ROI's across time points you'll want to be looking at the same voxels. Here seems to be the way to do that freesurfer.

At this point you should have conducted group stats (mri_glmfit) and pulled out whatever ROI's of interest. Now you'll convert your group average .annot label file to a volume, so that we can use the binarize function.

For T1 & T2

mri_label2vol --annot T1_rh.200functional_subclusters.annot --temp f.nii --o rh.T1_200funclust.mgz --subject fsaverage --hemi rh --reg reg.2mm.mni152.dat
mri_label2vol --annot T1_lh.200functional_subclusters.annot --temp f.nii --o lh.T1_200funclust.mgz --subject fsaverage --hemi lh --reg reg.2mm.mni152.dat

mri_label2vol --annot T2_rh.200functional_subclusters.annot --temp f.nii --o rh.T2_200funclust.mgz --subject fsaverage --hemi rh --reg reg.2mm.mni152.dat
mri_label2vol --annot T2_lh.200functional_subclusters.annot --temp f.nii --o lh.T2_200funclust.mgz --subject fsaverage --hemi lh --reg reg.2mm.mni152.dat


Now that you have volumes, that mri_binarize function will produce 3 volumes with significant voxels set to 1 (or whatever value specified). One with sig. voxels in A but not B, one with sig. voxels in B but not A, and one with overlapping sig. voxels in both A and B.

For Left and Right Hemi

mri_binarize
mri_binarize

Then we convert our new volumes back to label files.

mri_cor2label
mri_cor2label


And, finally apply the new annot file to each subject, for Left and Right Hemi

mri_surf2surf \
--srcsubject fsaverage \
--trgsubject FS_T1_501 \
--hemi lh \
--sval-annot $SUBJECTS_DIR/fsaverage/label/lh.200functional_subclusters.annot \
--tval $SUBJECTS_DIR/FS_T1_501/label/lh.200functional_subclusters.annot
mri_surf2surf \
--srcsubject fsaverage \
--trgsubject FS_T1_501 \
--hemi rh \
--sval-annot $SUBJECTS_DIR/fsaverage/label/rh.200functional_subclusters.annot \
--tval $SUBJECTS_DIR/FS_T1_501/label/rh.200functional_subclusters.annot