The following scripts can be used to control asegstats2table and aparcstats2table commands in order to generate text/ascii tables of freesurfer stats data for all subjects in the directory at once. Using those scripts will simplify and automate conversion process because subjects’ IDs should be written with some options in the command line depending on freesurfer stats file. So users will not need to write any thing when they use this script instead of command line;

1- Applescript

It works using 4 mouse clicks only! This script is suitable for MAC only.

Please click on the link below to download script;

freesurferstats2table

The illustration video

***********************************************************************************************************

2- Bash script

This script works on both Linux and MAC. But it works on bash shell only.

User will be asked to write freesurfer directory and subjects' directory. Both directories can be dragged in terminal window

Please click on the link below to download script;

aseg.stats and wmparc.stats

asegstats2table --subjects bert ernie fred margaret --meas volume --tablefile aseg_stats.txt

?h.aparc.stats

aparcstats2table --subjects bert ernie fred margaret --hemi rh --meas thickness --tablefile aparc_stats.txt

?h.aparc.2009s.stats

aparcstats2table --hemi lh --subjects bert ernie fred margaret -- parc aparc.a2009s --meas volume --tablefile lh.aparc.a2009s.volume.txt

?h.BA.stats

aparcstats2table --hemi lh --subjects bert ernie fred margaret -- parc BA --meas volume --tablefile lh.BA.volume.txt