Skip to content

Commit 46e1df6

Browse files
authored
Merge pull request #3630 from teanijarv/master
ENH: added 'hsvs' option to 5ttgen + mrtransform fix
2 parents 58d4fc7 + 7fc44fd commit 46e1df6

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.zenodo.json

+5
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,11 @@
911911
"name": "Wu, Jianxiao",
912912
"orcid": "0000-0002-4866-272X",
913913
},
914+
{
915+
"affiliation": "Lund University",
916+
"name": "Anijärv, Toomas Erik",
917+
"orcid": "0000-0002-3650-4230",
918+
},
914919
],
915920
"keywords": [
916921
"neuroimaging",

nipype/interfaces/mrtrix3/utils.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
traits,
1212
TraitedSpec,
1313
File,
14+
Directory,
1415
InputMultiPath,
1516
isdefined,
1617
)
@@ -224,13 +225,16 @@ class Generate5ttInputSpec(MRTrix3BaseInputSpec):
224225
"fsl",
225226
"gif",
226227
"freesurfer",
228+
"hsvs",
227229
argstr="%s",
228230
position=-3,
229231
mandatory=True,
230232
desc="tissue segmentation algorithm",
231233
)
232-
in_file = File(
233-
exists=True, argstr="%s", mandatory=True, position=-2, desc="input image"
234+
in_file = traits.Either(
235+
File(exists=True),
236+
Directory(exists=True),
237+
argstr="%s", mandatory=True, position=-2, desc="input image / directory"
234238
)
235239
out_file = File(argstr="%s", mandatory=True, position=-1, desc="output image")
236240

0 commit comments

Comments
 (0)