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
68494421
Commit
68494421
authored
6 years ago
by
Martin Craig
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/wrappers/fnirt.py
+5
-7
5 additions, 7 deletions
fsl/wrappers/fnirt.py
with
5 additions
and
7 deletions
fsl/wrappers/fnirt.py
+
5
−
7
View file @
68494421
...
@@ -27,12 +27,12 @@ from . import wrapperutils as wutils
...
@@ -27,12 +27,12 @@ from . import wrapperutils as wutils
'
refout
'
,
'
refmask
'
,
'
inmask
'
)
'
refout
'
,
'
refmask
'
,
'
inmask
'
)
@wutils.fileOrArray
(
'
aff
'
)
@wutils.fileOrArray
(
'
aff
'
)
@wutils.fslwrapper
@wutils.fslwrapper
def
fnirt
(
src
,
ref
,
**
kwargs
):
def
fnirt
(
src
,
**
kwargs
):
"""
Wrapper for the ``fnirt`` command.
"""
"""
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
)
cmd
+=
wutils
.
applyArgStyle
(
'
--=
'
,
**
kwargs
)
return
cmd
return
cmd
...
@@ -75,7 +75,7 @@ def invwarp(warp, ref, out, **kwargs):
...
@@ -75,7 +75,7 @@ def invwarp(warp, ref, out, **kwargs):
'
verbose
'
:
wutils
.
SHOW_IF_TRUE
,
'
verbose
'
:
wutils
.
SHOW_IF_TRUE
,
}
}
asrt
.
assertIsNifti
(
warp
,
ref
,
out
)
asrt
.
assertIsNifti
(
warp
,
ref
)
cmd
=
[
'
invwarp
'
,
cmd
=
[
'
invwarp
'
,
'
--warp={}
'
.
format
(
warp
),
'
--warp={}
'
.
format
(
warp
),
...
@@ -87,7 +87,7 @@ def invwarp(warp, ref, out, **kwargs):
...
@@ -87,7 +87,7 @@ def invwarp(warp, ref, out, **kwargs):
return
cmd
return
cmd
@wutils.fileOrImage
(
'
out
'
,
'
ref
'
,
'
warp1
'
,
'
warp2
'
,
'
shiftmap
'
)
@wutils.fileOrImage
(
'
out
'
,
'
ref
'
,
'
warp1
'
,
'
warp2
'
,
'
shiftmap
'
,
'
jacobian
'
)
@wutils.fileOrArray
(
'
premat
'
,
'
midmat
'
,
'
postmat
'
)
@wutils.fileOrArray
(
'
premat
'
,
'
midmat
'
,
'
postmat
'
)
@wutils.fslwrapper
@wutils.fslwrapper
def
convertwarp
(
out
,
ref
,
**
kwargs
):
def
convertwarp
(
out
,
ref
,
**
kwargs
):
...
@@ -98,7 +98,6 @@ def convertwarp(out, ref, **kwargs):
...
@@ -98,7 +98,6 @@ def convertwarp(out, ref, **kwargs):
'
rel
'
:
wutils
.
SHOW_IF_TRUE
,
'
rel
'
:
wutils
.
SHOW_IF_TRUE
,
'
absout
'
:
wutils
.
SHOW_IF_TRUE
,
'
absout
'
:
wutils
.
SHOW_IF_TRUE
,
'
relout
'
:
wutils
.
SHOW_IF_TRUE
,
'
relout
'
:
wutils
.
SHOW_IF_TRUE
,
'
jacobian
'
:
wutils
.
SHOW_IF_TRUE
,
'
jstats
'
:
wutils
.
SHOW_IF_TRUE
,
'
jstats
'
:
wutils
.
SHOW_IF_TRUE
,
'
constrainj
'
:
wutils
.
SHOW_IF_TRUE
,
'
constrainj
'
:
wutils
.
SHOW_IF_TRUE
,
'
verbose
'
:
wutils
.
SHOW_IF_TRUE
,
'
verbose
'
:
wutils
.
SHOW_IF_TRUE
,
...
@@ -106,5 +105,4 @@ def convertwarp(out, ref, **kwargs):
...
@@ -106,5 +105,4 @@ def convertwarp(out, ref, **kwargs):
cmd
=
[
'
convertwarp
'
,
'
--ref={}
'
.
format
(
ref
),
'
--out={}
'
.
format
(
out
)]
cmd
=
[
'
convertwarp
'
,
'
--ref={}
'
.
format
(
ref
),
'
--out={}
'
.
format
(
out
)]
cmd
+=
wutils
.
applyArgStyle
(
'
--=
'
,
valmap
=
valmap
,
**
kwargs
)
cmd
+=
wutils
.
applyArgStyle
(
'
--=
'
,
valmap
=
valmap
,
**
kwargs
)
return
cmd
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