Hi Doug,
Before I saw your response, I modified make_average_surface code by removing -annot aparc flag in the mris_make_template command within this code, and my script worked fine all the way to the end without any error.
The change you made in make_average_surface would be useful in future. Just a minor point:
You have modified this part:
set cmd = (mris_make_template -norot aparc \ $hemi $sphere_reg $SUBJECTS $atlas) if($UseAnnot) set cmd = ($cmd -annot)
Not sure if aparc should be kept in the line ...
Best, Reza
It is trying to use the annotation when making the registration tif. This is hard coded in your version of make_average_surface. I've attached a new version. Run it with --no-annot. Let me know if it works and I'll check it into our distribution
doug
freesurfer@nmr.mgh.harvard.edu