@@ -366,7 +366,7 @@ def _list_outputs(self):
366
366
367
367
368
368
class FEATInputSpec (FSLCommandInputSpec ):
369
- fsf_file = File (exist = True , mandatory = True , argstr = "%s" , position = 0 ,
369
+ fsf_file = File (exists = True , mandatory = True , argstr = "%s" , position = 0 ,
370
370
desc = "File specifying the feat design spec file" )
371
371
372
372
@@ -408,7 +408,7 @@ def _list_outputs(self):
408
408
409
409
410
410
class FEATModelInputSpec (FSLCommandInputSpec ):
411
- fsf_file = File (exist = True , mandatory = True , argstr = "%s" , position = 0 ,
411
+ fsf_file = File (exists = True , mandatory = True , argstr = "%s" , position = 0 ,
412
412
desc = "File specifying the feat design spec file" ,
413
413
copyfile = False )
414
414
ev_files = traits .List (File (exists = True ),
@@ -483,14 +483,14 @@ class FILMGLSInputSpec(FSLCommandInputSpec):
483
483
design_file = File (exists = True , position = - 2 ,
484
484
argstr = '%s' ,
485
485
desc = 'design matrix file' )
486
- threshold = traits .Float ( 1000 , min = 0 , argstr = '%f' ,
487
- position = - 1 ,
486
+ threshold = traits .Range ( default = 1000. , low = 0. 0 , argstr = '%f' ,
487
+ position = - 1 , usedefault = True ,
488
488
desc = 'threshold' )
489
489
smooth_autocorr = traits .Bool (argstr = '-sa' ,
490
490
desc = 'Smooth auto corr estimates' )
491
491
mask_size = traits .Int (argstr = '-ms %d' ,
492
492
desc = "susan mask size" )
493
- brightness_threshold = traits .Int ( min = 0 , argstr = '-epith %d' ,
493
+ brightness_threshold = traits .Range ( low = 0 , argstr = '-epith %d' ,
494
494
desc = 'susan brightness threshold, otherwise it is estimated' )
495
495
full_data = traits .Bool (argstr = '-v' , desc = 'output full data' )
496
496
_estimate_xor = ['autocorr_estimate_only' , 'fit_armodel' , 'tukey_window' ,
@@ -601,10 +601,10 @@ def _list_outputs(self):
601
601
602
602
class FEATRegisterInputSpec (BaseInterfaceInputSpec ):
603
603
feat_dirs = InputMultiPath (
604
- Directory (), exist = True , desc = "Lower level feat dirs" ,
604
+ Directory (exists = True ) , desc = "Lower level feat dirs" ,
605
605
mandatory = True )
606
606
reg_image = File (
607
- exist = True , desc = "image to register to (will be treated as standard)" ,
607
+ exists = True , desc = "image to register to (will be treated as standard)" ,
608
608
mandatory = True )
609
609
reg_dof = traits .Int (
610
610
12 , desc = "registration degrees of freedom" , usedefault = True )
@@ -689,31 +689,34 @@ class FLAMEOInputSpec(FSLCommandInputSpec):
689
689
690
690
691
691
class FLAMEOOutputSpec (TraitedSpec ):
692
- pes = OutputMultiPath (exists = True , desc = "Parameter estimates for each column of the design matrix" +
693
- "for each voxel" )
694
- res4d = OutputMultiPath (
695
- exists = True , desc = "Model fit residual mean-squared error for each time point" )
696
- copes = OutputMultiPath (
697
- exists = True , desc = "Contrast estimates for each contrast" )
698
- var_copes = OutputMultiPath (
699
- exists = True , desc = "Variance estimates for each contrast" )
700
- zstats = OutputMultiPath (exists = True , desc = "z-stat file for each contrast" )
701
- tstats = OutputMultiPath (exists = True , desc = "t-stat file for each contrast" )
702
- zfstats = OutputMultiPath (
703
- exists = True , desc = "z stat file for each f contrast" )
704
- fstats = OutputMultiPath (exists = True , desc = "f-stat file for each contrast" )
705
- mrefvars = OutputMultiPath (
706
- exists = True , desc = "mean random effect variances for each contrast" )
707
- tdof = OutputMultiPath (
708
- exists = True , desc = "temporal dof file for each contrast" )
709
- weights = OutputMultiPath (
710
- exists = True , desc = "weights file for each contrast" )
711
- stats_dir = Directory (
712
- exists = True , desc = "directory storing model estimation output" )
713
-
714
-
715
- # interface to fsl command line higher level model fit
716
- # satra: 2010-01-09
692
+ pes = OutputMultiPath (File (exists = True ),
693
+ desc = ("Parameter estimates for each column of the "
694
+ "design matrix for each voxel" ))
695
+ res4d = OutputMultiPath (File (exists = True ),
696
+ desc = ("Model fit residual mean-squared error for "
697
+ "each time point" ))
698
+ copes = OutputMultiPath (File (exists = True ),
699
+ desc = "Contrast estimates for each contrast" )
700
+ var_copes = OutputMultiPath (File (exists = True ),
701
+ desc = "Variance estimates for each contrast" )
702
+ zstats = OutputMultiPath (File (exists = True ),
703
+ desc = "z-stat file for each contrast" )
704
+ tstats = OutputMultiPath (File (exists = True ),
705
+ desc = "t-stat file for each contrast" )
706
+ zfstats = OutputMultiPath (File (exists = True ),
707
+ desc = "z stat file for each f contrast" )
708
+ fstats = OutputMultiPath (File (exists = True ),
709
+ desc = "f-stat file for each contrast" )
710
+ mrefvars = OutputMultiPath (File (exists = True ),
711
+ desc = ("mean random effect variances for each "
712
+ "contrast" ))
713
+ tdof = OutputMultiPath (File (exists = True ),
714
+ desc = "temporal dof file for each contrast" )
715
+ weights = OutputMultiPath (File (exists = True ),
716
+ desc = "weights file for each contrast" )
717
+ stats_dir = Directory (File (exists = True ),
718
+ desc = "directory storing model estimation output" )
719
+
717
720
718
721
class FLAMEO (FSLCommand ):
719
722
"""Use FSL flameo command to perform higher level model fits
@@ -832,7 +835,7 @@ class ContrastMgrInputSpec(FSLCommandInputSpec):
832
835
sigmasquareds = File (exists = True , argstr = '' , position = - 2 ,
833
836
copyfile = False , mandatory = True ,
834
837
desc = 'summary of residuals, See Woolrich, et. al., 2001' )
835
- contrast_num = traits .Int ( min = 1 , argstr = '-cope' ,
838
+ contrast_num = traits .Range ( low = 1 , argstr = '-cope' ,
836
839
desc = 'contrast number to start labeling copes from' )
837
840
suffix = traits .Str (argstr = '-suffix %s' ,
838
841
desc = 'suffix to put on the end of the cope filename before the contrast number, default is nothing' )
@@ -952,8 +955,8 @@ def _list_outputs(self):
952
955
953
956
954
957
class L2ModelInputSpec (BaseInterfaceInputSpec ):
955
- num_copes = traits .Int ( min = 1 , mandatory = True ,
956
- desc = 'number of copes to be combined' )
958
+ num_copes = traits .Range ( low = 1 , mandatory = True ,
959
+ desc = 'number of copes to be combined' )
957
960
958
961
959
962
class L2ModelOutputSpec (TraitedSpec ):
@@ -1191,7 +1194,7 @@ class SMMInputSpec(FSLCommandInputSpec):
1191
1194
spatial_data_file = File (
1192
1195
exists = True , position = 0 , argstr = '--sdf="%s"' , mandatory = True ,
1193
1196
desc = "statistics spatial map" , copyfile = False )
1194
- mask = File (exist = True , position = 1 , argstr = '--mask="%s"' , mandatory = True ,
1197
+ mask = File (exists = True , position = 1 , argstr = '--mask="%s"' , mandatory = True ,
1195
1198
desc = "mask file" , copyfile = False )
1196
1199
no_deactivation_class = traits .Bool (position = 2 , argstr = "--zfstatmode" ,
1197
1200
desc = "enforces no deactivation class" )
@@ -1716,30 +1719,37 @@ class GLMInputSpec(FSLCommandInputSpec):
1716
1719
1717
1720
class GLMOutputSpec (TraitedSpec ):
1718
1721
out_file = File (exists = True , desc = ('file name of GLM parameters'
1719
- + ' (if generated)' ))
1720
- out_cope = OutputMultiPath (exists = True , desc = 'output file name for COPEs' +
1721
- ' (either as text file or image)' )
1722
- out_z = OutputMultiPath (exists = True , desc = 'output file name for COPEs' +
1723
- ' (either as text file or image)' )
1724
- out_t = OutputMultiPath (exists = True , desc = 'output file name for t-stats' +
1725
- ' (either as text file or image)' )
1726
- out_p = OutputMultiPath (exists = True , desc = 'output file name for p-values' +
1727
- ' of Z-stats (either as text file or image)' )
1728
- out_f = OutputMultiPath (exists = True , desc = 'output file name for F-value' +
1729
- ' of full model fit' )
1730
- out_pf = OutputMultiPath (exists = True , desc = 'output file name for p-value' +
1731
- ' for full model fit' )
1732
- out_res = OutputMultiPath (exists = True , desc = 'output file name for' +
1733
- ' residuals' )
1734
- out_varcb = OutputMultiPath (exists = True , desc = 'output file name for' +
1735
- ' variance of COPEs' )
1736
- out_sigsq = OutputMultiPath (exists = True , desc = 'output file name for' +
1737
- ' residual noise variance sigma-square' )
1738
- out_data = OutputMultiPath (exists = True , desc = 'output file name for' +
1739
- ' residual noise variance sigma-square' )
1740
- out_vnscales = OutputMultiPath (exists = True , desc = 'output file name' +
1741
- ' for scaling factors for variance' +
1742
- ' normalisation' )
1722
+ ' (if generated)' ))
1723
+ out_cope = OutputMultiPath (File (exists = True ),
1724
+ desc = ('output file name for COPEs (either as '
1725
+ 'text file or image)' ))
1726
+ out_z = OutputMultiPath (File (exists = True ),
1727
+ desc = ('output file name for COPEs (either as text '
1728
+ 'file or image)' ))
1729
+ out_t = OutputMultiPath (File (exists = True ),
1730
+ desc = ('output file name for t-stats (either as '
1731
+ 'text file or image)' ))
1732
+ out_p = OutputMultiPath (File (exists = True ),
1733
+ desc = ('output file name for p-values of Z-stats '
1734
+ '(either as text file or image)' ))
1735
+ out_f = OutputMultiPath (File (exists = True ),
1736
+ desc = ('output file name for F-value of full model '
1737
+ 'fit' ))
1738
+ out_pf = OutputMultiPath (File (exists = True ),
1739
+ desc = ('output file name for p-value for full '
1740
+ 'model fit' ))
1741
+ out_res = OutputMultiPath (File (exists = True ),
1742
+ desc = 'output file name for residuals' )
1743
+ out_varcb = OutputMultiPath (File (exists = True ),
1744
+ desc = 'output file name for variance of COPEs' )
1745
+ out_sigsq = OutputMultiPath (File (exists = True ),
1746
+ desc = ('output file name for residual noise '
1747
+ 'variance sigma-square' ))
1748
+ out_data = OutputMultiPath (File (exists = True ),
1749
+ desc = 'output file for preprocessed data' )
1750
+ out_vnscales = OutputMultiPath (File (exists = True ),
1751
+ desc = ('output file name for scaling factors '
1752
+ 'for variance normalisation' ))
1743
1753
1744
1754
1745
1755
class GLM (FSLCommand ):
0 commit comments