@@ -192,7 +192,9 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
192
192
mandatory = True ,
193
193
desc = "input DWI image" ,
194
194
)
195
- in_mask = File (argstr = "-mask %s" , desc = "input mask image for bias field estimation" )
195
+ in_mask = File (
196
+ argstr = "-mask %s" , desc = "input mask image for bias field estimation"
197
+ )
196
198
use_ants = traits .Bool (
197
199
argstr = "ants" ,
198
200
mandatory = True ,
@@ -333,25 +335,16 @@ class DWIPreprocInputSpec(MRTrix3BaseInputSpec):
333
335
argstr = "-eddyqc_all %s" ,
334
336
desc = "Copy ALL outputs generated by eddy (including images), and the output of eddy_qc (if installed), into an output directory" ,
335
337
)
336
- export_grad_mrtrix = traits .Bool (
337
- argstr = "-export_grad_mrtrix" ,
338
- desc = "export new gradient files in mrtrix format" ,
339
- )
340
- export_grad_fsl = traits .Bool (
341
- argstr = "-export_grad_fsl" , desc = "export gradient files in FSL format"
342
- )
343
338
out_grad_mrtrix = File (
344
339
"grad.b" ,
345
- argstr = "%s" ,
346
- requires = ["export_grad_mrtrix" ],
347
- desc = "name of new gradient file" ,
340
+ argstr = "-export_grad_mrtrix %s" ,
341
+ desc = "export new gradient files in mrtrix format" ,
348
342
)
349
343
out_grad_fsl = traits .Tuple (
350
344
File ("grad.bvecs" , desc = "bvecs" ),
351
345
File ("grad.bvals" , desc = "bvals" ),
352
- argstr = "%s, %s" ,
353
- requires = ["export_grad_fsl" ],
354
- desc = "Output (bvecs, bvals) gradients FSL format" ,
346
+ argstr = "-export_grad_fsl %s, %s" ,
347
+ desc = "export gradient files in FSL format" ,
355
348
)
356
349
357
350
@@ -409,7 +402,9 @@ def _list_outputs(self):
409
402
outputs = self .output_spec ().get ()
410
403
outputs ["out_file" ] = op .abspath (self .inputs .out_file )
411
404
if self .inputs .export_grad_mrtrix :
412
- outputs ["out_grad_mrtrix" ] = op .abspath (self .inputs .out_grad_mrtrix )
405
+ outputs ["out_grad_mrtrix" ] = op .abspath (
406
+ self .inputs .out_grad_mrtrix
407
+ )
413
408
if self .inputs .export_grad_fsl :
414
409
outputs ["out_fsl_bvec" ] = op .abspath (self .inputs .out_grad_fsl [0 ])
415
410
outputs ["out_fsl_bval" ] = op .abspath (self .inputs .out_grad_fsl [1 ])
@@ -443,9 +438,15 @@ class ResponseSDInputSpec(MRTrix3BaseInputSpec):
443
438
usedefault = True ,
444
439
desc = "output WM response text file" ,
445
440
)
446
- gm_file = File (argstr = "%s" , position = - 2 , desc = "output GM response text file" )
447
- csf_file = File (argstr = "%s" , position = - 1 , desc = "output CSF response text file" )
448
- in_mask = File (exists = True , argstr = "-mask %s" , desc = "provide initial mask image" )
441
+ gm_file = File (
442
+ argstr = "%s" , position = - 2 , desc = "output GM response text file"
443
+ )
444
+ csf_file = File (
445
+ argstr = "%s" , position = - 1 , desc = "output CSF response text file"
446
+ )
447
+ in_mask = File (
448
+ exists = True , argstr = "-mask %s" , desc = "provide initial mask image"
449
+ )
449
450
max_sh = InputMultiObject (
450
451
traits .Int ,
451
452
argstr = "-lmax %s" ,
0 commit comments