Hi Doug,
yes. and i narrowed it down:
asegstats2table can deal with non-subjects (fsaverage, qdec), unless it is the *first item* in the list. If they are somewhere in between, they are just skipped, with a meaningful message.
Anyway, my bad for not sanitizing the list, it previously (v5.1) worked, so i never noticed.
Andreas
On Wednesday, April 24, 2013 17:52:32 Douglas N Greve wrote:
Hi Andreas, fsaverage does not have stats files so should cause it to crash. Are you saying that if you sort it in a certain way, you can get it to run with fsaverage? doug
On 04/24/2013 09:51 AM, Andreas Berger wrote:
Hi Surfers,
as of version 5.2, i'm getting an error using asegstats2table, depending on how i sort the subjects:
andreas@psy058:~$ asegstats2table --subjects $(ls $SUBJECTS_DIR | sort -t _ -k 1 -nk 2) -t segstats.csv --skip -d comma SUBJECTS_DIR : /mnt/raid/freesurfer/subjects Parsing the .stats files Skipping /mnt/raid/freesurfer/subjects/fsaverage/stats/aseg.stats Skipping /mnt/raid/freesurfer/subjects/lh.EC_average/stats/aseg.stats Skipping /mnt/raid/freesurfer/subjects/qdec/stats/aseg.stats Skipping /mnt/raid/freesurfer/subjects/rh.EC_average/stats/aseg.stats
Traceback (most recent call last): File "/usr/local/freesurfer/bin/asegstats2table", line 553, in
<module>
if(nmeasures != nmeasures0 and not options.common_flag and notoptions.all_flag): NameError: name 'nmeasures0' is not defined
i don't get that error if i either:
- remove the non-subjects (fsaverage, qdec, etc..) from the list, or:
- do not sort the list like i do
the subjects list is attached, sorted the way it produces the error
greetings, Andreas
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer