External Email - Use Caution
Hello,
I just ran trac-all on my data and am trying to use tractstats2table to run some tract-based group level analysis.
I have created a text file with the full paths to each conditions stats file (attached below and tried to run the following command
tractstats2table --load-pathstats-from-file /Volumes/DANIEL/trac/stats_info/stats_rh.unc.txt --overall --tablefile /Volumes/DANIEL/trac/stats_info/rh.unc.All.table
However, I get the following error message.
Parsing the .stats files
Traceback (most recent call last):
File "/Applications/freesurfer_dev/bin/tractstats2table", line 347, in <module>
pathway_subj, measure_value_map = parsed.parse()
File "/Applications/freesurfer_dev/bin/fsutils.py", line 288, in parse
val = float(strlist[1])
ValueError: could not convert string to float: 'y'
Could someone please provide me some guidance on how to troubleshoot this?
*Daniel Callow* *PhD Student, Neuroscience and Cognitive Science* Exercise for Brain Health Lab University of Maryland, College Park *ddcc2442@gmail.com ddcc2442@gmail.com* 443-254-6298
External Email - Use Caution
Sorry, I realized I used the pathstats.byvoxel.txt instead of pathstats.overall.txt.
Attached is the correct .txt file and the new error I get from the python script called by tractstats2table
pathstats.overall.txt
Parsing the .stats files
Building the table..
Traceback (most recent call last):
File "/Applications/freesurfer_dev/bin/tractstats2table", line 368, in <module>
r1c1, rows, columns, table = sanitize_table(options, pretable)
File "/Applications/freesurfer_dev/bin/tractstats2table", line 260, in sanitize_table
if not 1 == len(pthwyset.keys()):
File "/Applications/freesurfer_dev/bin/datastruct_utils.py", line 281, in keys
return self.__ksl[:]
TypeError: 'dict_keys' object is not subscriptable
*Daniel Callow* *PhD Student, Neuroscience and Cognitive Science* Exercise for Brain Health Lab University of Maryland, College Park *ddcc2442@gmail.com ddcc2442@gmail.com* 443-254-6298
On Mon, May 13, 2019 at 9:04 AM Daniel Callow ddcc2442@gmail.com wrote:
Hello,
I just ran trac-all on my data and am trying to use tractstats2table to run some tract-based group level analysis.
I have created a text file with the full paths to each conditions stats file (attached below and tried to run the following command
tractstats2table --load-pathstats-from-file /Volumes/DANIEL/trac/stats_info/stats_rh.unc.txt --overall --tablefile /Volumes/DANIEL/trac/stats_info/rh.unc.All.table
However, I get the following error message.
Parsing the .stats files
Traceback (most recent call last):
File "/Applications/freesurfer_dev/bin/tractstats2table", line 347, in
<module>
pathway_subj, measure_value_map = parsed.parse()File "/Applications/freesurfer_dev/bin/fsutils.py", line 288, in parse
val = float(strlist[1])ValueError: could not convert string to float: 'y'
Could someone please provide me some guidance on how to troubleshoot this?
*Daniel Callow* *PhD Student, Neuroscience and Cognitive Science* Exercise for Brain Health Lab University of Maryland, College Park *ddcc2442@gmail.com ddcc2442@gmail.com* 443-254-6298
freesurfer@nmr.mgh.harvard.edu