How to find ROI metric averages for parcellated gifti files?

We have a surface file containing a metric projected onto a surface (using wb_command -volume-to-surface-mapping), the aforementioned surface file, and an .annot file with parcellation information.

Our goal is to have a table of average metric values for each surface ROI. How could we go about this?

Hi @ajschadler,

How about this, as a barebone example for getting one ROI average value?

You might have to break down that .annot into several .giis, but when you do you can try

wb_command -metric-stats ${statmap} -roi ${region_gii} -reduce mean

Best,
Steven