@@ -36,7 +36,7 @@ class BETInputSpec(FSLCommandInputSpec):
36
36
desc = 'input file to skull strip' ,
37
37
argstr = '%s' , position = 0 , mandatory = True )
38
38
out_file = File (desc = 'name of output skull stripped image' ,
39
- argstr = '%s' , position = 1 , genfile = True )
39
+ argstr = '%s' , position = 1 , genfile = True , hash_files = False )
40
40
outline = traits .Bool (desc = 'create surface outline image' ,
41
41
argstr = '-o' )
42
42
mask = traits .Bool (desc = 'create binary mask image' ,
@@ -356,10 +356,10 @@ class FLIRTInputSpec(FSLCommandInputSpec):
356
356
reference = File (exists = True , argstr = '-ref %s' , mandatory = True ,
357
357
position = 1 , desc = 'reference file' )
358
358
out_file = File (argstr = '-out %s' , desc = 'registered output file' ,
359
- genfile = True , position = 2 )
359
+ genfile = True , position = 2 , hash_files = False )
360
360
out_matrix_file = File (argstr = '-omat %s' ,
361
361
desc = 'output affine matrix in 4x4 asciii format' ,
362
- genfile = True , position = 3 )
362
+ genfile = True , position = 3 , hash_files = False )
363
363
in_matrix_file = File (argstr = '-init %s' , desc = 'input 4x4 affine matrix' )
364
364
apply_xfm = traits .Bool (argstr = '-applyxfm' , requires = ['in_matrix_file' ],
365
365
desc = 'apply transformation supplied by in_matrix_file' )
@@ -520,7 +520,7 @@ class MCFLIRTInputSpec(FSLCommandInputSpec):
520
520
in_file = File (exists = True , position = 0 , argstr = "-in %s" , mandatory = True ,
521
521
desc = "timeseries to motion-correct" )
522
522
out_file = File (argstr = '-out %s' , genfile = True ,
523
- desc = "file to write" )
523
+ desc = "file to write" , hash_files = False )
524
524
cost = traits .Enum ('mutualinfo' , 'woods' , 'corratio' , 'normcorr' , 'normmi' , 'leastsquares' ,
525
525
argstr = '-cost %s' , desc = "cost function to optimize" )
526
526
bins = traits .Int (argstr = '-bins %d' , desc = "number of histogram bins" )
@@ -623,7 +623,7 @@ def _gen_outfilename(self):
623
623
if not isdefined (out_file ) and isdefined (self .inputs .in_file ):
624
624
out_file = self ._gen_fname (self .inputs .in_file ,
625
625
suffix = '_mcf' )
626
- return out_file
626
+ return os . path . abspath ( out_file )
627
627
628
628
629
629
class FNIRTInputSpec (FSLCommandInputSpec ):
@@ -641,24 +641,24 @@ class FNIRTInputSpec(FSLCommandInputSpec):
641
641
fieldcoeff_file = traits .Either (traits .Bool , File , argstr = '--cout=%s' ,
642
642
desc = 'name of output file with field coefficients or true' )
643
643
warped_file = File (argstr = '--iout=%s' ,
644
- desc = 'name of output image' , genfile = True )
644
+ desc = 'name of output image' , genfile = True , hash_files = False )
645
645
field_file = traits .Either (traits .Bool , File ,
646
646
argstr = '--fout=%s' ,
647
- desc = 'name of output file with field or true' )
647
+ desc = 'name of output file with field or true' , hash_files = False )
648
648
jacobian_file = traits .Either (traits .Bool , File ,
649
649
argstr = '--jout=%s' ,
650
650
desc = 'name of file for writing out the Jacobian' \
651
- 'of the field (for diagnostic or VBM purposes)' )
651
+ 'of the field (for diagnostic or VBM purposes)' , hash_files = False )
652
652
modulatedref_file = traits .Either (traits .Bool , File ,
653
653
argstr = '--refout=%s' ,
654
654
desc = 'name of file for writing out intensity modulated' \
655
- '--ref (for diagnostic purposes)' )
655
+ '--ref (for diagnostic purposes)' , hash_files = False )
656
656
out_intensitymap_file = traits .Either (traits .Bool , File ,
657
657
argstr = '--intout=%s' ,
658
658
desc = 'name of files for writing information pertaining ' \
659
- 'to intensity mapping' )
659
+ 'to intensity mapping' , hash_files = False )
660
660
log_file = File (argstr = '--logout=%s' ,
661
- desc = 'Name of log-file' , genfile = True )
661
+ desc = 'Name of log-file' , genfile = True , hash_files = False )
662
662
config_file = File (exists = True , argstr = '--config=%s' ,
663
663
desc = 'Name of config file specifying command line arguments' )
664
664
refmask_file = File (exists = True , argstr = '--refmask=%s' ,
@@ -806,7 +806,7 @@ def _list_outputs(self):
806
806
suffix = '_' + suffix ,
807
807
change_ext = change_ext )
808
808
else :
809
- outputs [key ] = inval
809
+ outputs [key ] = os . path . abspath ( inval )
810
810
return outputs
811
811
812
812
def _format_arg (self , name , spec , value ):
@@ -843,7 +843,7 @@ class ApplyWarpInputSpec(FSLCommandInputSpec):
843
843
mandatory = True ,
844
844
desc = 'image to be warped' )
845
845
out_file = File (argstr = '--out=%s' , genfile = True ,
846
- desc = 'output filename' )
846
+ desc = 'output filename' , hash_files = False )
847
847
ref_file = File (exists = True , argstr = '--ref=%s' ,
848
848
mandatory = True ,
849
849
desc = 'reference image' )
@@ -920,7 +920,7 @@ class SliceTimerInputSpec(FSLCommandInputSpec):
920
920
mandatory = True , position = 0 ,
921
921
desc = 'filename of input timeseries' )
922
922
out_file = File (argstr = '--out=%s' , genfile = True ,
923
- desc = 'filename of output timeseries' )
923
+ desc = 'filename of output timeseries' , hash_files = False )
924
924
index_dir = traits .Bool (argstr = '--down' ,
925
925
desc = 'slice indexing from top to bottom' )
926
926
time_repetition = traits .Float (argstr = '--repeat=%f' ,
@@ -997,7 +997,7 @@ class SUSANInputSpec(FSLCommandInputSpec):
997
997
'value for any brightness threshold will auto-set the '
998
998
'threshold at 10% of the robust range' )
999
999
out_file = File (argstr = '%s' , position = - 1 , genfile = True ,
1000
- desc = 'output file name' )
1000
+ desc = 'output file name' , hash_files = False )
1001
1001
1002
1002
1003
1003
class SUSANOutputSpec (TraitedSpec ):
@@ -1056,7 +1056,7 @@ class FUGUEInputSpec(FSLCommandInputSpec):
1056
1056
in_file = File (exists = True , argstr = '--in=%s' ,
1057
1057
desc = 'filename of input volume' )
1058
1058
unwarped_file = File (argstr = '--unwarp=%s' , genfile = True ,
1059
- desc = 'apply unwarping and save as filename' )
1059
+ desc = 'apply unwarping and save as filename' , hash_files = False )
1060
1060
phasemap_file = File (exists = True , argstr = '--phasemap=%s' ,
1061
1061
desc = 'filename for input phase image' )
1062
1062
dwell_to_asym_ratio = traits .Float (argstr = '--dwelltoasym=%.10f' ,
@@ -1066,11 +1066,11 @@ class FUGUEInputSpec(FSLCommandInputSpec):
1066
1066
asym_se_time = traits .Float (argstr = '--asym=%.10f' ,
1067
1067
desc = 'set the fieldmap asymmetric spin echo time (sec)' )
1068
1068
fmap_out_file = File (argstr = '--savefmap=%s' ,
1069
- desc = 'filename for saving fieldmap (rad/s)' )
1069
+ desc = 'filename for saving fieldmap (rad/s)' , hash_files = False )
1070
1070
fmap_in_file = File (exists = True , argstr = '--loadfmap=%s' ,
1071
1071
desc = 'filename for loading fieldmap (rad/s)' )
1072
1072
shift_out_file = File (argstr = '--saveshift=%s' ,
1073
- desc = 'filename for saving pixel shift volume' )
1073
+ desc = 'filename for saving pixel shift volume' , hash_files = False )
1074
1074
shift_in_file = File (exists = True , argstr = '--loadshift=%s' ,
1075
1075
desc = 'filename for reading pixel shift volume' )
1076
1076
median_2dfilter = traits .Bool (argstr = '--median' ,
@@ -1108,12 +1108,12 @@ class FUGUEInputSpec(FSLCommandInputSpec):
1108
1108
traits .File ,
1109
1109
argstr = '--unmaskfmap=%s' ,
1110
1110
requires = ['fmap_out_file' ],
1111
- desc = 'saves the unmasked fieldmap when using --savefmap' )
1111
+ desc = 'saves the unmasked fieldmap when using --savefmap' , hash_files = False )
1112
1112
save_unmasked_shift = traits .Either (traits .Bool ,
1113
1113
traits .File ,
1114
1114
argstr = '--unmaskshift=%s' ,
1115
1115
requires = ['shift_out_file' ],
1116
- desc = 'saves the unmasked shiftmap when using --saveshift' )
1116
+ desc = 'saves the unmasked shiftmap when using --saveshift' , hash_files = False )
1117
1117
nokspace = traits .Bool (argstr = '--nokspace' , desc = 'do not use k-space forward warping' )
1118
1118
1119
1119
@@ -1168,7 +1168,7 @@ class PRELUDEInputSpec(FSLCommandInputSpec):
1168
1168
desc = 'raw phase file' )
1169
1169
unwrapped_phase_file = File (genfile = True ,
1170
1170
argstr = '--unwrap=%s' ,
1171
- desc = 'file containing unwrapepd phase' )
1171
+ desc = 'file containing unwrapepd phase' , hash_files = False )
1172
1172
num_partitions = traits .Int (argstr = '--numphasesplit=%d' ,
1173
1173
desc = 'number of phase partitions to use' )
1174
1174
labelprocess2d = traits .Bool (argstr = '--labelslices' ,
@@ -1188,11 +1188,11 @@ class PRELUDEInputSpec(FSLCommandInputSpec):
1188
1188
end = traits .Int (argstr = '--end=%d' ,
1189
1189
desc = 'final image number to process (default Inf)' )
1190
1190
savemask_file = File (argstr = '--savemask=%s' ,
1191
- desc = 'saving the mask volume' )
1191
+ desc = 'saving the mask volume' , hash_files = False )
1192
1192
rawphase_file = File (argstr = '--rawphase=%s' ,
1193
- desc = 'saving the raw phase output' )
1193
+ desc = 'saving the raw phase output' , hash_files = False )
1194
1194
label_file = File (argstr = '--labels=%s' ,
1195
- desc = 'saving the area labels output' )
1195
+ desc = 'saving the area labels output' , hash_files = False )
1196
1196
removeramps = traits .Bool (argstr = '--removeramps' ,
1197
1197
desc = 'remove phase ramps during unwrapping' )
1198
1198
@@ -1244,7 +1244,7 @@ class FIRSTInputSpec(FSLCommandInputSpec):
1244
1244
desc = 'input data file' )
1245
1245
out_file = File ('segmented' , usedefault = True , mandatory = True , position = - 1 ,
1246
1246
argstr = '-o %s' ,
1247
- desc = 'output data file' )
1247
+ desc = 'output data file' , hash_files = False )
1248
1248
verbose = traits .Bool (argstr = '-v' , position = 1 ,
1249
1249
desc = "Use verbose logging." )
1250
1250
brain_extracted = traits .Bool (argstr = '-b' , position = 2 ,
0 commit comments