@@ -340,12 +340,13 @@ class AutoTcorrelate(AFNIPrefixCommand):
340
340
>>> from nipype.interfaces import afni as afni
341
341
>>> corr = afni.AutoTcorrelate()
342
342
>>> corr.inputs.in_file = 'functional.nii'
343
+ >>> corr.inputs.out_file = 'my_similarity_matrix.1D'
343
344
>>> corr.inputs.polort = -1
344
345
>>> corr.inputs.eta2 = True
345
346
>>> corr.inputs.mask = 'mask.nii'
346
347
>>> corr.inputs.mask_only_targets = True
347
- >>> corr.cmdline
348
- '3dAutoTcorrelation - prefix functional_similarity_matrix. 1D functional.nii'
348
+ >>> corr.cmdline # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
349
+ '3dAutoTcorrelate -eta2 -mask mask.nii -mask_only_targets - prefix ...my_similarity_matrix. 1D -polort -1 functional.nii'
349
350
>>> res = corr.run() # doctest: +SKIP
350
351
"""
351
352
input_spec = AutoTcorrelateInputSpec
@@ -358,6 +359,8 @@ def _overload_extension(self, value):
358
359
ext = ext + ".1D"
359
360
return os .path .join (path , base + ext )
360
361
362
+ def _gen_filename (self , name ):
363
+ return os .path .abspath (super (AutoTcorrelate , self )._gen_filename (name ))
361
364
362
365
class TStatInputSpec (AFNIPrefixInputSpec ):
363
366
in_file = File (desc = 'input file to 3dTstat' ,
@@ -861,8 +864,8 @@ class MaskaveInputSpec(AFNIPrefixInputSpec):
861
864
position = - 2 ,
862
865
mandatory = True ,
863
866
exists = True )
864
- out_file = File ("%s_maskave" , desc = 'output image file name' ,
865
- argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
867
+ out_file = File ("%s_maskave.1D " , desc = 'output image file name' ,
868
+ argstr = "> %s" , name_source = "in_file" , usedefault = True , position = - 1 )
866
869
mask = File (desc = 'matrix to align input file' ,
867
870
argstr = '-mask %s' ,
868
871
position = 1 ,
@@ -892,7 +895,8 @@ class Maskave(AFNIPrefixCommand):
892
895
>>> maskave.inputs.in_file = 'functional.nii'
893
896
>>> maskave.inputs.mask= 'seed_mask.nii'
894
897
>>> maskave.inputs.quiet= True
895
- >>> maskave.inputs.out_file= 'maskave.1D'
898
+ >>> maskave.cmdline
899
+ '3dmaskave -mask seed_mask.nii -quiet functional.nii > functional_maskave.1D'
896
900
>>> res = maskave.run() # doctest: +SKIP
897
901
898
902
"""
@@ -987,7 +991,7 @@ class FimInputSpec(AFNIPrefixInputSpec):
987
991
mandatory = True ,
988
992
exists = True )
989
993
out_file = File ("%s_fim" , desc = 'output image file name' ,
990
- argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
994
+ argstr = '-bucket %s' , name_source = "in_file" , usedefault = True )
991
995
ideal_file = File (desc = 'ideal time series file name' ,
992
996
argstr = '-ideal_file %s' ,
993
997
position = 2 ,
@@ -1283,7 +1287,7 @@ class Calc(AFNIPrefixCommand):
1283
1287
>>> calc.inputs.out_file = 'functional_calc.nii.gz'
1284
1288
>>> calc.inputs.outputtype = "NIFTI"
1285
1289
>>> calc.cmdline
1286
- '3dcalc -a functional.nii -b functional2.nii -expr "a*b" -prefix functional_calc.nii'
1290
+ '3dcalc -a functional.nii -b functional2.nii -expr "a*b" -prefix functional_calc.nii.gz '
1287
1291
1288
1292
"""
1289
1293
0 commit comments