@@ -1410,7 +1410,7 @@ class RandomiseInputSpec(FSLCommandInputSpec):
1410
1410
mask = File (exists = True , desc = 'mask image' , argstr = '-m %s' )
1411
1411
x_block_labels = File (exists = True , desc = 'exchangeability block labels file' , argstr = '-e %s' )
1412
1412
demean = traits .Bool (desc = 'demean data temporally before model fitting' , argstr = '-D' )
1413
- one_sample_group_mean = traits .Bool (desc = 'perform 1-sample group-mean test instead of generic permutation test' ,
1413
+ one_sample_group_mean = traits .Bool (desc = 'perform 1-sample group-mean test instead of generic permutation test' ,
1414
1414
argstr = '-l' )
1415
1415
show_total_perms = traits .Bool (desc = 'print out how many unique permutations would be generated and exit' ,
1416
1416
argstr = '-q' )
@@ -1449,18 +1449,19 @@ class RandomiseOutputSpec(TraitedSpec):
1449
1449
File (exists = True ),
1450
1450
desc = 'f contrast raw statistic' )
1451
1451
t_p_files = traits .List (
1452
- File (exists = True ),
1452
+ File (exists = True ),
1453
1453
desc = 'f contrast uncorrected p values files' )
1454
1454
f_p_files = traits .List (
1455
1455
File (exists = True ),
1456
1456
desc = 'f contrast uncorrected p values files' )
1457
1457
t_corrected_p_files = traits .List (
1458
- File (exists = True ),
1458
+ File (exists = True ),
1459
1459
desc = 't contrast FWE (Family-wise error) corrected p values files' )
1460
1460
f_corrected_p_files = traits .List (
1461
1461
File (exists = True ),
1462
1462
desc = 'f contrast FWE (Family-wise error) corrected p values files' )
1463
1463
1464
+
1464
1465
class Randomise (FSLCommand ):
1465
1466
"""XXX UNSTABLE DO NOT USE
1466
1467
@@ -1486,35 +1487,34 @@ class Randomise(FSLCommand):
1486
1487
1487
1488
def _list_outputs (self ):
1488
1489
outputs = self .output_spec ().get ()
1489
- import glob
1490
- outputs ['tstat_files' ] = glob .glob (os .path .join (
1490
+ outputs ['tstat_files' ] = glob (os .path .join (
1491
1491
os .getcwd (),
1492
- '%s_tstat*.nii' % self .inputs .base_name ))
1493
- outputs ['fstat_files' ] = glob . glob (os .path .join (
1492
+ '%s_tstat*.nii' % self .inputs .base_name ))
1493
+ outputs ['fstat_files' ] = glob (os .path .join (
1494
1494
os .getcwd (),
1495
- '%s_fstat*.nii' % self .inputs .base_name ))
1495
+ '%s_fstat*.nii' % self .inputs .base_name ))
1496
1496
prefix = False
1497
1497
if self .inputs .tfce or self .inputs .tfce2D :
1498
- prefix = 'tfce'
1498
+ prefix = 'tfce'
1499
1499
elif self .inputs .vox_p_values :
1500
- prefix = 'vox'
1500
+ prefix = 'vox'
1501
1501
elif self .inputs .c_thresh or self .inputs .f_c_thresh :
1502
- prefix = 'clustere'
1502
+ prefix = 'clustere'
1503
1503
elif self .inputs .cm_thresh or self .inputs .f_cm_thresh :
1504
- prefix = 'clusterm'
1504
+ prefix = 'clusterm'
1505
1505
if prefix :
1506
- outputs ['t_p_files' ] = glob . glob (os .path .join (
1506
+ outputs ['t_p_files' ] = glob (os .path .join (
1507
1507
os .getcwd (),
1508
- '%s_%s_p_tstat*.nii' % (self .inputs .base_name ,prefix ) ))
1509
- outputs ['t_corrected_p_files' ] = glob . glob (os .path .join (
1508
+ '%s_%s_p_tstat*.nii' % (self .inputs .base_name , prefix )))
1509
+ outputs ['t_corrected_p_files' ] = glob (os .path .join (
1510
1510
os .getcwd (),
1511
- '%s_%s_corrp_tstat*.nii' % (self .inputs .base_name ,prefix )))
1511
+ '%s_%s_corrp_tstat*.nii' % (self .inputs .base_name , prefix )))
1512
1512
1513
- outputs ['f_p_files' ] = glob . glob (os .path .join (
1513
+ outputs ['f_p_files' ] = glob (os .path .join (
1514
1514
os .getcwd (),
1515
- '%s_%s_p_fstat*.nii' % (self .inputs .base_name ,prefix )))
1516
- outputs ['f_corrected_p_files' ] = glob . glob (os .path .join (
1515
+ '%s_%s_p_fstat*.nii' % (self .inputs .base_name , prefix )))
1516
+ outputs ['f_corrected_p_files' ] = glob (os .path .join (
1517
1517
os .getcwd (),
1518
- '%s_%s_corrp_fstat*.nii' % (self .inputs .base_name ,prefix )))
1518
+ '%s_%s_corrp_fstat*.nii' % (self .inputs .base_name , prefix )))
1519
1519
1520
1520
return outputs
0 commit comments