Skip to content

Commit 33131ac

Browse files
authored
Merge pull request #1967 from imalone/nipy/master
[ENH] FSL epi interface, add missing Eddy options.
2 parents 3a4b08c + 2951749 commit 33131ac

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

nipype/interfaces/fsl/epi.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,32 @@ class EddyInputSpec(FSLCommandInputSpec):
423423
flm = traits.Enum('linear', 'quadratic', 'cubic', argstr='--flm=%s',
424424
desc='First level EC model')
425425

426+
slm = traits.Enum('none', 'linear', 'quadratic', argstr='--slm=%s',
427+
desc='Second level EC model')
428+
429+
fep = traits.Bool(False, argstr='--fep',
430+
desc='Fill empty planes in x- or y-directions')
431+
432+
interp = traits.Enum('spline', 'trilinear', argstr='--interp=%s',
433+
desc='Interpolation model for estimation step')
434+
435+
nvoxhp = traits.Int(1000, argstr='--nvoxhp=%s',
436+
desc=('# of voxels used to estimate the '
437+
'hyperparameters'))
438+
439+
fudge_factor = traits.Float(10.0, argstr='--ff=%s',
440+
desc=('Fudge factor for hyperparameter '
441+
'error variance'))
442+
443+
dont_sep_offs_move = traits.Bool(False, argstr='--dont_sep_offs_move',
444+
desc=('Do NOT attempt to separate '
445+
'field offset from subject '
446+
'movement'))
447+
448+
dont_peas = traits.Bool(False, argstr='--dont_peas',
449+
desc="Do NOT perform a post-eddy alignment of "
450+
"shells")
451+
426452
fwhm = traits.Float(desc=('FWHM for conditioning filter when estimating '
427453
'the parameters'), argstr='--fwhm=%s')
428454

nipype/interfaces/fsl/tests/test_auto_Eddy.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@
66
def test_Eddy_inputs():
77
input_map = dict(args=dict(argstr='%s',
88
),
9+
dont_peas=dict(argstr='--dont_peas',
10+
),
11+
dont_sep_offs_move=dict(argstr='--dont_sep_offs_move',
12+
),
913
environ=dict(nohash=True,
1014
usedefault=True,
1115
),
16+
fep=dict(argstr='--fep',
17+
),
1218
field=dict(argstr='--field=%s',
1319
),
1420
field_mat=dict(argstr='--field_mat=%s',
1521
),
1622
flm=dict(argstr='--flm=%s',
1723
),
24+
fudge_factor=dict(argstr='--ff=%s',
25+
),
1826
fwhm=dict(argstr='--fwhm=%s',
1927
),
2028
ignore_exception=dict(nohash=True,
@@ -43,6 +51,8 @@ def test_Eddy_inputs():
4351
),
4452
in_topup_movpar=dict(requires=['in_topup_fieldcoef'],
4553
),
54+
interp=dict(argstr='--interp=%s',
55+
),
4656
is_shelled=dict(argstr='--data_is_shelled',
4757
),
4858
method=dict(argstr='--resamp=%s',
@@ -52,6 +62,8 @@ def test_Eddy_inputs():
5262
num_threads=dict(nohash=True,
5363
usedefault=True,
5464
),
65+
nvoxhp=dict(argstr='--nvoxhp=%s',
66+
),
5567
out_base=dict(argstr='--out=%s',
5668
usedefault=True,
5769
),
@@ -60,6 +72,8 @@ def test_Eddy_inputs():
6072
),
6173
session=dict(argstr='--session=%s',
6274
),
75+
slm=dict(argstr='--slm=%s',
76+
),
6377
terminal_output=dict(nohash=True,
6478
),
6579
use_cuda=dict(),
@@ -74,6 +88,9 @@ def test_Eddy_inputs():
7488
def test_Eddy_outputs():
7589
output_map = dict(out_corrected=dict(),
7690
out_movement_rms=dict(),
91+
out_outlier_map=dict(),
92+
out_outlier_n_sd_map=dict(),
93+
out_outlier_n_sqr_sd_map=dict(),
7794
out_outlier_report=dict(),
7895
out_parameter=dict(),
7996
out_restricted_movement_rms=dict(),

0 commit comments

Comments
 (0)