diff --git a/.zenodo.json b/.zenodo.json index ee1771da97..bf1cb6f692 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -695,6 +695,11 @@ "affiliation": "MIT, HMS", "name": "Ghosh, Satrajit", "orcid": "0000-0002-5312-6729" + }, + { + "affiliation": "Holland Bloorview Kids Rehabilitation Hospital", + "name": "Tilley II, Steven", + "orcid": "0000-0003-4853-5082" } ], "keywords": [ diff --git a/nipype/interfaces/fsl/tests/test_auto_ImageStats.py b/nipype/interfaces/fsl/tests/test_auto_ImageStats.py index 0230245f2e..f2dc0af947 100644 --- a/nipype/interfaces/fsl/tests/test_auto_ImageStats.py +++ b/nipype/interfaces/fsl/tests/test_auto_ImageStats.py @@ -14,6 +14,11 @@ def test_ImageStats_inputs(): argstr='%s', extensions=None, mandatory=True, + position=3, + ), + index_mask_file=dict( + argstr='-K %s', + extensions=None, position=2, ), mask_file=dict( @@ -23,7 +28,7 @@ def test_ImageStats_inputs(): op_string=dict( argstr='%s', mandatory=True, - position=3, + position=4, ), output_type=dict(), split_4d=dict( diff --git a/nipype/interfaces/fsl/utils.py b/nipype/interfaces/fsl/utils.py index f4ef73c0e9..a572259e2e 100644 --- a/nipype/interfaces/fsl/utils.py +++ b/nipype/interfaces/fsl/utils.py @@ -725,18 +725,25 @@ class ImageStatsInputSpec(FSLCommandInputSpec): exists=True, argstr="%s", mandatory=True, - position=2, + position=3, desc='input file to generate stats of') op_string = traits.Str( argstr="%s", mandatory=True, - position=3, + position=4, desc=("string defining the operation, options are " "applied in order, e.g. -M -l 10 -M will " "report the non-zero mean, apply a threshold " "and then report the new nonzero mean")) mask_file = File( exists=True, argstr="", desc='mask file used for option -k %s') + index_mask_file = File( + exists=True, + argstr="-K %s", + position=2, + desc="generate seperate n submasks from indexMask, " + "for indexvalues 1..n where n is the maximum index " + "value in indexMask, and generate statistics for each submask") class ImageStatsOutputSpec(TraitedSpec):