Hi Victor,

I am also not sure, but why not use the flags

--stack-rate and --stack-pc1 in the long_stats_slopes. It should do the trick.

Best, Martin


On 05/29/2014 11:47 AM, Victor Montal Blancafort wrote:
FS experts,

The aim of this mail is about some errors I had encountered when I try to generate a table from some *.stats files obtained after a longitudinal analysis.

After running the command :
         long_stats_slopes --qdec ./qdec/longi_presentacio.qdec.table.dat --stats aseg.stats --meas volume --do-avg --do-rate --do-pc1  --time years

(with no errors during the execution), I would like to extract and put together all the longitudinal aseg.stats files of rate and/or pc1 of my subjects.

I had tried to run the command 
     asegstats2table --subjects $subjectes_table --statsfile=long.aseg.stats.volume-rate.dat --meas volume  --tablefile aseg_stats_longi.txt
   
where $subjects is the list of subjects I want to focus.

However, an error appears after running this command:
        Parsing the .stats files
        Traceback (most recent call last):
                File "/usr/local/freesurfer/bin/asegstats2table", line 494, in <module>
    id_name_map, measurelist = parsed.parse(options.meas)
                 File "/usr/local/freesurfer/bin/fsutils.py", line 117, in parse
    self.measurelist.append( float(strlst[self.measure_column_map[measure]] ))
          ValueError: could not convert string to float: Left-Cerebellum-White-Matter

I do not know if the problem is genereted on the long_stats_slopes command or during the asegstat2table execution.

Thanks in advance for your attencion and help!
Bests,
Victor




_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

-- 
Martin Reuter, Ph.D.

Instructor in Neurology
  Harvard Medical School
Assistant in Neuroscience
  Dept. of Radiology, Massachusetts General Hospital
  Dept. of Neurology, Massachusetts General Hospital
Research Affiliate
  Computer Science and Artificial Intelligence Lab,
  Dept. of Electrical Engineering and Computer Science,
  Massachusetts Institute of Technology

A.A.Martinos Center for Biomedical Imaging
149 Thirteenth Street, Suite 2301
Charlestown, MA 02129

Phone: +1-617-724-5652
Email: 
   mreuter@nmr.mgh.harvard.edu
   reuter@mit.edu
Web  : http://reuter.mit.edu