@@ -2834,3 +2834,94 @@ class MotionOutliers(FSLCommand):
28342834 input_spec = MotionOutliersInputSpec
28352835 output_spec = MotionOutliersOutputSpec
28362836 _cmd = "fsl_motion_outliers"
2837+
2838+
2839+ class Text2VestInputSpec (FSLCommandInputSpec ):
2840+ in_file = File (
2841+ exists = True ,
2842+ mandatory = True ,
2843+ desc = "plain text file representing your design, contrast, or f-test matrix" ,
2844+ argstr = "%s" ,
2845+ position = 0 ,
2846+ )
2847+
2848+ out_file = File (
2849+ mandatory = True ,
2850+ desc = ("file name to store matrix data in the format used by FSL tools"
2851+ " (e.g., design.mat, design.con design.fts)" ),
2852+ argstr = "%s" ,
2853+ position = 1 ,
2854+ )
2855+
2856+
2857+ class Text2VestOutputSpec (TraitedSpec ):
2858+ out_file = File (
2859+ exists = True ,
2860+ desc = "matrix data in the format used by FSL tools"
2861+ )
2862+
2863+
2864+ class Text2Vest (FSLCommand ):
2865+ """
2866+ Use FSL Text2Vest`https://web.mit.edu/fsl_v5.0.10/fsl/doc/wiki/GLM(2f)CreatingDesignMatricesByHand.html`_
2867+ to convert your plain text design matrix data into the format used by the FSL tools.
2868+ Examples
2869+ --------
2870+ >>> from nipype.interfaces.fsl import Text2Vest
2871+ >>> t2v = Text2Vest()
2872+ >>> t2v.inputs.in_file = "design.txt"
2873+ >>> t2v.inputs.out_file = "design.mat"
2874+ >>> t2v.cmdline # doctest: +ELLIPSIS
2875+ 'Text2Vest design.txt design.mat'
2876+ >>> res = t2v.run() # doctest: +SKIP
2877+ """
2878+
2879+ input_spec = Text2VestInputSpec
2880+ output_spec = Text2VestOutputSpec
2881+
2882+ _cmd = "Text2Vest"
2883+
2884+
2885+ class Vest2TextInputSpec (FSLCommandInputSpec ):
2886+ in_file = File (
2887+ exists = True ,
2888+ mandatory = True ,
2889+ desc = "matrix data stored in the format used by FSL tools" ,
2890+ argstr = "%s" ,
2891+ position = 0 ,
2892+ )
2893+
2894+ out_file = File (
2895+ mandatory = True ,
2896+ desc = "file name to store text output from matrix" ,
2897+ argstr = "%s" ,
2898+ position = 1 ,
2899+ )
2900+
2901+
2902+ class Vest2TextOutputSpec (TraitedSpec ):
2903+ out_file = File (
2904+ exists = True ,
2905+ desc = "plain text representation of FSL matrix"
2906+ )
2907+
2908+
2909+ class Vest2Text (FSLCommand ):
2910+ """
2911+ Use FSL Vest2Text`https://web.mit.edu/fsl_v5.0.10/fsl/doc/wiki/GLM(2f)CreatingDesignMatricesByHand.html`_
2912+ to convert your design.mat design.con and design.fts files into plain text.
2913+ Examples
2914+ --------
2915+ >>> from nipype.interfaces.fsl import Vest2Text
2916+ >>> v2t = Vest2Text()
2917+ >>> v2t.inputs.in_file = "design.mat"
2918+ >>> v2t.inputs.out_file = "design.txt"
2919+ >>> v2t.cmdline # doctest: +ELLIPSIS
2920+ 'Vest2Text design.mat design.txt'
2921+ >>> res = v2t.run() # doctest: +SKIP
2922+ """
2923+
2924+ input_spec = Vest2TextInputSpec
2925+ output_spec = Vest2TextOutputSpec
2926+
2927+ _cmd = "Vest2Text"
0 commit comments