@@ -491,11 +491,10 @@ class AutomaskInputSpec(AFNICommandInputSpec):
491
491
out_file = File (name_template = "%s_mask" , desc = 'output image file name' ,
492
492
argstr = '-prefix %s' , name_source = "in_file" )
493
493
494
- brain_file = File ("%s_masked" ,
494
+ brain_file = File (name_template = "%s_masked" ,
495
495
desc = "output file from 3dAutomask" ,
496
496
argstr = '-apply_prefix %s' ,
497
- name_source = "in_file" ,
498
- usedefault = True )
497
+ name_source = "in_file" )
499
498
500
499
clfrac = traits .Float (desc = 'sets the clip level fraction' +
501
500
' (must be 0.1-0.9). ' +
@@ -562,11 +561,10 @@ class VolregInputSpec(AFNICommandInputSpec):
562
561
md1dfile = File (desc = 'max displacement output file' ,
563
562
argstr = '-maxdisp1D %s' ,
564
563
position = - 4 )
565
- oned_file = File ('%s.1D' , desc = '1D movement parameters output file' ,
564
+ oned_file = File (name_template = '%s.1D' , desc = '1D movement parameters output file' ,
566
565
argstr = '-1Dfile %s' ,
567
566
name_source = "in_file" ,
568
- keep_extension = True ,
569
- usedefault = True )
567
+ keep_extension = True )
570
568
verbose = traits .Bool (desc = 'more detailed description of the process' ,
571
569
argstr = '-verbose' )
572
570
timeshift = traits .Bool (desc = 'time shift to mean slice time offset' ,
@@ -613,8 +611,8 @@ class MergeInputSpec(AFNICommandInputSpec):
613
611
argstr = '%s' ,
614
612
position = - 1 ,
615
613
mandatory = True )
616
- out_file = File ("%s_merge" , desc = 'output image file name' ,
617
- argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
614
+ out_file = File (name_template = "%s_merge" , desc = 'output image file name' ,
615
+ argstr = '-prefix %s' , name_source = "in_file" )
618
616
doall = traits .Bool (desc = 'apply options to all sub-bricks in dataset' ,
619
617
argstr = '-doall' )
620
618
blurfwhm = traits .Int (desc = 'FWHM blur value (mm)' ,
@@ -652,8 +650,8 @@ class CopyInputSpec(AFNICommandInputSpec):
652
650
position = - 2 ,
653
651
mandatory = True ,
654
652
exists = True )
655
- out_file = File ("%s_copy" , desc = 'output image file name' ,
656
- argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
653
+ out_file = File (name_template = "%s_copy" , desc = 'output image file name' ,
654
+ argstr = '-prefix %s' , name_source = "in_file" )
657
655
658
656
659
657
class Copy (AFNICommand ):
@@ -685,8 +683,8 @@ class FourierInputSpec(AFNICommandInputSpec):
685
683
position = - 1 ,
686
684
mandatory = True ,
687
685
exists = True )
688
- out_file = File ("%s_fourier" , desc = 'output image file name' ,
689
- argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
686
+ out_file = File (name_template = "%s_fourier" , desc = 'output image file name' ,
687
+ argstr = '-prefix %s' , name_source = "in_file" )
690
688
lowpass = traits .Float (desc = 'lowpass' ,
691
689
argstr = '-lowpass %f' ,
692
690
position = 0 ,
@@ -730,13 +728,12 @@ class BandpassInputSpec(AFNICommandInputSpec):
730
728
mandatory = True ,
731
729
exists = True )
732
730
out_file = File (
733
- '%s_bp' ,
731
+ name_template = '%s_bp' ,
734
732
desc = 'output file from 3dBandpass' ,
735
733
argstr = '-prefix %s' ,
736
734
position = 1 ,
737
735
name_source = 'in_file' ,
738
- genfile = True ,
739
- usedefault = True )
736
+ genfile = True )
740
737
lowpass = traits .Float (
741
738
desc = 'lowpass' ,
742
739
argstr = '%f' ,
@@ -838,8 +835,8 @@ class ZCutUpInputSpec(AFNICommandInputSpec):
838
835
position = - 1 ,
839
836
mandatory = True ,
840
837
exists = True )
841
- out_file = File ("%s_zcupup" , desc = 'output image file name' ,
842
- argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
838
+ out_file = File (name_template = "%s_zcupup" , desc = 'output image file name' ,
839
+ argstr = '-prefix %s' , name_source = "in_file" )
843
840
keep = traits .Str (desc = 'slice range to keep in output' ,
844
841
argstr = '-keep %s' )
845
842
@@ -884,7 +881,6 @@ class AllineateInputSpec(AFNICommandInputSpec):
884
881
position = - 2 ,
885
882
name_source = '%s_allineate' ,
886
883
genfile = True )
887
- suffix = traits .Str ('_allineate' , desc = "out_file suffix" , usedefault = True )
888
884
889
885
out_param_file = File (
890
886
argstr = '-1Dparam_save %s' ,
@@ -1156,8 +1152,8 @@ class SkullStripInputSpec(AFNICommandInputSpec):
1156
1152
position = 1 ,
1157
1153
mandatory = True ,
1158
1154
exists = True )
1159
- out_file = File ("%s_skullstrip" , desc = 'output image file name' ,
1160
- argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
1155
+ out_file = File (name_template = "%s_skullstrip" , desc = 'output image file name' ,
1156
+ argstr = '-prefix %s' , name_source = "in_file" )
1161
1157
1162
1158
1163
1159
class SkullStrip (AFNICommand ):
@@ -1189,8 +1185,8 @@ class TCatInputSpec(AFNICommandInputSpec):
1189
1185
argstr = ' %s' ,
1190
1186
position = - 1 ,
1191
1187
mandatory = True )
1192
- out_file = File ("%s_tcat" , desc = 'output image file name' ,
1193
- argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
1188
+ out_file = File (name_template = "%s_tcat" , desc = 'output image file name' ,
1189
+ argstr = '-prefix %s' , name_source = "in_file" )
1194
1190
rlt = traits .Str (desc = 'options' , argstr = '-rlt%s' , position = 1 )
1195
1191
1196
1192
@@ -1224,8 +1220,8 @@ class FimInputSpec(AFNICommandInputSpec):
1224
1220
position = 1 ,
1225
1221
mandatory = True ,
1226
1222
exists = True )
1227
- out_file = File ("%s_fim" , desc = 'output image file name' ,
1228
- argstr = '-bucket %s' , name_source = "in_file" , usedefault = True )
1223
+ out_file = File (name_template = "%s_fim" , desc = 'output image file name' ,
1224
+ argstr = '-bucket %s' , name_source = "in_file" )
1229
1225
ideal_file = File (desc = 'ideal time series file name' ,
1230
1226
argstr = '-ideal_file %s' ,
1231
1227
position = 2 ,
@@ -1275,8 +1271,8 @@ class TCorrelateInputSpec(AFNICommandInputSpec):
1275
1271
position = - 1 ,
1276
1272
mandatory = True ,
1277
1273
exists = True )
1278
- out_file = File ("%s_tcorr" , desc = 'output image file name' ,
1279
- argstr = '-prefix %s' , name_source = "xset" , usedefault = True )
1274
+ out_file = File (name_template = "%s_tcorr" , desc = 'output image file name' ,
1275
+ argstr = '-prefix %s' , name_source = "xset" )
1280
1276
pearson = traits .Bool (desc = 'Correlation is the normal' +
1281
1277
' Pearson correlation coefficient' ,
1282
1278
argstr = '-pearson' ,
@@ -1465,15 +1461,6 @@ def aggregate_outputs(self, runtime=None, needed_outputs=None):
1465
1461
return outputs
1466
1462
1467
1463
1468
- """
1469
- 3dcalc -a ${rest}.nii.gz[${TRstart}..${TRend}] -expr 'a' -prefix $
1470
- {rest}_dr.nii.gz
1471
-
1472
- 3dcalc -a ${rest}_mc.nii.gz -b ${rest}_mask.nii.gz -expr 'a*b' -prefix
1473
- ${rest}_ss.nii.gz
1474
- """
1475
-
1476
-
1477
1464
class CalcInputSpec (AFNICommandInputSpec ):
1478
1465
in_file_a = File (desc = 'input file to 3dcalc' ,
1479
1466
argstr = '-a %s' , position = 0 , mandatory = True , exists = True )
@@ -1489,7 +1476,6 @@ class CalcInputSpec(AFNICommandInputSpec):
1489
1476
requires = ['start_idx' ])
1490
1477
single_idx = traits .Int (desc = 'volume index for in_file_a' )
1491
1478
other = File (desc = 'other options' , argstr = '' )
1492
- suffix = traits .Str ('_calc' , desc = "out_file suffix" , usedefault = True )
1493
1479
1494
1480
1495
1481
class Calc (AFNICommand ):
@@ -1564,7 +1550,6 @@ class BlurInMaskInputSpec(AFNICommandInputSpec):
1564
1550
desc = 'Save dataset as floats, no matter what the input data type is.' ,
1565
1551
argstr = '-float' )
1566
1552
options = traits .Str (desc = 'options' , argstr = '%s' , position = 2 )
1567
- suffix = traits .Str ('_blurmask' , desc = "out_file suffix" , usedefault = True )
1568
1553
1569
1554
1570
1555
class BlurInMask (AFNICommand ):
0 commit comments