On Aug 12, 2018, at 12:31 PM, Schumman Resonance <schummanr@gmail.com> wrote:
External Email - Use Caution
_______________________________________________
Hi,
I'm trying to run the Stats2table_bash.sh script from Jamaan Alghamdi & Dr. Vanessa Sluming.
And I get This error:
File "/Applications/freesurfer/bin/asegstats2table", line 195print 'ERROR: subjects are not specified (use --subjects SUBJECTS)'^SyntaxError: invalid syntaxFile "/Applications/freesurfer/bin/asegstats2table", line 195print 'ERROR: subjects are not specified (use --subjects SUBJECTS)'^SyntaxError: invalid syntaxFile "/Applications/freesurfer/bin/aparcstats2table", line 156print 'ERROR: atleast 1 subject must be provided'...
This is my set up:
_________________________________________________________________
-------- freesurfer-Darwin-OSX-stable-pub-v6.0.0-2beb96c --------Setting up environment for FreeSurfer/FS-FAST (and FSL)FREESURFER_HOME /Applications/freesurferFSFAST_HOME /Applications/freesurfer/fsfastFSF_OUTPUT_FORMAT nii.gzSUBJECTS_DIR /Users/schumman/dataMNI_DIR /Applications/freesurfer/mniFSL_DIR /usr/local/fsl
_________________________________________________________________
This is the line from SetUpFreeSurfer.sh for my subjects directory____________________________________________________________
# Set this to your subjects/ dir, usually freesurfer/subjects/if [ -z $SUBJECTS_DIR ]; thenexport SUBJECTS_DIR=/Users/schumman/data
__________________________________________________
And I modified in their script to my FREESURFER_HOME as below
#!/bin/bashpath=`dirname $0`sleep 1cd $pathecho "This bash script will create table from ?.stats files"echo "Written by Jamaan Alghamdi & Dr. Vanessa Sluming"echo "University of Liverpool"echo "jamaan.alghamdi@gmail.com"echo "20/12/2010
"
export FREESURFER_HOME=/Applications/freesurfersleep 1source $FREESURFER_HOME/SetUpFreeSurfer.shsleep 1
export SUBJECTS_DIR=$PWDlist="`ls -d */`"asegstats2table --subjects $list --meas volume --skip --statsfile wmparc.stats --all-segs --tablefile wmparc_stats.txt...
I run the script from my_subject_directory.
I suspect this is something very obvious I'm not able to see and I apologize for such a basic question, any help would be much appreciated.
Thanks,K
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer