Hi, all experts,
I am studying the AnatomicalROIV6.0 tutorials. In the Anatomical ROI analysis tutorial, the first four part work well. While in the Group stats files, I got an error information like this.
group_analysis_tutorial ting$ asegstats2table --subjects 004 021 040 067 080 092 \
--segno 11 17 18 \ --tablefile aseg.vol.table
File "/Applications/freesurfer/bin/asegstats2table", line 195 print 'ERROR: subjects are not specified (use --subjects SUBJECTS)' ^ SyntaxError: invalid syntax
Thanks for your help.
Ting
Hi Ting, this is a bug introduced by python3, you must run this script with python2 by either modifying the first line to say: #!/usr/bin/env python2
or by running: python2 $FREESURFER_HOME/bin/asegstats2table --subjects 004 021 040 067 080 092 --segno 11 17 18 --tablefile aseg.vol.table
best, Andrew
On January 20, 2018 at 8:28:19 PM, Ting Li (txli1@ualr.edumailto:txli1@ualr.edu) wrote:
Hi, all experts,
I am studying the AnatomicalROIV6.0 tutorials. In the Anatomical ROI analysis tutorial, the first four part work well. While in the Group stats files, I got an error information like this.
group_analysis_tutorial ting$ asegstats2table --subjects 004 021 040 067 080 092 \
--segno 11 17 18 \ --tablefile aseg.vol.table
File "/Applications/freesurfer/bin/asegstats2table", line 195 print 'ERROR: subjects are not specified (use --subjects SUBJECTS)' ^ SyntaxError: invalid syntax
Thanks for your help.
Ting _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu