@@ -121,10 +121,6 @@ class TShiftInputSpec(AFNICommandInputSpec):
121
121
argstr = "-rlt+" )
122
122
123
123
124
- class TShiftOutputSpec (TraitedSpec ):
125
- out_file = File (desc = 'post slice time shifted 4D image' , exists = True )
126
-
127
-
128
124
class TShift (AFNICommand ):
129
125
"""Shifts voxel time series from input
130
126
so that seperate slices are aligned to the same
@@ -149,7 +145,7 @@ class TShift(AFNICommand):
149
145
150
146
_cmd = '3dTshift'
151
147
input_spec = TShiftInputSpec
152
- output_spec = TShiftOutputSpec
148
+ output_spec = AFNICommandOutputSpec
153
149
154
150
155
151
class RefitInputSpec (AFNICommandInputSpec ):
@@ -176,11 +172,6 @@ class RefitInputSpec(AFNICommandInputSpec):
176
172
argstr = '-zorigin %s' )
177
173
178
174
179
- class RefitOutputSpec (TraitedSpec ):
180
- out_file = File (desc = 'Same file as original in_file with modified matrix' ,
181
- exists = True )
182
-
183
-
184
175
class Refit (AFNICommand ):
185
176
"""Changes some of the information inside a 3D dataset's header
186
177
@@ -200,7 +191,7 @@ class Refit(AFNICommand):
200
191
201
192
_cmd = '3drefit'
202
193
input_spec = RefitInputSpec
203
- output_spec = RefitOutputSpec
194
+ output_spec = AFNICommandOutputSpec
204
195
205
196
206
197
class WarpInputSpec (AFNICommandInputSpec ):
@@ -242,10 +233,6 @@ class WarpInputSpec(AFNICommandInputSpec):
242
233
suffix = traits .Str ('_warp' , desc = "out_file suffix" , usedefault = True )
243
234
244
235
245
- class WarpOutputSpec (TraitedSpec ):
246
- out_file = File (desc = 'spatially transformed input image' , exists = True )
247
-
248
-
249
236
class Warp (AFNICommand ):
250
237
"""Use 3dWarp for spatially transforming a dataset
251
238
@@ -265,7 +252,7 @@ class Warp(AFNICommand):
265
252
266
253
_cmd = '3dWarp'
267
254
input_spec = WarpInputSpec
268
- output_spec = WarpOutputSpec
255
+ output_spec = AFNICommandOutputSpec
269
256
270
257
271
258
class ResampleInputSpec (AFNICommandInputSpec ):
@@ -283,11 +270,6 @@ class ResampleInputSpec(AFNICommandInputSpec):
283
270
argstr = '-orient %s' )
284
271
285
272
286
- class ResampleOutputSpec (TraitedSpec ):
287
- out_file = File (desc = 'reoriented or resampled file' ,
288
- exists = True )
289
-
290
-
291
273
class Resample (AFNIBaseCommand ):
292
274
"""Resample or reorient an image using AFNI 3dresample command
293
275
@@ -307,7 +289,7 @@ class Resample(AFNIBaseCommand):
307
289
308
290
_cmd = '3dresample'
309
291
input_spec = ResampleInputSpec
310
- output_spec = ResampleOutputSpec
292
+ output_spec = AFNICommandOutputSpec
311
293
312
294
class AutoTcorrelateInputSpec (AFNICommandInputSpec ):
313
295
in_file = File (desc = 'timeseries x space (volume or surface) file' ,
@@ -328,10 +310,6 @@ class AutoTcorrelateInputSpec(AFNICommandInputSpec):
328
310
out_file = File ("%s_similarity_matrix.1D" , desc = 'output image file name' ,
329
311
argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
330
312
331
- class AutoTcorrelateOutputSpec (TraitedSpec ):
332
- out_file = File (desc = 'similarity, eta2 or correlation matrix' ,
333
- exists = True )
334
-
335
313
class AutoTcorrelate (AFNICommand ):
336
314
"""
337
315
Examples
@@ -350,7 +328,7 @@ class AutoTcorrelate(AFNICommand):
350
328
>>> res = corr.run() # doctest: +SKIP
351
329
"""
352
330
input_spec = AutoTcorrelateInputSpec
353
- output_spec = AutoTcorrelateOutputSpec
331
+ output_spec = AFNICommandOutputSpec
354
332
_cmd = '3dAutoTcorrelate'
355
333
356
334
def _overload_extension (self , value ):
@@ -373,11 +351,6 @@ class TStatInputSpec(AFNICommandInputSpec):
373
351
argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
374
352
375
353
376
- class TStatOutputSpec (TraitedSpec ):
377
- out_file = File (desc = 'statistical file' ,
378
- exists = True )
379
-
380
-
381
354
class TStat (AFNICommand ):
382
355
"""Compute voxel-wise statistics using AFNI 3dTstat command
383
356
@@ -397,7 +370,7 @@ class TStat(AFNICommand):
397
370
398
371
_cmd = '3dTstat'
399
372
input_spec = TStatInputSpec
400
- output_spec = TStatOutputSpec
373
+ output_spec = AFNICommandOutputSpec
401
374
402
375
403
376
class DetrendInputSpec (AFNICommandInputSpec ):
@@ -411,11 +384,6 @@ class DetrendInputSpec(AFNICommandInputSpec):
411
384
argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
412
385
413
386
414
- class DetrendOutputSpec (TraitedSpec ):
415
- out_file = File (desc = 'statistical file' ,
416
- exists = True )
417
-
418
-
419
387
class Detrend (AFNICommand ):
420
388
"""This program removes components from voxel time series using
421
389
linear least squares
@@ -436,7 +404,7 @@ class Detrend(AFNICommand):
436
404
437
405
_cmd = '3dDetrend'
438
406
input_spec = DetrendInputSpec
439
- output_spec = DetrendOutputSpec
407
+ output_spec = AFNICommandOutputSpec
440
408
441
409
442
410
class DespikeInputSpec (AFNICommandInputSpec ):
@@ -450,11 +418,6 @@ class DespikeInputSpec(AFNICommandInputSpec):
450
418
argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
451
419
452
420
453
- class DespikeOutputSpec (TraitedSpec ):
454
- out_file = File (desc = 'despiked img' ,
455
- exists = True )
456
-
457
-
458
421
class Despike (AFNICommand ):
459
422
"""Removes 'spikes' from the 3D+time input dataset
460
423
@@ -473,7 +436,7 @@ class Despike(AFNICommand):
473
436
474
437
_cmd = '3dDespike'
475
438
input_spec = DespikeInputSpec
476
- output_spec = DespikeOutputSpec
439
+ output_spec = AFNICommandOutputSpec
477
440
478
441
479
442
class AutomaskInputSpec (AFNICommandInputSpec ):
@@ -665,11 +628,6 @@ class MergeInputSpec(AFNICommandInputSpec):
665
628
units = 'mm' )
666
629
667
630
668
- class MergeOutputSpec (TraitedSpec ):
669
- out_file = File (desc = 'smoothed file' ,
670
- exists = True )
671
-
672
-
673
631
class Merge (AFNICommand ):
674
632
"""Merge or edit volumes using AFNI 3dmerge command
675
633
@@ -691,7 +649,7 @@ class Merge(AFNICommand):
691
649
692
650
_cmd = '3dmerge'
693
651
input_spec = MergeInputSpec
694
- output_spec = MergeOutputSpec
652
+ output_spec = AFNICommandOutputSpec
695
653
696
654
697
655
class CopyInputSpec (AFNICommandInputSpec ):
@@ -704,10 +662,6 @@ class CopyInputSpec(AFNICommandInputSpec):
704
662
argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
705
663
706
664
707
- class CopyOutputSpec (TraitedSpec ):
708
- out_file = File (desc = 'copied file' , exists = True )
709
-
710
-
711
665
class Copy (AFNICommand ):
712
666
"""Copies an image of one type to an image of the same
713
667
or different type using 3dcopy command
@@ -728,7 +682,7 @@ class Copy(AFNICommand):
728
682
729
683
_cmd = '3dcopy'
730
684
input_spec = CopyInputSpec
731
- output_spec = CopyOutputSpec
685
+ output_spec = AFNICommandOutputSpec
732
686
733
687
734
688
class FourierInputSpec (AFNICommandInputSpec ):
@@ -749,10 +703,6 @@ class FourierInputSpec(AFNICommandInputSpec):
749
703
mandatory = True )
750
704
751
705
752
- class FourierOutputSpec (TraitedSpec ):
753
- out_file = File (desc = 'band-pass filtered file' , exists = True )
754
-
755
-
756
706
class Fourier (AFNICommand ):
757
707
"""Program to lowpass and/or highpass each voxel time series in a
758
708
dataset, via the FFT
@@ -775,7 +725,7 @@ class Fourier(AFNICommand):
775
725
776
726
_cmd = '3dFourier'
777
727
input_spec = FourierInputSpec
778
- output_spec = FourierOutputSpec
728
+ output_spec = AFNICommandOutputSpec
779
729
780
730
781
731
class ZCutUpInputSpec (AFNICommandInputSpec ):
@@ -790,10 +740,6 @@ class ZCutUpInputSpec(AFNICommandInputSpec):
790
740
argstr = '-keep %s' )
791
741
792
742
793
- class ZCutUpOutputSpec (TraitedSpec ):
794
- out_file = File (desc = 'cut file' , exists = True )
795
-
796
-
797
743
class ZCutUp (AFNICommand ):
798
744
"""Cut z-slices from a volume using AFNI 3dZcutup command
799
745
@@ -814,7 +760,7 @@ class ZCutUp(AFNICommand):
814
760
815
761
_cmd = '3dZcutup'
816
762
input_spec = ZCutUpInputSpec
817
- output_spec = ZCutUpOutputSpec
763
+ output_spec = AFNICommandOutputSpec
818
764
819
765
820
766
class AllineateInputSpec (AFNICommandInputSpec ):
@@ -831,10 +777,6 @@ class AllineateInputSpec(AFNICommandInputSpec):
831
777
exists = True )
832
778
833
779
834
- class AllineateOutputSpec (TraitedSpec ):
835
- out_file = File (desc = 'cut file' , exists = True )
836
-
837
-
838
780
class Allineate (AFNICommand ):
839
781
"""Program to align one dataset (the 'source') to a base dataset
840
782
@@ -855,7 +797,7 @@ class Allineate(AFNICommand):
855
797
856
798
_cmd = '3dAllineate'
857
799
input_spec = AllineateInputSpec
858
- output_spec = AllineateOutputSpec
800
+ output_spec = AFNICommandOutputSpec
859
801
860
802
861
803
class MaskaveInputSpec (AFNICommandInputSpec ):
@@ -875,11 +817,6 @@ class MaskaveInputSpec(AFNICommandInputSpec):
875
817
position = 2 )
876
818
877
819
878
- class MaskaveOutputSpec (TraitedSpec ):
879
- out_file = File (desc = 'outfile' ,
880
- exists = True )
881
-
882
-
883
820
class Maskave (AFNICommand ):
884
821
"""Computes average of all voxels in the input dataset
885
822
which satisfy the criterion in the options list
@@ -903,7 +840,7 @@ class Maskave(AFNICommand):
903
840
904
841
_cmd = '3dmaskave'
905
842
input_spec = MaskaveInputSpec
906
- output_spec = MaskaveOutputSpec
843
+ output_spec = AFNICommandOutputSpec
907
844
908
845
909
846
class SkullStripInputSpec (AFNICommandInputSpec ):
@@ -916,11 +853,6 @@ class SkullStripInputSpec(AFNICommandInputSpec):
916
853
argstr = '-prefix %s' , name_source = "in_file" , usedefault = True )
917
854
918
855
919
- class SkullStripOutputSpec (TraitedSpec ):
920
- out_file = File (desc = 'outfile' ,
921
- exists = True )
922
-
923
-
924
856
class SkullStrip (AFNICommand ):
925
857
"""A program to extract the brain from surrounding
926
858
tissue from MRI T1-weighted images
@@ -940,7 +872,7 @@ class SkullStrip(AFNICommand):
940
872
"""
941
873
_cmd = '3dSkullStrip'
942
874
input_spec = SkullStripInputSpec
943
- output_spec = SkullStripOutputSpec
875
+ output_spec = AFNICommandOutputSpec
944
876
945
877
946
878
class TCatInputSpec (AFNICommandInputSpec ):
@@ -955,11 +887,6 @@ class TCatInputSpec(AFNICommandInputSpec):
955
887
rlt = traits .Str (desc = 'options' , argstr = '-rlt%s' , position = 1 )
956
888
957
889
958
- class TCatOutputSpec (TraitedSpec ):
959
- out_file = File (desc = 'outfile' ,
960
- exists = True )
961
-
962
-
963
890
class TCat (AFNICommand ):
964
891
"""Concatenate sub-bricks from input datasets into
965
892
one big 3D+time dataset
@@ -981,7 +908,7 @@ class TCat(AFNICommand):
981
908
982
909
_cmd = '3dTcat'
983
910
input_spec = TCatInputSpec
984
- output_spec = TCatOutputSpec
911
+ output_spec = AFNICommandOutputSpec
985
912
986
913
987
914
class FimInputSpec (AFNICommandInputSpec ):
@@ -1003,11 +930,6 @@ class FimInputSpec(AFNICommandInputSpec):
1003
930
argstr = '-out %s' , position = 4 )
1004
931
1005
932
1006
- class FimOutputSpec (TraitedSpec ):
1007
- out_file = File (desc = 'outfile' ,
1008
- exists = True )
1009
-
1010
-
1011
933
class Fim (AFNICommand ):
1012
934
"""Program to calculate the cross-correlation of
1013
935
an ideal reference waveform with the measured FMRI
@@ -1032,7 +954,7 @@ class Fim(AFNICommand):
1032
954
1033
955
_cmd = '3dfim+'
1034
956
input_spec = FimInputSpec
1035
- output_spec = FimOutputSpec
957
+ output_spec = AFNICommandOutputSpec
1036
958
1037
959
1038
960
class TCorrelateInputSpec (AFNIBaseCommandInputSpec ):
@@ -1056,11 +978,6 @@ class TCorrelateInputSpec(AFNIBaseCommandInputSpec):
1056
978
argstr = '-polort %d' , position = 2 )
1057
979
1058
980
1059
- class TCorrelateOutputSpec (TraitedSpec ):
1060
- out_file = File (desc = 'outfile' ,
1061
- exists = True )
1062
-
1063
-
1064
981
class TCorrelate (AFNIBaseCommand ):
1065
982
"""Computes the correlation coefficient between corresponding voxel
1066
983
time series in two input 3D+time datasets 'xset' and 'yset'
@@ -1084,7 +1001,7 @@ class TCorrelate(AFNIBaseCommand):
1084
1001
1085
1002
_cmd = '3dTcorrelate'
1086
1003
input_spec = TCorrelateInputSpec
1087
- output_spec = TCorrelateOutputSpec
1004
+ output_spec = AFNICommandOutputSpec
1088
1005
1089
1006
1090
1007
class BrickStatInputSpec (AFNIBaseCommandInputSpec ):
@@ -1266,10 +1183,6 @@ class CalcInputSpec(AFNICommandInputSpec):
1266
1183
single_idx = traits .Int (desc = 'volume index for in_file_a' )
1267
1184
1268
1185
1269
- class CalcOutputSpec (TraitedSpec ):
1270
- out_file = File (desc = ' output file' , exists = True )
1271
-
1272
-
1273
1186
class Calc (AFNICommand ):
1274
1187
"""This program does voxel-by-voxel arithmetic on 3D datasets
1275
1188
@@ -1293,7 +1206,7 @@ class Calc(AFNICommand):
1293
1206
1294
1207
_cmd = '3dcalc'
1295
1208
input_spec = CalcInputSpec
1296
- output_spec = CalcOutputSpec
1209
+ output_spec = AFNICommandOutputSpec
1297
1210
1298
1211
def _format_arg (self , name , trait_spec , value ):
1299
1212
if name == 'in_file_a' :
0 commit comments