External Email - Use Caution
Hello K,If you type
$ asegstats2table --help
you will see that you can specify subjects on the command line as, e.g., for bert as
—subjects bertor apparently-s bert
It looks like the subjects option expects the name for at least one subjects (data),but the help output says you can list more than one subjects name as the argument to—subjects
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 195 print 'ERROR: subjects are not specified (use --subjects SUBJECTS)'^SyntaxError: invalid syntaxFile "/Applications/freesurfer/bin/asegstats2table", line 195 print 'ERROR: subjects are not specified (use --subjects SUBJECTS)'^SyntaxError: invalid syntaxFile "/Applications/freesurfer/bin/aparcstats2table", line 156 print '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/fsfast FSF_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/freesurfer sleep 1source $FREESURFER_HOME/SetUpFreeSurfer.sh sleep 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
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/ freesurfer
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.