@@ -367,7 +367,7 @@ class AutoTcorrelate(AFNICommand):
367
367
output_spec = AFNICommandOutputSpec
368
368
_cmd = '3dAutoTcorrelate'
369
369
370
- def _overload_extension (self , value , name = None ):
370
+ def _overload_extension (self , value ):
371
371
path , base , ext = split_filename (value )
372
372
if ext .lower () not in [".1d" , ".nii.gz" , ".nii" ]:
373
373
ext = ext + ".1D"
@@ -560,7 +560,6 @@ class VolregInputSpec(AFNICommandInputSpec):
560
560
copyfile = False )
561
561
out_file = File (name_template = "%s_volreg" , desc = 'output image file name' ,
562
562
argstr = '-prefix %s' , name_source = "in_file" )
563
-
564
563
basefile = File (desc = 'base file for registration' ,
565
564
argstr = '-base %s' ,
566
565
position = - 6 ,
@@ -582,12 +581,18 @@ class VolregInputSpec(AFNICommandInputSpec):
582
581
argstr = '-tshift 0' )
583
582
copyorigin = traits .Bool (desc = 'copy base file origin coords to output' ,
584
583
argstr = '-twodup' )
584
+ oned_matrix_save = File (name_template = '%s.aff12.1D' ,
585
+ desc = 'Save the matrix transformation' ,
586
+ argstr = '-1Dmatrix_save %s' ,
587
+ keep_extension = True ,
588
+ name_source = "in_file" )
585
589
586
590
587
591
class VolregOutputSpec (TraitedSpec ):
588
592
out_file = File (desc = 'registered file' , exists = True )
589
593
md1d_file = File (desc = 'max displacement info file' , exists = True )
590
594
oned_file = File (desc = 'movement parameters info file' , exists = True )
595
+ oned_matrix_save = File (desc = 'matrix transformation from base to input' , exists = True )
591
596
592
597
593
598
class Volreg (AFNICommand ):
@@ -1924,7 +1929,7 @@ class AFNItoNIFTI(AFNICommand):
1924
1929
input_spec = AFNItoNIFTIInputSpec
1925
1930
output_spec = AFNICommandOutputSpec
1926
1931
1927
- def _overload_extension (self , value , name = None ):
1932
+ def _overload_extension (self , value ):
1928
1933
path , base , ext = split_filename (value )
1929
1934
if ext .lower () not in [".1d" , ".nii.gz" , ".1D" ]:
1930
1935
ext = ext + ".nii"
0 commit comments