File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
nipype/interfaces/mrtrix3 Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ class FitTensorInputSpec(MRTrix3BaseInputSpec):
38
38
'rician' ,
39
39
argstr = '-method %s' ,
40
40
desc = ('select method used to perform the fitting' ))
41
+ reg_term = traits .Float (
42
+ 5.e3 , usedefault = True ,
43
+ argstr = '-regularisation %f' ,
44
+ desc = ('specify the strength of the regularisation term on the '
45
+ 'magnitude of the tensor elements (default = 5000). This '
46
+ 'only applies to the non-linear methods' ))
41
47
42
48
43
49
class FitTensorOutputSpec (TraitedSpec ):
@@ -58,7 +64,8 @@ class FitTensor(MRTrix3Base):
58
64
>>> tsr.inputs.in_mask = 'mask.nii.gz'
59
65
>>> tsr.inputs.grad_fsl = ('bvecs', 'bvals')
60
66
>>> tsr.cmdline # doctest: +ELLIPSIS
61
- 'dwi2tensor -fslgrad bvecs bvals -mask mask.nii.gz dwi.mif dti.mif'
67
+ 'dwi2tensor -fslgrad bvecs bvals -mask mask.nii.gz \
68
+ -regularisation 5000.000000 dwi.mif dti.mif'
62
69
>>> tsr.run() # doctest: +SKIP
63
70
"""
64
71
You can’t perform that action at this time.
0 commit comments