Differences between revisions 13 and 14
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
Please click on the link below to download script;
Line 3: Line 4:
Please click on the link below to download script;
[[freesurferstats2table|http://web.me.com/jamaan/EASYNEUROIMAGING/Nuroimaging_blog/Entries/2011/3/10_freesurfer_stats2table_(asegstats2table_and_aparcstats2table)_files/freesurferstats2table.zip]]


'''This script is suitable for MAC only.'''

The main purpose of this script is to 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;

'''For aseg.stats and wmparc.stats'''
asegstats2table --subjects bert ernie fred margaret --meas volume --tablefile aseg_stats.txt

'''For ?h.aparc.stats'''
aparcstats2table --subjects bert ernie fred margaret --hemi rh --meas thickness --tablefile aparc_stats.txt

'''For ?h.aparc.2009s.stats'''
aparcstats2table --hemi lh --subjects bert ernie fred margaret -- parc aparc.a2009s --meas volume --tablefile lh.aparc.a2009s.volume.txt

'''For ?h.BA.stats'''
aparcstats2table --hemi lh --subjects bert ernie fred margaret -- parc BA --meas volume --tablefile lh.BA.volume.txt

This applescript 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 4 mouse clicks! Please click on the link below to download script;

http://web.me.com/jamaan/EASYNEUROIMAGING/Nuroimaging_blog/Entries/2011/3/10_freesurfer_stats2table_(asegstats2table_and_aparcstats2table)_files/freesurferstats2table.zip

This script is suitable for MAC only.

The main purpose of this script is to 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;

For aseg.stats and wmparc.stats asegstats2table --subjects bert ernie fred margaret --meas volume --tablefile aseg_stats.txt

For ?h.aparc.stats aparcstats2table --subjects bert ernie fred margaret --hemi rh --meas thickness --tablefile aparc_stats.txt

For ?h.aparc.2009s.stats aparcstats2table --hemi lh --subjects bert ernie fred margaret -- parc aparc.a2009s --meas volume --tablefile lh.aparc.a2009s.volume.txt

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

freesurferstats2table (last edited 2012-02-17 14:19:25 by 2)