|
Size: 1540
Comment:
|
Size: 1496
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| 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; | 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. |
| Line 3: | Line 3: |
| '''1- Applescript''' | |
| Line 4: | Line 5: |
'''1- Applescript''' It works using 4 mouse clicks only!'''This script is suitable for MAC only.''' |
It works using 4 mouse clicks only!''' This script works on both bash and tsch shells but it is suitable for MAC only.''' |
| Line 11: | Line 9: |
| [[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_applescript.zip|freesurferstats2table_applescript]] |
| Line 15: | Line 13: |
| '''***********************************************************************************************************''' | |
| Line 16: | Line 15: |
| '''2- Bash script''' | |
| Line 17: | Line 17: |
| '''This script works on both Linux and MAC.''' But it works on bash shell only. | |
| Line 18: | Line 19: |
| User will be asked to write freesurfer directory and subjects' directory. | |
| Line 19: | Line 21: |
| You can use '''chmod +x''' to make it executable as following; | |
| Line 20: | Line 23: |
| chmod +x stats2table_bash.command '''or''' chmod +x stats2table_bash.sh | |
| Line 21: | Line 25: |
| Please click on the link below to download script; | |
| Line 22: | Line 27: |
| [[http://web.me.com/jamaan/EASYNEUROIMAGING/Nuroimaging_blog/Entries/2010/12/23_Bash_scripting_and_freesurfer_(2)_files/freesurferstats2table_bash.zip |freesurferstats2table_bash]] | |
| Line 23: | Line 29: |
/ / / '''2- Bash 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 |
[[http://youtu.be/_D2UbT-1mY0|The illustration video]] ---- |
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.
1- Applescript
It works using 4 mouse clicks only! This script works on both bash and tsch shells but it is suitable for MAC only.
Please click on the link below to download script;
freesurferstats2table_applescript
***********************************************************************************************************
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.
You can use chmod +x to make it executable as following;
chmod +x stats2table_bash.command or chmod +x stats2table_bash.sh
Please click on the link below to download script;
