@@ -2015,6 +2015,7 @@ class WarpPointsToStd(WarpPoints):
2015
2015
input_spec = WarpPointsToStdInputSpec
2016
2016
output_spec = WarpPointsOutputSpec
2017
2017
_cmd = 'img2stdcoord'
2018
+ _terminal_output = 'file'
2018
2019
2019
2020
2020
2021
class WarpPointsFromStdInputSpec (CommandLineInputSpec ):
@@ -2034,15 +2035,12 @@ class WarpPointsFromStdInputSpec(CommandLineInputSpec):
2034
2035
coord_mm = traits .Bool (False , argstr = '-mm' , xor = ['coord_vox' ],
2035
2036
desc = 'all coordinates in mm' )
2036
2037
2037
- out_file = File (name_source = 'in_coords' , argstr = '> %s' , position = - 1 ,
2038
- name_template = '%s_warped' , output_name = 'out_file' ,
2039
- desc = 'output file name' )
2040
-
2041
2038
2042
2039
class WarpPointsFromStd (CommandLine ):
2043
2040
"""
2044
2041
Use FSL `std2imgcoord <http://fsl.fmrib.ox.ac.uk/fsl/fsl-4.1.9/flirt/overview.html>`_
2045
- to transform point sets to standard space coordinates. Accepts plain text .
2042
+ to transform point sets to standard space coordinates. Accepts plain text coordinates
2043
+ files.
2046
2044
2047
2045
2048
2046
Examples
@@ -2066,6 +2064,15 @@ class WarpPointsFromStd(CommandLine):
2066
2064
output_spec = WarpPointsOutputSpec
2067
2065
_cmd = 'std2imgcoord'
2068
2066
2067
+ def _run_interface (self , runtime ):
2068
+ runtime = super (WarpPointsFromStd , self )._run_interface (runtime )
2069
+ self ._out_file = runtime .stdout
2070
+
2071
+ def _list_outputs (self ):
2072
+ outputs = self .output_spec ().get ()
2073
+ outputs ['out_file' ] = self ._out_file
2074
+ return outputs
2075
+
2069
2076
2070
2077
class MotionOutliersInputSpec (FSLCommandInputSpec ):
2071
2078
in_file = File (
0 commit comments