@@ -2834,3 +2834,92 @@ class MotionOutliers(FSLCommand):
2834
2834
input_spec = MotionOutliersInputSpec
2835
2835
output_spec = MotionOutliersOutputSpec
2836
2836
_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 = (
2851
+ "file name to store matrix data in the format used by FSL tools"
2852
+ " (e.g., design.mat, design.con design.fts)"
2853
+ ),
2854
+ argstr = "%s" ,
2855
+ position = 1 ,
2856
+ )
2857
+
2858
+
2859
+ class Text2VestOutputSpec (TraitedSpec ):
2860
+ out_file = File (desc = "matrix data in the format used by FSL tools" )
2861
+
2862
+
2863
+ class Text2Vest (FSLCommand ):
2864
+ """
2865
+ Use FSL Text2Vest`https://web.mit.edu/fsl_v5.0.10/fsl/doc/wiki/GLM(2f)CreatingDesignMatricesByHand.html`_
2866
+ to convert your plain text design matrix data into the format used by the FSL tools.
2867
+
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
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
+ "design.txt" ,
2896
+ usedefault = True ,
2897
+ desc = "file name to store text output from matrix" ,
2898
+ argstr = "%s" ,
2899
+ position = 1 ,
2900
+ )
2901
+
2902
+
2903
+ class Vest2TextOutputSpec (TraitedSpec ):
2904
+ out_file = File (desc = "plain text representation of FSL matrix" )
2905
+
2906
+
2907
+ class Vest2Text (FSLCommand ):
2908
+ """
2909
+ Use FSL Vest2Text`https://web.mit.edu/fsl_v5.0.10/fsl/doc/wiki/GLM(2f)CreatingDesignMatricesByHand.html`_
2910
+ to convert your design.mat design.con and design.fts files into plain text.
2911
+
2912
+ Examples
2913
+ --------
2914
+ >>> from nipype.interfaces.fsl import Vest2Text
2915
+ >>> v2t = Vest2Text()
2916
+ >>> v2t.inputs.in_file = "design.mat"
2917
+ >>> v2t.cmdline
2918
+ 'Vest2Text design.mat design.txt'
2919
+ >>> res = v2t.run() # doctest: +SKIP
2920
+ """
2921
+
2922
+ input_spec = Vest2TextInputSpec
2923
+ output_spec = Vest2TextOutputSpec
2924
+
2925
+ _cmd = "Vest2Text"
0 commit comments