Skip to content

Commit 778dccf

Browse files
committed
added new dcm2niix flag
1 parent 231e813 commit 778dccf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/dcm2nii.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ class Dcm2niixInputSpec(CommandLineInputSpec):
192192
output_dir = Directory(exists=True, argstr='-o %s', genfile=True)
193193
bids_format = traits.Bool(True, argstr='-b', usedefault=True)
194194
compress = traits.Enum('i', ['y','i','n'], argstr='-z %s', usedefault=True)
195+
merge_imgs = traits.Bool(False, argstr='-m', usedefault=True)
195196
single_file = traits.Bool(False, argstr='-s', usedefault=True)
196197
verbose = traits.Bool(False, argstr='-v', usedefault=True)
197198

@@ -222,7 +223,7 @@ class Dcm2niix(CommandLine):
222223
_cmd = 'dcm2niix'
223224

224225
def _format_arg(self, opt, spec, val):
225-
if opt in ['bids_format', 'single_file', 'verbose']:
226+
if opt in ['bids_format', 'merge_imgs', 'single_file', 'verbose']:
226227

227228
spec = deepcopy(spec)
228229

0 commit comments

Comments
 (0)