niwrap-mrtrix 0.8.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. niwrap_mrtrix/mrtrix/__init__.py +263 -0
  2. niwrap_mrtrix/mrtrix/afdconnectivity.py +527 -0
  3. niwrap_mrtrix/mrtrix/amp2response.py +560 -0
  4. niwrap_mrtrix/mrtrix/amp2sh.py +870 -0
  5. niwrap_mrtrix/mrtrix/connectome2tck.py +583 -0
  6. niwrap_mrtrix/mrtrix/connectomeedit.py +413 -0
  7. niwrap_mrtrix/mrtrix/connectomestats.py +956 -0
  8. niwrap_mrtrix/mrtrix/dcmedit.py +552 -0
  9. niwrap_mrtrix/mrtrix/dcminfo.py +529 -0
  10. niwrap_mrtrix/mrtrix/dirflip.py +440 -0
  11. niwrap_mrtrix/mrtrix/dirgen.py +514 -0
  12. niwrap_mrtrix/mrtrix/dirmerge.py +446 -0
  13. niwrap_mrtrix/mrtrix/dirorder.py +421 -0
  14. niwrap_mrtrix/mrtrix/dirsplit.py +436 -0
  15. niwrap_mrtrix/mrtrix/dirstat.py +640 -0
  16. niwrap_mrtrix/mrtrix/dwi2adc.py +531 -0
  17. niwrap_mrtrix/mrtrix/dwi2fod.py +1156 -0
  18. niwrap_mrtrix/mrtrix/dwi2mask.py +570 -0
  19. niwrap_mrtrix/mrtrix/dwi2response.py +1774 -0
  20. niwrap_mrtrix/mrtrix/dwi2tensor.py +715 -0
  21. niwrap_mrtrix/mrtrix/dwibiascorrect.py +673 -0
  22. niwrap_mrtrix/mrtrix/dwidenoise.py +570 -0
  23. niwrap_mrtrix/mrtrix/dwiextract.py +1111 -0
  24. niwrap_mrtrix/mrtrix/dwigradcheck.py +665 -0
  25. niwrap_mrtrix/mrtrix/fixel2peaks.py +613 -0
  26. niwrap_mrtrix/mrtrix/fixel2sh.py +430 -0
  27. niwrap_mrtrix/mrtrix/fixel2tsf.py +435 -0
  28. niwrap_mrtrix/mrtrix/fixel2voxel.py +523 -0
  29. niwrap_mrtrix/mrtrix/fixelcfestats.py +1179 -0
  30. niwrap_mrtrix/mrtrix/fixelconnectivity.py +477 -0
  31. niwrap_mrtrix/mrtrix/fixelconvert.py +850 -0
  32. niwrap_mrtrix/mrtrix/fixelcorrespondence.py +455 -0
  33. niwrap_mrtrix/mrtrix/fixelcrop.py +422 -0
  34. niwrap_mrtrix/mrtrix/fixelfilter.py +882 -0
  35. niwrap_mrtrix/mrtrix/fixelreorient.py +435 -0
  36. niwrap_mrtrix/mrtrix/fod2dec.py +571 -0
  37. niwrap_mrtrix/mrtrix/fod2fixel.py +646 -0
  38. niwrap_mrtrix/mrtrix/label2colour.py +426 -0
  39. niwrap_mrtrix/mrtrix/label2mesh.py +417 -0
  40. niwrap_mrtrix/mrtrix/labelconvert.py +460 -0
  41. niwrap_mrtrix/mrtrix/labelstats.py +418 -0
  42. niwrap_mrtrix/mrtrix/maskdump.py +404 -0
  43. niwrap_mrtrix/mrtrix/maskfilter.py +730 -0
  44. niwrap_mrtrix/mrtrix/mesh2voxel.py +422 -0
  45. niwrap_mrtrix/mrtrix/meshconvert.py +514 -0
  46. niwrap_mrtrix/mrtrix/meshfilter.py +452 -0
  47. niwrap_mrtrix/mrtrix/mraverageheader.py +485 -0
  48. niwrap_mrtrix/mrtrix/mrcalc.py +4302 -0
  49. niwrap_mrtrix/mrtrix/mrcat.py +467 -0
  50. niwrap_mrtrix/mrtrix/mrcentroid.py +418 -0
  51. niwrap_mrtrix/mrtrix/mrcheckerboardmask.py +446 -0
  52. niwrap_mrtrix/mrtrix/mrclusterstats.py +930 -0
  53. niwrap_mrtrix/mrtrix/mrcolour.py +490 -0
  54. niwrap_mrtrix/mrtrix/mrconvert.py +1967 -0
  55. niwrap_mrtrix/mrtrix/mrdegibbs.py +535 -0
  56. niwrap_mrtrix/mrtrix/mrdump.py +423 -0
  57. niwrap_mrtrix/mrtrix/mredit.py +737 -0
  58. niwrap_mrtrix/mrtrix/mrfilter.py +971 -0
  59. niwrap_mrtrix/mrtrix/mrgrid.py +1079 -0
  60. niwrap_mrtrix/mrtrix/mrhistmatch.py +494 -0
  61. niwrap_mrtrix/mrtrix/mrhistogram.py +484 -0
  62. niwrap_mrtrix/mrtrix/mrinfo.py +1282 -0
  63. niwrap_mrtrix/mrtrix/mrmath.py +503 -0
  64. niwrap_mrtrix/mrtrix/mrmetric.py +525 -0
  65. niwrap_mrtrix/mrtrix/mrregister.py +2098 -0
  66. niwrap_mrtrix/mrtrix/mrstats.py +534 -0
  67. niwrap_mrtrix/mrtrix/mrthreshold.py +666 -0
  68. niwrap_mrtrix/mrtrix/mrtransform.py +1372 -0
  69. niwrap_mrtrix/mrtrix/mtnormalise.py +725 -0
  70. niwrap_mrtrix/mrtrix/peaks2amp.py +403 -0
  71. niwrap_mrtrix/mrtrix/peaks2fixel.py +422 -0
  72. niwrap_mrtrix/mrtrix/responsemean.py +385 -0
  73. niwrap_mrtrix/mrtrix/sh2amp.py +844 -0
  74. niwrap_mrtrix/mrtrix/sh2peaks.py +632 -0
  75. niwrap_mrtrix/mrtrix/sh2power.py +427 -0
  76. niwrap_mrtrix/mrtrix/sh2response.py +481 -0
  77. niwrap_mrtrix/mrtrix/shbasis.py +445 -0
  78. niwrap_mrtrix/mrtrix/shconv.py +661 -0
  79. niwrap_mrtrix/mrtrix/tck2connectome.py +727 -0
  80. niwrap_mrtrix/mrtrix/tck2fixel.py +447 -0
  81. niwrap_mrtrix/mrtrix/tckconvert.py +775 -0
  82. niwrap_mrtrix/mrtrix/tckdfc.py +684 -0
  83. niwrap_mrtrix/mrtrix/tckedit.py +1478 -0
  84. niwrap_mrtrix/mrtrix/tckgen.py +2733 -0
  85. niwrap_mrtrix/mrtrix/tckglobal.py +944 -0
  86. niwrap_mrtrix/mrtrix/tckinfo.py +402 -0
  87. niwrap_mrtrix/mrtrix/tckmap.py +1004 -0
  88. niwrap_mrtrix/mrtrix/tckresample.py +760 -0
  89. niwrap_mrtrix/mrtrix/tcksample.py +497 -0
  90. niwrap_mrtrix/mrtrix/tcksift.py +739 -0
  91. niwrap_mrtrix/mrtrix/tcksift2.py +902 -0
  92. niwrap_mrtrix/mrtrix/tckstats.py +550 -0
  93. niwrap_mrtrix/mrtrix/tcktransform.py +414 -0
  94. niwrap_mrtrix/mrtrix/tensor2metric.py +659 -0
  95. niwrap_mrtrix/mrtrix/transformcalc.py +421 -0
  96. niwrap_mrtrix/mrtrix/transformcompose.py +625 -0
  97. niwrap_mrtrix/mrtrix/transformconvert.py +423 -0
  98. niwrap_mrtrix/mrtrix/tsfdivide.py +414 -0
  99. niwrap_mrtrix/mrtrix/tsfinfo.py +421 -0
  100. niwrap_mrtrix/mrtrix/tsfmult.py +401 -0
  101. niwrap_mrtrix/mrtrix/tsfsmooth.py +420 -0
  102. niwrap_mrtrix/mrtrix/tsfthreshold.py +428 -0
  103. niwrap_mrtrix/mrtrix/tsfvalidate.py +398 -0
  104. niwrap_mrtrix/mrtrix/v_5tt2gmwmi.py +432 -0
  105. niwrap_mrtrix/mrtrix/v_5tt2vis.py +505 -0
  106. niwrap_mrtrix/mrtrix/v_5ttcheck.py +409 -0
  107. niwrap_mrtrix/mrtrix/v_5ttedit.py +513 -0
  108. niwrap_mrtrix/mrtrix/v_5ttgen.py +1107 -0
  109. niwrap_mrtrix/mrtrix/vectorstats.py +736 -0
  110. niwrap_mrtrix/mrtrix/voxel2fixel.py +430 -0
  111. niwrap_mrtrix/mrtrix/voxel2mesh.py +454 -0
  112. niwrap_mrtrix/mrtrix/warp2metric.py +556 -0
  113. niwrap_mrtrix/mrtrix/warpconvert.py +498 -0
  114. niwrap_mrtrix/mrtrix/warpcorrect.py +448 -0
  115. niwrap_mrtrix/mrtrix/warpinit.py +425 -0
  116. niwrap_mrtrix/mrtrix/warpinvert.py +448 -0
  117. niwrap_mrtrix-0.8.0.dist-info/METADATA +8 -0
  118. niwrap_mrtrix-0.8.0.dist-info/RECORD +119 -0
  119. niwrap_mrtrix-0.8.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,432 @@
