Diff for "FreesurferGoodies/AutomaticLabeling" - MRC CBU Imaging Wiki
location: Diff for "FreesurferGoodies/AutomaticLabeling"
Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2012-03-07 16:14:05
Size: 923
Editor: IanCharest
Comment:
Revision 5 as of 2013-03-07 21:23:08
Size: 931
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
{{{
Line 3: Line 4:
# this is an example of an automatic labeling script for the left hemisphere, for the PPG that we have drawn on the study average cortical surface called "myAverage" # this is an example of an automatic labeling script for the left hemisphere,  # for the PPG that we have drawn on the study average cortical surface called "myAverage"
Line 14: Line 16:

Line 28: Line 28:
 echo "======================================================="
 echo "======================================================="
Line 40: Line 39:
}}}

#
# this is an example of an automatic labeling script for the left hemisphere, 
# for the PPG that we have drawn on the study average cortical surface called "myAverage"

## variables

## Freesurfer directory
thePath='/imaging/yourusername/yourproject/subjects'

subjects=(
'CBUXXXXXX' \  
'CBUYYYYYY' \ 
)

## Processing:

nsubjects=${#subjects[*]}
lastsubj=`expr $nsubjects - 1`

for m in `seq 0 ${lastsubj}`
do
        echo "======================================================="
        echo " "
        echo " Computing hPPG cortex surface label left hemisphere"
        echo " "
        echo "======================================================="  

mri_label2label \
 --srcsubject myAverage \
 --srclabel ${thePath}/myAverage/label/lh.hPPG.label \
 --trgsubject ${subjects[m]} \
 --trglabel ${thePath}/${subjects[m]}/label/lh.hPPG.label \
 --hemi lh \
 --regmethod surface

done # subjects lh

CbuImaging: FreesurferGoodies/AutomaticLabeling (last edited 2013-03-07 21:23:08 by localhost)