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 not
> > 
> > options.all_flag):
> > NameError: name 'nmeasures0' is not defined
> > 
> > 
> > i don't get that error if i either:
> > 1) remove the non-subjects (fsaverage, qdec, etc..) from the list, or:
> > 2) 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
_______________________________________________
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.

Reply via email to