Skip to content
Snippets Groups Projects
Commit 60ca36b2 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

ENH: new prelude wrapper

parent e985dd1f
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,7 @@ from .fnirt import (fnirt, # noqa
convertwarp)
from .fslmaths import (fslmaths,) # noqa
from .fugue import (fugue, # noqa
prelude,
sigloss)
from .melodic import (melodic, # noqa
fsl_regfilt)
......
......@@ -62,3 +62,24 @@ def sigloss(input, sigloss, **kwargs):
cmd += wutils.applyArgStyle('--', valmap=valmap, **kwargs)
return cmd
@wutils.fileOrImage('complex', 'abs', 'phase', 'mask',
'out', 'unwrap', 'savemask', 'rawphase', 'labels')
@wutils.fslwrapper
def prelude(**kwargs):
"""Wrapper for the ``sigloss`` command."""
valmap = {
'labelslices' : wutils.SHOW_IF_TRUE,
'slices' : wutils.SHOW_IF_TRUE,
'force3D' : wutils.SHOW_IF_TRUE,
'removeramps' : wutils.SHOW_IF_TRUE,
'verbose' : wutils.SHOW_IF_TRUE,
}
cmd = ['prelude'] + 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