@@ -192,9 +192,7 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
192
192
mandatory = True ,
193
193
desc = "input DWI image" ,
194
194
)
195
- in_mask = File (
196
- argstr = "-mask %s" , desc = "input mask image for bias field estimation"
197
- )
195
+ in_mask = File (argstr = "-mask %s" , desc = "input mask image for bias field estimation" )
198
196
use_ants = traits .Bool (
199
197
argstr = "ants" ,
200
198
mandatory = True ,
@@ -386,7 +384,7 @@ class DWIPreproc(MRTrix3Base):
386
384
>>> preproc.inputs.rpe_options = 'none'
387
385
>>> preproc.inputs.out_file = "preproc.mif"
388
386
>>> preproc.inputs.eddy_options = '--slm=linear --repol' # linear second level model and replace outliers
389
- >>> preproc.inputs.export_grad_mrtrix = True # export final gradient table in MRtrix format
387
+ >>> preproc.inputs.out_grad_mrtrix = "grad.b" # export final gradient table in MRtrix format
390
388
>>> preproc.inputs.ro_time = 0.165240 # 'TotalReadoutTime' in BIDS JSON metadata files
391
389
>>> preproc.inputs.pe_dir = 'j' # 'PhaseEncodingDirection' in BIDS JSON metadata files
392
390
>>> preproc.cmdline
@@ -402,9 +400,7 @@ def _list_outputs(self):
402
400
outputs = self .output_spec ().get ()
403
401
outputs ["out_file" ] = op .abspath (self .inputs .out_file )
404
402
if self .inputs .export_grad_mrtrix :
405
- outputs ["out_grad_mrtrix" ] = op .abspath (
406
- self .inputs .out_grad_mrtrix
407
- )
403
+ outputs ["out_grad_mrtrix" ] = op .abspath (self .inputs .out_grad_mrtrix )
408
404
if self .inputs .export_grad_fsl :
409
405
outputs ["out_fsl_bvec" ] = op .abspath (self .inputs .out_grad_fsl [0 ])
410
406
outputs ["out_fsl_bval" ] = op .abspath (self .inputs .out_grad_fsl [1 ])
@@ -438,15 +434,9 @@ class ResponseSDInputSpec(MRTrix3BaseInputSpec):
438
434
usedefault = True ,
439
435
desc = "output WM response text file" ,
440
436
)
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
- )
437
+ gm_file = File (argstr = "%s" , position = - 2 , desc = "output GM response text file" )
438
+ csf_file = File (argstr = "%s" , position = - 1 , desc = "output CSF response text file" )
439
+ in_mask = File (exists = True , argstr = "-mask %s" , desc = "provide initial mask image" )
450
440
max_sh = InputMultiObject (
451
441
traits .Int ,
452
442
argstr = "-lmax %s" ,
0 commit comments