Skip to content

Commit 01fa94e

Browse files
committed
Add index_mask_file input to ImageStats
Allows fslstats calls with the -K option
1 parent e7ab9cb commit 01fa94e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.zenodo.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,11 @@
695695
"affiliation": "MIT, HMS",
696696
"name": "Ghosh, Satrajit",
697697
"orcid": "0000-0002-5312-6729"
698+
},
699+
{
700+
"affiliation": "Holland Bloorview Kids Rehabilitation Hospital",
701+
"name": "Tilley II, Steven",
702+
"orcid": "0000-0003-4853-5082"
698703
}
699704
],
700705
"keywords": [

nipype/interfaces/fsl/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,18 +725,20 @@ class ImageStatsInputSpec(FSLCommandInputSpec):
725725
exists=True,
726726
argstr="%s",
727727
mandatory=True,
728-
position=2,
728+
position=3,
729729
desc='input file to generate stats of')
730730
op_string = traits.Str(
731731
argstr="%s",
732732
mandatory=True,
733-
position=3,
733+
position=4,
734734
desc=("string defining the operation, options are "
735735
"applied in order, e.g. -M -l 10 -M will "
736736
"report the non-zero mean, apply a threshold "
737737
"and then report the new nonzero mean"))
738738
mask_file = File(
739739
exists=True, argstr="", desc='mask file used for option -k %s')
740+
index_mask_file = File(
741+
exists=True, argstr="-K %s", position=2)
740742

741743

742744
class ImageStatsOutputSpec(TraitedSpec):

0 commit comments

Comments
 (0)