I wanted to use one of the output files from probtrackx ( waytotal ) to threshold the fdt_paths.nii.gz
What’s the cleanest way to read the output of the waytotal file and then make it an input for fslmaths…
myworkflow.connect( ‘pbx’,‘waytotal’, ‘fslmaths’,‘Threshold’,‘thresh’)
but in this case, the output from pbx is a file (waytotal) and not a float, which is what the fslmaths–>Threshold wrapper wants.
Is there already a built-in helper function that will take as an input a single one line text file and output the value as a float or do I have to roll my own?