1
+ # This file was auto generated by Styx.
2
+ # Do not edit this file directly.
3
+
4
+ import typing
5
+ import pathlib
6
+ from styxdefs import *
7
+
8
+ V_5TT2GMWMI_METADATA = Metadata(
9
+ id="9364810c76c939f13c428191716ed63148337a9a.boutiques",
10
+ name="5tt2gmwmi",
11
+ package="mrtrix",
12
+ container_image_tag="mrtrix3/mrtrix3:3.0.4",
13
+ )
14
+
15
+
16
+ _V5tt2gmwmiConfigParamsDictNoTag = typing.TypedDict('_V5tt2gmwmiConfigParamsDictNoTag', {
17
+ "key": str,
18
+ "value": str,
19
+ })
20
+ V5tt2gmwmiConfigParamsDictTagged = typing.TypedDict('V5tt2gmwmiConfigParamsDictTagged', {
21
+ "@type": typing.Literal["config"],
22
+ "key": str,
23
+ "value": str,
24
+ })
25
+ V5tt2gmwmiConfigParamsDict = _V5tt2gmwmiConfigParamsDictNoTag | V5tt2gmwmiConfigParamsDictTagged
26
+
27
+
28
+ _V5tt2gmwmiParamsDictNoTag = typing.TypedDict('_V5tt2gmwmiParamsDictNoTag', {
29
+ "mask_in": typing.NotRequired[InputPathType | None],
30
+ "info": bool,
31
+ "quiet": bool,
32
+ "debug": bool,
33
+ "force": bool,
34
+ "nthreads": typing.NotRequired[int | None],
35
+ "config": typing.NotRequired[list[V5tt2gmwmiConfigParamsDict] | None],
36
+ "help": bool,
37
+ "version": bool,
38
+ "5tt_in": InputPathType,
39
+ "mask_out": str,
40
+ })
41
+ V5tt2gmwmiParamsDictTagged = typing.TypedDict('V5tt2gmwmiParamsDictTagged', {
42
+ "@type": typing.Literal["mrtrix/5tt2gmwmi"],
43
+ "mask_in": typing.NotRequired[InputPathType | None],
44
+ "info": bool,
45
+ "quiet": bool,
46
+ "debug": bool,
47
+ "force": bool,
48
+ "nthreads": typing.NotRequired[int | None],
49
+ "config": typing.NotRequired[list[V5tt2gmwmiConfigParamsDict] | None],
50
+ "help": bool,
51
+ "version": bool,
52
+ "5tt_in": InputPathType,
53
+ "mask_out": str,
54
+ })
55
+ V5tt2gmwmiParamsDict = _V5tt2gmwmiParamsDictNoTag | V5tt2gmwmiParamsDictTagged
56
+
57
+
58
+ def v_5tt2gmwmi_config(
59
+ key: str,
60
+ value: str,
61
+ ) -> V5tt2gmwmiConfigParamsDictTagged:
62
+ """
63
+ Build parameters.
64
+
65
+ Args:
66
+ key: temporarily set the value of an MRtrix config file entry.
67
+ value: temporarily set the value of an MRtrix config file entry.
68
+ Returns:
69
+ Parameter dictionary
70
+ """
71
+ params = {
72
+ "@type": "config",
73
+ "key": key,
74
+ "value": value,
75
+ }
76
+ return params
77
+
78
+
79
+ def v_5tt2gmwmi_config_validate(
80
+ params: typing.Any,
81
+ ) -> None:
82
+ """
83
+ Validate parameters. Throws an error if `params` is not a valid
84
+ `V5tt2gmwmiConfigParamsDict` object.
85
+
86
+ Args:
87
+ params: The parameters object to validate.
88
+ """
89
+ if params is None or not isinstance(params, dict):
90
+ raise StyxValidationError(f'Params object has the wrong type \'{type(params)}\'')
91
+ if params.get("key", None) is None:
92
+ raise StyxValidationError("`key` must not be None")
93
+ if not isinstance(params["key"], str):
94
+ raise StyxValidationError(f'`key` has the wrong type: Received `{type(params.get("key", None))}` expected `str`')
95
+ if params.get("value", None) is None:
96
+ raise StyxValidationError("`value` must not be None")
97
+ if not isinstance(params["value"], str):
98
+ raise StyxValidationError(f'`value` has the wrong type: Received `{type(params.get("value", None))}` expected `str`')
99
+
100
+
101
+ def v_5tt2gmwmi_config_cargs(
102
+ params: V5tt2gmwmiConfigParamsDict,
103
+ execution: Execution,
104
+ ) -> list[str]:
105
+ """
106
+ Build command-line arguments from parameters.
107
+
108
+ Args:
109
+ params: The parameters.
110
+ execution: The execution object for resolving input paths.
111
+ Returns:
112
+ Command-line arguments.
113
+ """
114
+ cargs = []
115
+ cargs.append("-config")
116
+ cargs.append(params.get("key", None))
117
+ cargs.append(params.get("value", None))
118
+ return cargs
119
+
120
+
121
+ class V5tt2gmwmiOutputs(typing.NamedTuple):
122
+ """
123
+ Output object returned when calling `V5tt2gmwmiParamsDict(...)`.
124
+ """
125
+ root: OutputPathType
126
+ """Output root folder. This is the root folder for all outputs."""
127
+ mask_out: OutputPathType
128
+ """the output mask image"""
129
+
130
+
131
+ def v_5tt2gmwmi_params(
132
+ v_5tt_in: InputPathType,
133
+ mask_out: str,
134
+ mask_in: InputPathType | None = None,
135
+ info: bool = False,
136
+ quiet: bool = False,
137
+ debug: bool = False,
138
+ force: bool = False,
139
+ nthreads: int | None = None,
140
+ config: list[V5tt2gmwmiConfigParamsDict] | None = None,
141
+ help_: bool = False,
142
+ version: bool = False,
143
+ ) -> V5tt2gmwmiParamsDictTagged:
144
+ """
145
+ Build parameters.
146
+
147
+ Args:
148
+ v_5tt_in: the input 5TT segmented anatomical image.
149
+ mask_out: the output mask image.
150
+ mask_in: Filter an input mask image according to those voxels that lie\
151
+ upon the grey matter - white matter boundary. If no input mask is\
152
+ provided, the output will be a whole-brain mask image calculated using\
153
+ the anatomical image only.
154
+ info: display information messages.
155
+ quiet: do not display information messages or progress status;\
156
+ alternatively, this can be achieved by setting the MRTRIX_QUIET\
157
+ environment variable to a non-empty string.
158
+ debug: display debugging messages.
159
+ force: force overwrite of output files (caution: using the same file as\
160
+ input and output might cause unexpected behaviour).
161
+ nthreads: use this number of threads in multi-threaded applications\
162
+ (set to 0 to disable multi-threading).
163
+ config: temporarily set the value of an MRtrix config file entry.
164
+ help_: display this information page and exit.
165
+ version: display version information and exit.
166
+ Returns:
167
+ Parameter dictionary
168
+ """
169
+ params = {
170
+ "@type": "mrtrix/5tt2gmwmi",
171
+ "info": info,
172
+ "quiet": quiet,
173
+ "debug": debug,
174
+ "force": force,
175
+ "help": help_,
176
+ "version": version,
177
+ "5tt_in": v_5tt_in,
178
+ "mask_out": mask_out,
179
+ }
180
+ if mask_in is not None:
181
+ params["mask_in"] = mask_in
182
+ if nthreads is not None:
183
+ params["nthreads"] = nthreads
184
+ if config is not None:
185
+ params["config"] = config
186
+ return params
187
+
188
+
189
+ def v_5tt2gmwmi_validate(
190
+ params: typing.Any,
191
+ ) -> None:
192
+ """
193
+ Validate parameters. Throws an error if `params` is not a valid
194
+ `V5tt2gmwmiParamsDict` object.
195
+
196
+ Args:
197
+ params: The parameters object to validate.
198
+ """
199
+ if params is None or not isinstance(params, dict):
200
+ raise StyxValidationError(f'Params object has the wrong type \'{type(params)}\'')
201
+ if params.get("mask_in", None) is not None:
202
+ if not isinstance(params["mask_in"], (pathlib.Path, str)):
203
+ raise StyxValidationError(f'`mask_in` has the wrong type: Received `{type(params.get("mask_in", None))}` expected `InputPathType | None`')
204
+ if params.get("info", False) is None:
205
+ raise StyxValidationError("`info` must not be None")
206
+ if not isinstance(params["info"], bool):
207
+ raise StyxValidationError(f'`info` has the wrong type: Received `{type(params.get("info", False))}` expected `bool`')
208
+ if params.get("quiet", False) is None:
209
+ raise StyxValidationError("`quiet` must not be None")
210
+ if not isinstance(params["quiet"], bool):
211
+ raise StyxValidationError(f'`quiet` has the wrong type: Received `{type(params.get("quiet", False))}` expected `bool`')
212
+ if params.get("debug", False) is None:
213
+ raise StyxValidationError("`debug` must not be None")
214
+ if not isinstance(params["debug"], bool):
215
+ raise StyxValidationError(f'`debug` has the wrong type: Received `{type(params.get("debug", False))}` expected `bool`')
216
+ if params.get("force", False) is None:
217
+ raise StyxValidationError("`force` must not be None")
218
+ if not isinstance(params["force"], bool):
219
+ raise StyxValidationError(f'`force` has the wrong type: Received `{type(params.get("force", False))}` expected `bool`')
220
+ if params.get("nthreads", None) is not None:
221
+ if not isinstance(params["nthreads"], int):
222
+ raise StyxValidationError(f'`nthreads` has the wrong type: Received `{type(params.get("nthreads", None))}` expected `int | None`')
223
+ if params.get("config", None) is not None:
224
+ if not isinstance(params["config"], list):
225
+ raise StyxValidationError(f'`config` has the wrong type: Received `{type(params.get("config", None))}` expected `list[V5tt2gmwmiConfigParamsDict] | None`')
226
+ for e in params["config"]:
227
+ v_5tt2gmwmi_config_validate(e)
228
+ if params.get("help", False) is None:
229
+ raise StyxValidationError("`help` must not be None")
230
+ if not isinstance(params["help"], bool):
231
+ raise StyxValidationError(f'`help` has the wrong type: Received `{type(params.get("help", False))}` expected `bool`')
232
+ if params.get("version", False) is None:
233
+ raise StyxValidationError("`version` must not be None")
234
+ if not isinstance(params["version"], bool):
235
+ raise StyxValidationError(f'`version` has the wrong type: Received `{type(params.get("version", False))}` expected `bool`')
236
+ if params.get("5tt_in", None) is None:
237
+ raise StyxValidationError("`5tt_in` must not be None")
238
+ if not isinstance(params["5tt_in"], (pathlib.Path, str)):
239
+ raise StyxValidationError(f'`5tt_in` has the wrong type: Received `{type(params.get("5tt_in", None))}` expected `InputPathType`')
240
+ if params.get("mask_out", None) is None:
241
+ raise StyxValidationError("`mask_out` must not be None")
242
+ if not isinstance(params["mask_out"], str):
243
+ raise StyxValidationError(f'`mask_out` has the wrong type: Received `{type(params.get("mask_out", None))}` expected `str`')
244
+
245
+
246
+ def v_5tt2gmwmi_cargs(
247
+ params: V5tt2gmwmiParamsDict,
248
+ execution: Execution,
249
+ ) -> list[str]:
250
+ """
251
+ Build command-line arguments from parameters.
252
+
253
+ Args:
254
+ params: The parameters.
255
+ execution: The execution object for resolving input paths.
256
+ Returns:
257
+ Command-line arguments.
258
+ """
259
+ cargs = []
260
+ cargs.append("5tt2gmwmi")
261
+ if params.get("mask_in", None) is not None:
262
+ cargs.extend([
263
+ "-mask_in",
264
+ execution.input_file(params.get("mask_in", None))
265
+ ])
266
+ if params.get("info", False):
267
+ cargs.append("-info")
268
+ if params.get("quiet", False):
269
+ cargs.append("-quiet")
270
+ if params.get("debug", False):
271
+ cargs.append("-debug")
272
+ if params.get("force", False):
273
+ cargs.append("-force")
274
+ if params.get("nthreads", None) is not None:
275
+ cargs.extend([
276
+ "-nthreads",
277
+ str(params.get("nthreads", None))
278
+ ])
279
+ if params.get("config", None) is not None:
280
+ cargs.extend([a for c in [v_5tt2gmwmi_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
281
+ if params.get("help", False):
282
+ cargs.append("-help")
283
+ if params.get("version", False):
284
+ cargs.append("-version")
285
+ cargs.append(execution.input_file(params.get("5tt_in", None)))
286
+ cargs.append(params.get("mask_out", None))
287
+ return cargs
288
+
289
+
290
+ def v_5tt2gmwmi_outputs(
291
+ params: V5tt2gmwmiParamsDict,
292
+ execution: Execution,
293
+ ) -> V5tt2gmwmiOutputs:
294
+ """
295
+ Build outputs object containing output file paths and possibly stdout/stderr.
296
+
297
+ Args:
298
+ params: The parameters.
299
+ execution: The execution object for resolving input paths.
300
+ Returns:
301
+ Outputs object.
302
+ """
303
+ ret = V5tt2gmwmiOutputs(
304
+ root=execution.output_file("."),
305
+ mask_out=execution.output_file(params.get("mask_out", None)),
306
+ )
307
+ return ret
308
+
309
+
310
+ def v_5tt2gmwmi_execute(
311
+ params: V5tt2gmwmiParamsDict,
312
+ runner: Runner | None = None,
313
+ ) -> V5tt2gmwmiOutputs:
314
+ """
315
+ 5tt2gmwmi
316
+
317
+ Generate a mask image appropriate for seeding streamlines on the grey
318
+ matter-white matter interface.
319
+
320
+
321
+
322
+ References:
323
+
324
+ Smith, R. E.; Tournier, J.-D.; Calamante, F. & Connelly, A.
325
+ Anatomically-constrained tractography:Improved diffusion MRI streamlines
326
+ tractography through effective use of anatomical information. NeuroImage,
327
+ 2012, 62, 1924-1938.
328
+
329
+ Author: MRTrix3 Developers
330
+
331
+ URL: https://www.mrtrix.org/
332
+
333
+ Args:
334
+ params: The parameters.
335
+ runner: Command runner.
336
+ Returns:
337
+ NamedTuple of outputs (described in `V5tt2gmwmiOutputs`).
338
+ """
339
+ v_5tt2gmwmi_validate(params)
340
+ runner = runner or get_global_runner()
341
+ execution = runner.start_execution(V_5TT2GMWMI_METADATA)
342
+ params = execution.params(params)
343
+ cargs = v_5tt2gmwmi_cargs(params, execution)
344
+ ret = v_5tt2gmwmi_outputs(params, execution)
345
+ execution.run(cargs)
346
+ return ret
347
+
348
+
349
+ def v_5tt2gmwmi(
350
+ v_5tt_in: InputPathType,
351
+ mask_out: str,
352
+ mask_in: InputPathType | None = None,
353
+ info: bool = False,
354
+ quiet: bool = False,
355
+ debug: bool = False,
356
+ force: bool = False,
357
+ nthreads: int | None = None,
358
+ config: list[V5tt2gmwmiConfigParamsDict] | None = None,
359
+ help_: bool = False,
360
+ version: bool = False,
361
+ runner: Runner | None = None,
362
+ ) -> V5tt2gmwmiOutputs:
363
+ """
364
+ 5tt2gmwmi
365
+
366
+ Generate a mask image appropriate for seeding streamlines on the grey
367
+ matter-white matter interface.
368
+
369
+
370
+
371
+ References:
372
+
373
+ Smith, R. E.; Tournier, J.-D.; Calamante, F. & Connelly, A.
374
+ Anatomically-constrained tractography:Improved diffusion MRI streamlines
375
+ tractography through effective use of anatomical information. NeuroImage,
376
+ 2012, 62, 1924-1938.
377
+
378
+ Author: MRTrix3 Developers
379
+
380
+ URL: https://www.mrtrix.org/
381
+
382
+ Args:
383
+ v_5tt_in: the input 5TT segmented anatomical image.
384
+ mask_out: the output mask image.
385
+ mask_in: Filter an input mask image according to those voxels that lie\
386
+ upon the grey matter - white matter boundary. If no input mask is\
387
+ provided, the output will be a whole-brain mask image calculated using\
388
+ the anatomical image only.
389
+ info: display information messages.
390
+ quiet: do not display information messages or progress status;\
391
+ alternatively, this can be achieved by setting the MRTRIX_QUIET\
392
+ environment variable to a non-empty string.
393
+ debug: display debugging messages.
394
+ force: force overwrite of output files (caution: using the same file as\
395
+ input and output might cause unexpected behaviour).
396
+ nthreads: use this number of threads in multi-threaded applications\
397
+ (set to 0 to disable multi-threading).
398
+ config: temporarily set the value of an MRtrix config file entry.
399
+ help_: display this information page and exit.
400
+ version: display version information and exit.
401
+ runner: Command runner.
402
+ Returns:
403
+ NamedTuple of outputs (described in `V5tt2gmwmiOutputs`).
404
+ """
405
+ params = v_5tt2gmwmi_params(
406
+ mask_in=mask_in,
407
+ info=info,
408
+ quiet=quiet,
409
+ debug=debug,
410
+ force=force,
411
+ nthreads=nthreads,
412
+ config=config,
413
+ help_=help_,
414
+ version=version,
415
+ v_5tt_in=v_5tt_in,
416
+ mask_out=mask_out,
417
+ )
418
+ return v_5tt2gmwmi_execute(params, runner)
419
+
420
+
421
+ __all__ = [
422
+ "V5tt2gmwmiConfigParamsDict",
423
+ "V5tt2gmwmiConfigParamsDictTagged",
424
+ "V5tt2gmwmiOutputs",
425
+ "V5tt2gmwmiParamsDict",
426
+ "V5tt2gmwmiParamsDictTagged",
427
+ "V_5TT2GMWMI_METADATA",
428
+ "v_5tt2gmwmi",
429
+ "v_5tt2gmwmi_config",
430
+ "v_5tt2gmwmi_execute",
431
+ "v_5tt2gmwmi_params",
432
+ ]