#!/bin/tcsh

set study = $argv[1]

foreach hemi (lh rh)
  foreach smoothness (0 5 10 15 20 25)
    foreach meas (volume thickness)
        mri_glmfit \
        --y ${hemi}.${meas}.${study}.${smoothness}.mgh \
        --fsgd FSGD/${study}.fsgd dods \
        --C Contrasts/CON-ACLleft.mtx \
        --C Contrasts/CON-ACLright.mtx \
        --C Contrasts/CON-ACLtar.mtx \
        --surf fsaverage ${hemi} \
        --cortex \
        --glmdir ${hemi}.${meas}.${study}.${smoothness}.glmdir \
        --eres-save
    end
  end
end
