Commit d2f522f6 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

ENH: new applyxfm4D wrapper

parent b362fae5
......@@ -87,6 +87,7 @@ from .fsl_anat import (fsl_anat,) # noqa
from .flirt import (flirt, # noqa
invxfm,
applyxfm,
applyxfm4D,
concatxfm,
mcflirt)
from .fnirt import (fnirt, # noqa
......
......@@ -14,6 +14,7 @@ tools.
flirt
applyxfm
applyxfm4D
invxfm
concatxfm
mcflirt
......@@ -70,6 +71,25 @@ def applyxfm(src, ref, mat, out, interp='spline', **kwargs):
**kwargs)
@wutils.fileOrArray('mat')
@wutils.fileOrImage('src', 'ref', 'out')
@wutils.fslwrapper
def applyxfm4D(src, ref, out, mat, **kwargs):
"""Wrapper for the ``applyxfm4D`` command. """
asrt.assertIsNifti(src, ref)
valmap = {
'singlematrix' : wutils.SHOW_IF_TRUE,
'fourdigit' : wutils.SHOW_IF_TRUE,
}
cmd = ['applyxfm4D', src, ref, out, mat]
cmd += wutils.applyArgStyle('-', valmap=valmap, **kwargs)
return cmd
@wutils.fileOrArray()
@wutils.fslwrapper
def invxfm(inmat, omat):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment