diff --git a/nipype/interfaces/ants/resampling.py b/nipype/interfaces/ants/resampling.py index 82a9e7a214..3a6ba2c724 100644 --- a/nipype/interfaces/ants/resampling.py +++ b/nipype/interfaces/ants/resampling.py @@ -349,6 +349,7 @@ class ApplyTransformsInputSpec(ANTSCommandInputSpec): "MultiLabel", "Gaussian", "BSpline", + "GenericLabel", argstr="%s", usedefault=True, ) @@ -357,6 +358,7 @@ class ApplyTransformsInputSpec(ANTSCommandInputSpec): traits.Tuple( traits.Float(), traits.Float() # Gaussian/MultiLabel (sigma, alpha) ), + traits.Tuple(traits.Str()), # GenericLabel ) transforms = InputMultiObject( traits.Either(File(exists=True), "identity"), @@ -497,6 +499,7 @@ def _format_arg(self, opt, spec, val): "BSpline", "MultiLabel", "Gaussian", + "GenericLabel", ] and isdefined(self.inputs.interpolation_parameters): return "--interpolation {}[ {} ]".format( self.inputs.interpolation,