Skip to content
Snippets Groups Projects
Commit 68494421 authored by Martin Craig's avatar Martin Craig
Browse files

ref is not compulsary in fnirt if you are using the --config option

jacobian is an output image in convertwarp
parent 2b8aa6cf
No related branches found
No related tags found
No related merge requests found
......@@ -27,12 +27,12 @@ from . import wrapperutils as wutils
'refout', 'refmask', 'inmask')
@wutils.fileOrArray('aff')
@wutils.fslwrapper
def fnirt(src, ref, **kwargs):
def fnirt(src, **kwargs):
"""Wrapper for the ``fnirt`` command."""
asrt.assertIsNifti(src, ref)
asrt.assertIsNifti(src)
cmd = ['fnirt', '--in={}'.format(src), '--ref={}'.format(ref)]
cmd = ['fnirt', '--in={}'.format(src)]
cmd += wutils.applyArgStyle('--=', **kwargs)
return cmd
......@@ -75,7 +75,7 @@ def invwarp(warp, ref, out, **kwargs):
'verbose' : wutils.SHOW_IF_TRUE,
}
asrt.assertIsNifti(warp, ref, out)
asrt.assertIsNifti(warp, ref)
cmd = ['invwarp',
'--warp={}'.format(warp),
......@@ -87,7 +87,7 @@ def invwarp(warp, ref, out, **kwargs):
return cmd
@wutils.fileOrImage('out', 'ref', 'warp1', 'warp2', 'shiftmap')
@wutils.fileOrImage('out', 'ref', 'warp1', 'warp2', 'shiftmap', 'jacobian')
@wutils.fileOrArray('premat', 'midmat', 'postmat')
@wutils.fslwrapper
def convertwarp(out, ref, **kwargs):
......@@ -98,7 +98,6 @@ def convertwarp(out, ref, **kwargs):
'rel' : wutils.SHOW_IF_TRUE,
'absout' : wutils.SHOW_IF_TRUE,
'relout' : wutils.SHOW_IF_TRUE,
'jacobian' : wutils.SHOW_IF_TRUE,
'jstats' : wutils.SHOW_IF_TRUE,
'constrainj' : wutils.SHOW_IF_TRUE,
'verbose' : wutils.SHOW_IF_TRUE,
......@@ -106,5 +105,4 @@ def convertwarp(out, ref, **kwargs):
cmd = ['convertwarp', '--ref={}'.format(ref), '--out={}'.format(out)]
cmd += wutils.applyArgStyle('--=', valmap=valmap, **kwargs)
return cmd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment