Differences between revisions 5 and 26 (spanning 21 versions)
Revision 5 as of 2011-07-07 21:06:02
Size: 1437
Editor: 2
Comment:
Revision 26 as of 2011-07-09 12:49:55
Size: 1667
Editor: 2
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
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! 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.'''
Line 5: Line 11:
  [[http://web.me.com/jamaan/EASYNEUROIMAGING/Nuroimaging_blog/Entries/2011/3/10_freesurfer_stats2table_(asegstats2table_and_aparcstats2table)_files/freesurferstats2table.zip|freesurferstats2table]] [[http://web.me.com/jamaan/EASYNEUROIMAGING/Nuroimaging_blog/Entries/2011/3/10_freesurfer_stats2table_(asegstats2table_and_aparcstats2table)_files/freesurferstats2table.zip|freesurferstats2table]]
Line 7: Line 13:
[[http://youtu.be/o7uX70xstws|The illustration video]]
Line 8: Line 15:

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;


 This script is suitable for MAC only.
.
.
.
.
.
.
Line 17: Line 25:
  '''For aseg.stats and wmparc.stats''' '''2- Bash script'''
'''This script works on both linux and MAC.''' but it works on bash shell only.
Line 19: Line 28:
 asegstats2table --subjects bert ernie fred margaret --meas volume --tablefile aseg_stats.txt Please click on the link below to download script;
Line 21: Line 30:
  '''For ?h.aparc.stats '''
Line 23: Line 31:
 aparcstats2table --subjects bert ernie fred margaret --hemi rh --meas thickness --tablefile aparc_stats.txt '''aseg.stats and wmparc.stats'''
Line 25: Line 33:
  '''For ?h.aparc.2009s.stats ''' asegstats2table --subjects bert ernie fred margaret --meas volume --tablefile aseg_stats.txt
Line 27: Line 35:
 aparcstats2table --hemi lh --subjects bert ernie fred margaret -- parc aparc.a2009s --meas volume --tablefile lh.aparc.a2009s.volume.txt '''?h.aparc.stats'''
Line 29: Line 37:
  '''For'''''' ''''''?h.BA.stats''' aparcstats2table --subjects bert ernie fred margaret --hemi rh --meas thickness --tablefile aparc_stats.txt
Line 31: Line 39:
 aparcstats2table --hemi lh --subjects bert ernie fred margaret -- parc BA --meas volume --tablefile lh.BA.volume.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

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.

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

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