# Script created October 2007 by Kayle Sawyer for use at the MGH Martinos Center. # Use with Freesurfer 3.x

# This script will take a list of ROIs created for one subject, copy it to many subjects, # create thresholded ROIs from functional activation, and output text summaries.

# First, use tksurfer to save ROIs in one subject's directory that mri_label2label will copy to the rest. # That is listed here as SUBJECT_WITH_MANUALLY_CREATED_ROI, so replace that text with whatever subject you used. # Edit the mri_label2label --srcsubject to refer to that subject. # & after lines designed for quad-core. # All_FE, All_FR, etc are separate tasks subjects did in the scan. # You'll have to change the roi_summary subject list manually, sorry.

cd #your directory where functional scans are stored.

set subject = 'YOUR SUBJECT LIST' set hemisphere = 'rh lh' set roilist = 'YOUR ROIS'

foreach hemi ($hemisphere)

end foreach hemi ($hemisphere)

end