Skip to content

Commit 82e1ce7

Browse files
committed
do not inherit from WarpPoints interfaces
1 parent 4bdd241 commit 82e1ce7

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

nipype/interfaces/fsl/utils.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,17 +2017,29 @@ class WarpPointsToStd(WarpPoints):
20172017
_cmd = 'img2stdcoord'
20182018

20192019

2020-
class WarpPointsFromStdInputSpec(WarpPointsBaseInputSpec):
2020+
class WarpPointsFromStdInputSpec(CommandLineInputSpec):
20212021
img_file = File(exists=True, argstr='-img %s', mandatory=True,
20222022
desc='filename of a destination image')
20232023
std_file = File(exists=True, argstr='-std %s', mandatory=True,
20242024
desc='filename of the image in standard space')
2025-
transform = File(exists=True, argstr='-xfm %s',
2026-
desc='filename of pre-warp affine transform '
2027-
'(e.g. example_func2highres.mat)')
2025+
in_coords = File(exists=True, position=-2, argstr='%s', mandatory=True,
2026+
desc='filename of file containing coordinates')
2027+
xfm_file = File(exists=True, argstr='-xfm %s', xor=['warp_file'],
2028+
desc='filename of affine transform (e.g. source2dest.mat)')
2029+
warp_file = File(exists=True, argstr='-warp %s', xor=['xfm_file'],
2030+
desc='filename of warpfield (e.g. '
2031+
'intermediate2dest_warp.nii.gz)')
2032+
coord_vox = traits.Bool(True, argstr='-vox', xor=['coord_mm'],
2033+
desc='all coordinates in voxels - default')
2034+
coord_mm = traits.Bool(False, argstr='-mm', xor=['coord_vox'],
2035+
desc='all coordinates in mm')
2036+
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')
20282040

20292041

2030-
class WarpPointsFromStd(WarpPoints):
2042+
class WarpPointsFromStd(CommandLine):
20312043
"""
20322044
Use FSL `std2imgcoord <http://fsl.fmrib.ox.ac.uk/fsl/fsl-4.1.9/flirt/overview.html>`_
20332045
to transform point sets to standard space coordinates. Accepts plain text files and

0 commit comments

Comments
 (0)