Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
60ca36b2
Commit
60ca36b2
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
ENH: new prelude wrapper
parent
e985dd1f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/wrappers/__init__.py
+1
-0
1 addition, 0 deletions
fsl/wrappers/__init__.py
fsl/wrappers/fugue.py
+21
-0
21 additions, 0 deletions
fsl/wrappers/fugue.py
with
22 additions
and
0 deletions
fsl/wrappers/__init__.py
+
1
−
0
View file @
60ca36b2
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
fsl/wrappers/fugue.py
+
21
−
0
View file @
60ca36b2
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment