Hi,
I'm trying to run asegstats2table
asegstats2table --subjects subjlist.csv --skip --delimiter comma --common-segs --tablefile asegs_03042016.csv
All subjects in the subjlist are present in the directory but I get this error message:
Parsing the .stats files Building the table.. Traceback (most recent call last): File "/usr/local/freesurfer/bin/asegstats2table", line 560, in <module> rows, columns, table = sanitize_table(options, pretable) File "/usr/local/freesurfer/bin/asegstats2table", line 454, in sanitize_table _specs, _id_name_map, _measl = _t[0] IndexError: list index out of range
I get the error message even if I reduce the list to two subjects. It works if I do this (all subjdirs begin with PD):
asegstats2table --subjects PD* --skip --delimiter comma --common-segs --tablefile asegs_03042016.csv
And it works if I enter the subjects' names individually. With over 100 subjects, however, that's not an option.
I'd be grateful for any suggestion on how to run asegstats2table with a subjects list.
Thank you!
sincerely yours,
Lars M. Rimol, PhD Senior researcher, Norwegian Advisory Unit for functional MRI Department of Radiology, St. Olav's University hospital, 7006 Trondheim, Norway
Can you send subjlist.csv? Do you get the same error if you run ls -d PD* > subjlist.txt and use that file instead?
On 04/03/2016 05:16 AM, Lars M. Rimol wrote:
Hi,
I'm trying to run asegstats2table
asegstats2table --subjects subjlist.csv --skip --delimiter comma --common-segs --tablefile asegs_03042016.csv
All subjects in the subjlist are present in the directory but I get this error message:
Parsing the .stats files Building the table.. Traceback (most recent call last): File "/usr/local/freesurfer/bin/asegstats2table", line 560, in <module> rows, columns, table = sanitize_table(options, pretable) File "/usr/local/freesurfer/bin/asegstats2table", line 454, in sanitize_table _specs, _id_name_map, _measl = _t[0] IndexError: list index out of range
I get the error message even if I reduce the list to two subjects. It works if I do this (all subjdirs begin with PD):
asegstats2table --subjects PD* --skip --delimiter comma --common-segs --tablefile asegs_03042016.csv
And it works if I enter the subjects' names individually. With over 100 subjects, however, that's not an option.
I'd be grateful for any suggestion on how to run asegstats2table with a subjects list.
Thank you!
sincerely yours,
Lars M. Rimol, PhD Senior researcher, Norwegian Advisory Unit for functional MRI Department of Radiology, St. Olav's University hospital, 7006 Trondheim, Norway
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu