use mri_concat, eg,
mri_concat lh.Ctrl*.fsaverage.mgh --mean --o mean.mgh


On 6/4/2019 3:18 PM, Barletta, Valeria wrote:

Dear Freesurfers,

Is there a way to turn N .mgh files in to a single output .mgh file in which each vertex is the mean of the corresponding vertices in my input files?

For example, input  lh.Ctrl029.fsaverage.mgh ,  lh.Ctrl030.fsaverage.mgh , lh.Ctrl031.fsaverage.mgh , lh.Ctrl032.fsaverage.mgh >>> output lh.mean.fsaverage.mgh


Thanks,

Vale


_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer