aparcstats2table

This script will generate text/ascii tables of freesurfer parcellation stats data, ?h.aparc.stats. This can then be easily imported into a spreadsheet and/or stats program.

Usage

command line options are:

  --subjects  subject1 <subject2 ...>
  --s subject1 <--s subject2 ...>
  --h hemi : lh or rh
  --parc parcellation : default is aparc (alt aparc.a2005s)
  --meas measure : default is area (alt volume, thickness, meancurv)

  --t tablefile : output file

  --help : help
  --debug

Sample Command line

aparcstats2table --subjects bert ernie fred margaret --h rh --meas thickness --t aparc_stats.txt

This will combine the rh.aparch.stats files for the subjects bert, ernie, fred, and margaret to generate one table, aparc_stats.txt, that will report the thickness of all the structures labeled in rh.aparc.annot. The resulting file can be imported into any spreadsheet program.

If you'd rather get your information from the alternate parcellation, ?h.aparc.a2005s.annot, you can specify this on your command line with  --parc aparc.a2005s. Also, if you'd like something other than thickness you can specify this with --meas and specify area, volume, or meancurv.