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
c9e4b8a2
Commit
c9e4b8a2
authored
1 year ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
ENH,RF: Move dtifit.py to fdt.py; add vecreg wrapper
parent
5ecbcb5e
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
+2
-1
2 additions, 1 deletion
fsl/wrappers/__init__.py
fsl/wrappers/fdt.py
+17
-7
17 additions, 7 deletions
fsl/wrappers/fdt.py
with
19 additions
and
8 deletions
fsl/wrappers/__init__.py
+
2
−
1
View file @
c9e4b8a2
...
...
@@ -158,7 +158,8 @@ from fsl.wrappers.bianca import (bianca,
make_bianca_mask
)
from
fsl.wrappers.feat
import
(
feat
,
featquery
)
from
fsl.wrappers.dtifit
import
dtifit
from
fsl.wrappers.fdt
import
(
dtifit
,
vecreg
)
from
fsl.wrappers.bedpostx
import
(
xfibres
,
xfibres_gpu
,
split_parts_gpu
,
...
...
This diff is collapsed.
Click to expand it.
fsl/wrappers/d
tifi
t.py
→
fsl/wrappers/
f
dt.py
+
17
−
7
View file @
c9e4b8a2
#!/usr/bin/env python
#
# d
tifi
t.py - Wrapper for
dtifit
.
#
f
dt.py - Wrapper
s
for
FDT commands
.
#
# Author:
Fidel Alfaro Almagro <fidel.alfaroalmagro@ndcn.ox.ac.uk
>
# Author:
Paul McCarthy <pauldmccarthy@gmail.com
>
#
"""
This module provides wrapper functions for the FSL `dtifit
<https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FDT>`_ command.
"""
"""
This module contains wrapper functions for various FDT commands.
"""
import
fsl.utils.assertions
as
asrt
from
.
import
wrapperutils
as
wutils
import
fsl.wrappers.wrapperutils
as
wutils
@wutils.fileOrImage
(
'
input
'
,
'
output
'
,
'
ref
'
,
'
warpfield
'
,
'
rotwarp
'
,
'
mask
'
,
'
refmask
'
)
@wutils.fileOrArray
(
'
premat
'
,
'
postmat
'
,
'
rotmat
'
)
@wutils.fslwrapper
def
vecreg
(
input
,
output
,
ref
,
**
kwargs
):
"""
Wrapper for the ``vecreg`` command.
"""
cmd
=
[
'
vecreg
'
,
'
-i
'
,
input
,
'
-o
'
,
output
,
'
-r
'
,
ref
]
cmd
+=
wutils
.
applyArgStyle
(
'
--=
'
,
**
kwargs
)
return
cmd
@wutils.fileOrImage
(
'
data
'
,
'
mask
'
,
'
field
'
,
outprefix
=
'
out
'
)
...
...
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