diff --git a/fsl/wrappers/fast.py b/fsl/wrappers/fast.py index a944ea77ad31f2c8487c2e8e4aec2e3b8aea1b77..b1cd712ac99e9e45d2e97f74f5dae5b38c6e80c0 100644 --- a/fsl/wrappers/fast.py +++ b/fsl/wrappers/fast.py @@ -33,12 +33,19 @@ def fast(imgs, out='fast', **kwargs): asrt.assertIsNifti(*imgs) + valmap = { + 'nobias' : wutils.SHOW_IF_TRUE, + 'verbose' : wutils.SHOW_IF_TRUE, + 'Prior' : wutils.SHOW_IF_TRUE, + 'segments' : wutils.SHOW_IF_TRUE, + } + argmap = { 'n_classes' : 'class', } cmd = ['fast', '-v', '--out=%s' % out] - cmd += wutils.applyArgStyle('--=', argmap=argmap, **kwargs) + cmd += wutils.applyArgStyle('--=', valmap=valmap, argmap=argmap, singlechar_args=True, **kwargs) cmd += imgs return cmd