#!/bin/tcsh

setenv FREESURFER_HOME /Applications/freesurfer/
source $FREESURFER_HOME/SetUpFreeSurfer.csh
#Must set SUBJECTS_DIR to where data is or else uses what was set up when installing freesurfer
setenv SUBJECTS_DIR /Volumes/DANIEL/dti_freesurf/diffusion_recons/
@ linenum = 1

#cd /Volumes/DANIEL/
#mkdir dti_freesurf
#cd /Volumes/DANIEL/dti_freesurf
#mkdir diffusion_recons
#cd /Volumes/DANIEL/
#make directory for all subjects FA data before loop


foreach subj (AES101 AES102 AES104 AES107 AES108 AES109 AES110 AES111 AES113 AES114 AES115 AES116 AES117 AES118 AES119 AES120 AES121 AES122 AES123 AES124 AES126 AES127 AES129 AES130 AES133 AES134 AES136 AES137 AES138 AES139)
#AES101 AES102 AES104 AES107 AES108 AES109 AES110 AES111 AES113 AES114 AES115 AES116 AES117 AES118 AES119 AES120 AES121 AES122 AES123 AES124 AES126 AES127 AES129 AES130 AES133 AES134 AES136 AES137 AES138 AES139

foreach cond (Ex Rest)

echo "subj = " ${subj} ", cond = " ${cond}


trac-all -prep -c /Volumes/DANIEL/dmrirc.long.example.single.sh
end

end
