Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6ac81ca

Browse files
Merge pull request #3658 from GalKepler/5ttgen
[ENH] Added available inputs for MRTrix3's 5ttgen
2 parents c5fa777 + 386dd14 commit 6ac81ca

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed

‎nipype/interfaces/mrtrix3/tests/test_auto_Generate5tt.py‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ def test_Generate5tt_inputs():
2828
argstr="-fslgrad %s %s",
2929
xor=["grad_file"],
3030
),
31+
hippocampi=dict(
32+
argstr="-hippocampi %s",
33+
),
3134
in_bval=dict(
3235
extensions=None,
3336
),
@@ -40,6 +43,17 @@ def test_Generate5tt_inputs():
4043
mandatory=True,
4144
position=-2,
4245
),
46+
lut_file=dict(
47+
argstr="-lut %s",
48+
extensions=None,
49+
),
50+
mask_file=dict(
51+
argstr="-mask %s",
52+
extensions=None,
53+
),
54+
nocrop=dict(
55+
argstr="-nocrop",
56+
),
4357
nthreads=dict(
4458
argstr="-nthreads %d",
4559
nohash=True,
@@ -57,6 +71,23 @@ def test_Generate5tt_inputs():
5771
mandatory=True,
5872
position=-1,
5973
),
74+
premasked=dict(
75+
argstr="-premasked",
76+
),
77+
sgm_amyg_hipp=dict(
78+
argstr="-sgm_amyg_hipp",
79+
),
80+
t2_image=dict(
81+
argstr="-t2 %s",
82+
extensions=None,
83+
),
84+
template=dict(
85+
argstr="-template %s",
86+
extensions=None,
87+
),
88+
white_stem=dict(
89+
argstr="-white_stem",
90+
),
6091
)
6192
inputs = Generate5tt.input_spec()
6293

‎nipype/interfaces/mrtrix3/utils.py‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,49 @@ class Generate5ttInputSpec(MRTrix3BaseInputSpec):
241241
desc="input image / directory",
242242
)
243243
out_file = File(argstr="%s", mandatory=True, position=-1, desc="output image")
244+
t2_image = File(
245+
exists=True,
246+
argstr="-t2 %s",
247+
desc="Provide a T2-weighted image in addition to the default T1-weighted image. (Only for 'fsl' algorithm)",
248+
)
249+
mask_file = File(
250+
exists=True,
251+
argstr="-mask %s",
252+
desc="Provide a brain mask image. (Only for 'fsl' algorithm)",
253+
)
254+
premasked = traits.Bool(
255+
argstr="-premasked",
256+
desc="Assume that the input image is already brain-masked. (Only for 'fsl' algorithm)",
257+
)
258+
nocrop = traits.Bool(
259+
argstr="-nocrop",
260+
desc="Do not crop the image to the region of interest.",
261+
)
262+
sgm_amyg_hipp = traits.Bool(
263+
argstr="-sgm_amyg_hipp",
264+
desc="Include the amygdala and hippocampus in the subcortical grey matter segment.",
265+
)
266+
template = File(
267+
exists=True,
268+
argstr="-template %s",
269+
desc="Provide an image that will form the template for the generated 5TT image. (Only for 'hsvs' algorithm)",
270+
)
271+
hippocampi = traits.Enum(
272+
"subfields",
273+
"first",
274+
"aseg",
275+
argstr="-hippocampi %s",
276+
desc="Choose the method used to segment the hippocampi. (Only for 'freesurfer' algorithm)",
277+
)
278+
white_stem = traits.Bool(
279+
argstr="-white_stem",
280+
desc="Classify the brainstem as white matter. (Only for 'hsvs' algorithm)",
281+
)
282+
lut_file = File(
283+
exists=True,
284+
argstr="-lut %s",
285+
desc="Manually provide path to the lookup table on which the input parcellation image is based. (Only for 'freesurfer' algorithm)",
286+
)
244287

245288

246289
class Generate5ttOutputSpec(TraitedSpec):

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /