@@ -380,6 +380,7 @@ class Dcm2niixInputSpec(CommandLineInputSpec):
380
380
class Dcm2niixOutputSpec (TraitedSpec ):
381
381
converted_files = OutputMultiPath (File (exists = True ))
382
382
bvecs = OutputMultiPath (File (exists = True ))
383
+ mvecs = OutputMultiPath (File (exists = True ))
383
384
bvals = OutputMultiPath (File (exists = True ))
384
385
bids = OutputMultiPath (File (exists = True ))
385
386
@@ -459,8 +460,8 @@ def _parse_stdout(self, stdout):
459
460
return filenames
460
461
461
462
def _parse_files (self , filenames ):
462
- outfiles , bvals , bvecs , bids = [], [], [], []
463
- outtypes = [".bval" , ".bvec" , ".json" , ".txt" ]
463
+ outfiles , bvals , bvecs , mvecs , bids = [], [], [], [], []
464
+ outtypes = [".bval" , ".bvec" , ".mvec" , ". json" , ".txt" ]
464
465
if self .inputs .to_nrrd :
465
466
outtypes += [".nrrd" , ".nhdr" , ".raw.gz" ]
466
467
else :
@@ -480,10 +481,13 @@ def _parse_files(self, filenames):
480
481
bvals .append (fl )
481
482
elif fl .endswith (".bvec" ):
482
483
bvecs .append (fl )
484
+ elif fl .endswith (".mvec" ):
485
+ mvecs .append (fl )
483
486
elif fl .endswith (".json" ) or fl .endswith (".txt" ):
484
487
bids .append (fl )
485
488
self .output_files = outfiles
486
489
self .bvecs = bvecs
490
+ self .mvecs = mvecs
487
491
self .bvals = bvals
488
492
self .bids = bids
489
493
@@ -492,6 +496,7 @@ def _list_outputs(self):
492
496
outputs ["converted_files" ] = self .output_files
493
497
outputs ["bvecs" ] = self .bvecs
494
498
outputs ["bvals" ] = self .bvals
499
+ outputs ["mvecs" ] = self .mvecs
495
500
outputs ["bids" ] = self .bids
496
501
return outputs
497
502
0 commit comments