Skip to content

Commit 3083f8d

Browse files
committed
Merge pull request #888 from oesteban/enh/FSLimg2coords
FSL new interfaces: img2imgcoords and img2stdcoords
2 parents ba986a9 + 83d03e6 commit 3083f8d

File tree

6 files changed

+399
-10
lines changed

6 files changed

+399
-10
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Next Release
22
============
33

4+
* ENH: New FSL interfaces: WarpPoints, WarpPointsToStd.
45
* ENH: New Freesurfer interface: MRIPretess
56
* ENH: New miscelaneous interface: AddCSVRow
67
* ENH: FUGUE interface has been refactored to use the name_template system, 3 examples

nipype/interfaces/fsl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
ImageStats, FilterRegressor, Overlay, Slicer,
1717
PlotTimeSeries, PlotMotionParams, ConvertXFM,
1818
SwapDimensions, PowerSpectrum, Reorient2Std,
19-
Complex, InvWarp, WarpUtils, ConvertWarp)
19+
Complex, InvWarp, WarpUtils, ConvertWarp, WarpPoints, WarpPointsToStd)
2020

2121
from .epi import (PrepareFieldmap, TOPUP, ApplyTOPUP, Eddy, EPIDeWarp,
2222
SigLoss, EddyCorrect)
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.fsl.utils import WarpPoints
4+
5+
def test_WarpPoints_inputs():
6+
input_map = dict(args=dict(argstr='%s',
7+
),
8+
coord_mm=dict(argstr='-mm',
9+
xor=['coord_vox'],
10+
),
11+
coord_vox=dict(argstr='-vox',
12+
xor=['coord_mm'],
13+
),
14+
dest_file=dict(argstr='-dest %s',
15+
mandatory=True,
16+
),
17+
environ=dict(nohash=True,
18+
usedefault=True,
19+
),
20+
ignore_exception=dict(nohash=True,
21+
usedefault=True,
22+
),
23+
in_coords=dict(argstr='%s',
24+
mandatory=True,
25+
position=-1,
26+
),
27+
out_file=dict(name_source='in_coords',
28+
name_template='%s_warped',
29+
output_name='out_file',
30+
),
31+
src_file=dict(argstr='-src %s',
32+
mandatory=True,
33+
),
34+
terminal_output=dict(mandatory=True,
35+
nohash=True,
36+
),
37+
warp_file=dict(argstr='-warp %s',
38+
xor=['xfm_file'],
39+
),
40+
xfm_file=dict(argstr='-xfm %s',
41+
xor=['warp_file'],
42+
),
43+
)
44+
inputs = WarpPoints.input_spec()
45+
46+
for key, metadata in input_map.items():
47+
for metakey, value in metadata.items():
48+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
49+
50+
def test_WarpPoints_outputs():
51+
output_map = dict(out_file=dict(),
52+
)
53+
outputs = WarpPoints.output_spec()
54+
55+
for key, metadata in output_map.items():
56+
for metakey, value in metadata.items():
57+
yield assert_equal, getattr(outputs.traits()[key], metakey), value
58+
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.fsl.utils import WarpPointsToStd
4+
5+
def test_WarpPointsToStd_inputs():
6+
input_map = dict(args=dict(argstr='%s',
7+
),
8+
coord_mm=dict(argstr='-mm',
9+
xor=['coord_vox'],
10+
),
11+
coord_vox=dict(argstr='-vox',
12+
xor=['coord_mm'],
13+
),
14+
environ=dict(nohash=True,
15+
usedefault=True,
16+
),
17+
ignore_exception=dict(nohash=True,
18+
usedefault=True,
19+
),
20+
img_file=dict(argstr='-img %s',
21+
mandatory=True,
22+
),
23+
in_coords=dict(argstr='%s',
24+
mandatory=True,
25+
position=-1,
26+
),
27+
out_file=dict(name_source='in_coords',
28+
name_template='%s_warped',
29+
output_name='out_file',
30+
),
31+
premat_file=dict(argstr='-premat %s',
32+
),
33+
std_file=dict(argstr='-std %s',
34+
mandatory=True,
35+
),
36+
terminal_output=dict(mandatory=True,
37+
nohash=True,
38+
),
39+
warp_file=dict(argstr='-warp %s',
40+
xor=['xfm_file'],
41+
),
42+
xfm_file=dict(argstr='-xfm %s',
43+
xor=['warp_file'],
44+
),
45+
)
46+
inputs = WarpPointsToStd.input_spec()
47+
48+
for key, metadata in input_map.items():
49+
for metakey, value in metadata.items():
50+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
51+
52+
def test_WarpPointsToStd_outputs():
53+
output_map = dict(out_file=dict(),
54+
)
55+
outputs = WarpPointsToStd.output_spec()
56+
57+
for key, metadata in output_map.items():
58+
for metakey, value in metadata.items():
59+
yield assert_equal, getattr(outputs.traits()[key], metakey), value
60+

0 commit comments

Comments
 (0)