diff --git a/fsl/wrappers/__init__.py b/fsl/wrappers/__init__.py index 7848a07b7811976eccae3ad06bc6e6ae59ca8aa2..638587cea739e18229f6ca9d26508c9146117738 100755 --- a/fsl/wrappers/__init__.py +++ b/fsl/wrappers/__init__.py @@ -87,6 +87,7 @@ from .eddy import (eddy_cuda, # noqa applytopup) from .fast import (fast,) # noqa from .fsl_anat import (fsl_anat,) # noqa +from .fsl_sub import (fsl_sub,) # noqa from .flirt import (flirt, # noqa invxfm, applyxfm, diff --git a/fsl/wrappers/fsl_sub.py b/fsl/wrappers/fsl_sub.py new file mode 100644 index 0000000000000000000000000000000000000000..0efca96449655e805be1c49a9e76dccb05c59a0d --- /dev/null +++ b/fsl/wrappers/fsl_sub.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +# +# fsl_sub.py - Wrapper for the fsl_sub command. +# +# Author: Paul McCarthy <pauldmccarthy@gmail.com> +# +"""This module provides the :func:`fsl_sub` function, a wrapper for the FSL +`fsl_sub <https://git.fmrib.ox.ac.uk/fsl/fsl_sub>`_ command. +""" + + +from . import wrapperutils as wutils + + +@wutils.fslwrapper +def fsl_sub(*args, **kwargs): + """Wrapper for the ``fsl_sub`` command. + """ + cmd = ['fsl_sub'] + cmd += wutils.applyArgStyle('--', singlechar_args=True, **kwargs) + cmd += list(args) + return cmd