@@ -1310,35 +1310,56 @@ class TCorrelate(AFNICommand):
1310
1310
1311
1311
1312
1312
class TCorr1DInputSpec (AFNICommandInputSpec ):
1313
- xset = File (desc = 'xset to 3dTcorr1D ' ,
1313
+ xset = File (desc = '3d+time dataset input ' ,
1314
1314
argstr = ' %s' ,
1315
1315
position = - 2 ,
1316
1316
mandatory = True ,
1317
1317
exists = True )
1318
- y_1d = File (desc = 'y1D from 3dTcorr1D ' ,
1318
+ y_1d = File (desc = '1D time series file input ' ,
1319
1319
argstr = ' %s' ,
1320
1320
position = - 1 ,
1321
1321
mandatory = True ,
1322
1322
exists = True )
1323
- out_file = File (desc = 'output file from 3dTcorr1D' ,
1323
+ out_file = File (desc = 'output filename prefix' ,
1324
+ name_template = '%s_correlation.nii.gz' ,
1324
1325
argstr = '-prefix %s' ,
1325
- genfile = True )
1326
- options = traits .Str (desc = 'select options' ,
1327
- argstr = ' %s' )
1328
- suffix = traits .Str (desc = "out_file suffix" )
1329
-
1330
-
1331
- class TCorr1DOutputSpec (AFNICommandOutputSpec ):
1326
+ name_source = 'xset' ,
1327
+ genfile = True ,
1328
+ keep_extension = True )
1329
+ pearson = traits .Bool (desc = 'Correlation is the normal' +
1330
+ ' Pearson correlation coefficient' ,
1331
+ argstr = ' -pearson' ,
1332
+ xor = ['spearman' ,'quadrant' ,'ktaub' ],
1333
+ position = 1 )
1334
+ spearman = traits .Bool (desc = 'Correlation is the' +
1335
+ ' Spearman (rank) correlation coefficient' ,
1336
+ argstr = ' -spearman' ,
1337
+ xor = ['pearson' ,'quadrant' ,'ktaub' ],
1338
+ position = 1 )
1339
+ quadrant = traits .Bool (desc = 'Correlation is the' +
1340
+ ' quadrant correlation coefficient' ,
1341
+ argstr = ' -quadrant' ,
1342
+ xor = ['pearson' ,'spearman' ,'ktaub' ],
1343
+ position = 1 )
1344
+ ktaub = traits .Bool (desc = 'Correlation is the' +
1345
+ ' Kendall\' s tau_b correlation coefficient' ,
1346
+ argstr = ' -ktaub' ,
1347
+ xor = ['pearson' ,'spearman' ,'quadrant' ],
1348
+ position = 1 )
1349
+
1350
+
1351
+
1352
+ class TCorr1DOutputSpec (TraitedSpec ):
1332
1353
out_file = File (desc = 'output file containing correlations' ,
1333
1354
exists = True )
1334
1355
1335
1356
1336
1357
class TCorr1D (AFNICommand ):
1337
1358
"""Computes the correlation coefficient between each voxel time series
1338
- in the input 3D+time dataset.
1339
- For complete details, see the `3dTcorr1D Documentation.
1340
- <http://afni.nimh.nih.gov/pub/dist/doc/program_help/3dTcorr1D.html>`_
1341
- """
1359
+ in the input 3D+time dataset.
1360
+ For complete details, see the `3dTcorr1D Documentation.
1361
+ <http://afni.nimh.nih.gov/pub/dist/doc/program_help/3dTcorr1D.html>`_
1362
+ """
1342
1363
1343
1364
_cmd = '3dTcorr1D'
1344
1365
input_spec = TCorr1DInputSpec
@@ -1897,3 +1918,5 @@ def _overload_extension(self, value):
1897
1918
1898
1919
def _gen_filename (self , name ):
1899
1920
return os .path .abspath (super (AFNItoNIFTI , self )._gen_filename (name ))
1921
+
1922
+
0 commit comments