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,385 @@
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
+ RESPONSEMEAN_METADATA = Metadata(
9
+ id="580e677d66de76d497b1d37c93d76dd82a169d45.boutiques",
10
+ name="responsemean",
11
+ package="mrtrix",
12
+ container_image_tag="mrtrix3/mrtrix3:3.0.4",
13
+ )
14
+
15
+
16
+ _ResponsemeanParamsDictNoTag = typing.TypedDict('_ResponsemeanParamsDictNoTag', {
17
+ "input_response": list[InputPathType],
18
+ "output_response": str,
19
+ "legacy": bool,
20
+ "nocleanup": bool,
21
+ "scratch_dir": typing.NotRequired[InputPathType | None],
22
+ "continue_scratch_dir": typing.NotRequired[list[InputPathType] | None],
23
+ "info": bool,
24
+ "quiet": bool,
25
+ "debug": bool,
26
+ "force": bool,
27
+ "nthreads": typing.NotRequired[float | None],
28
+ "config": typing.NotRequired[list[str] | None],
29
+ "help": bool,
30
+ "version": bool,
31
+ })
32
+ ResponsemeanParamsDictTagged = typing.TypedDict('ResponsemeanParamsDictTagged', {
33
+ "@type": typing.Literal["mrtrix/responsemean"],
34
+ "input_response": list[InputPathType],
35
+ "output_response": str,
36
+ "legacy": bool,
37
+ "nocleanup": bool,
38
+ "scratch_dir": typing.NotRequired[InputPathType | None],
39
+ "continue_scratch_dir": typing.NotRequired[list[InputPathType] | None],
40
+ "info": bool,
41
+ "quiet": bool,
42
+ "debug": bool,
43
+ "force": bool,
44
+ "nthreads": typing.NotRequired[float | None],
45
+ "config": typing.NotRequired[list[str] | None],
46
+ "help": bool,
47
+ "version": bool,
48
+ })
49
+ ResponsemeanParamsDict = _ResponsemeanParamsDictNoTag | ResponsemeanParamsDictTagged
50
+
51
+
52
+ class ResponsemeanOutputs(typing.NamedTuple):
53
+ """
54
+ Output object returned when calling `ResponsemeanParamsDict(...)`.
55
+ """
56
+ root: OutputPathType
57
+ """Output root folder. This is the root folder for all outputs."""
58
+ output_response_file: OutputPathType
59
+ """File containing the averaged tissue response function"""
60
+
61
+
62
+ def responsemean_params(
63
+ input_response: list[InputPathType],
64
+ output_response: str,
65
+ legacy: bool = False,
66
+ nocleanup: bool = False,
67
+ scratch_dir: InputPathType | None = None,
68
+ continue_scratch_dir: list[InputPathType] | None = None,
69
+ info: bool = False,
70
+ quiet: bool = False,
71
+ debug: bool = False,
72
+ force: bool = False,
73
+ nthreads: float | None = None,
74
+ config: list[str] | None = None,
75
+ help_: bool = False,
76
+ version: bool = False,
77
+ ) -> ResponsemeanParamsDictTagged:
78
+ """
79
+ Build parameters.
80
+
81
+ Args:
82
+ input_response: Input response functions.
83
+ output_response: Output mean response function.
84
+ legacy: Calculate the mean response function from a set of text files.
85
+ nocleanup: Do not delete intermediate files during script execution,\
86
+ and do not delete scratch directory at script completion.
87
+ scratch_dir: Manually specify the path in which to generate the scratch\
88
+ directory.
89
+ continue_scratch_dir: Continue the script from a previous execution;\
90
+ must provide the scratch directory path.
91
+ info: Display information messages.
92
+ quiet: Do not display information messages or progress status.
93
+ debug: Display debugging messages.
94
+ force: Force overwrite of output files.
95
+ nthreads: Use this number of threads in multi-threaded applications\
96
+ (set to 0 to disable multi-threading).
97
+ config: Temporarily set the value of an MRtrix config file entry.
98
+ help_: Display help information and exit.
99
+ version: Display version information and exit.
100
+ Returns:
101
+ Parameter dictionary
102
+ """
103
+ params = {
104
+ "@type": "mrtrix/responsemean",
105
+ "input_response": input_response,
106
+ "output_response": output_response,
107
+ "legacy": legacy,
108
+ "nocleanup": nocleanup,
109
+ "info": info,
110
+ "quiet": quiet,
111
+ "debug": debug,
112
+ "force": force,
113
+ "help": help_,
114
+ "version": version,
115
+ }
116
+ if scratch_dir is not None:
117
+ params["scratch_dir"] = scratch_dir
118
+ if continue_scratch_dir is not None:
119
+ params["continue_scratch_dir"] = continue_scratch_dir
120
+ if nthreads is not None:
121
+ params["nthreads"] = nthreads
122
+ if config is not None:
123
+ params["config"] = config
124
+ return params
125
+
126
+
127
+ def responsemean_validate(
128
+ params: typing.Any,
129
+ ) -> None:
130
+ """
131
+ Validate parameters. Throws an error if `params` is not a valid
132
+ `ResponsemeanParamsDict` object.
133
+
134
+ Args:
135
+ params: The parameters object to validate.
136
+ """
137
+ if params is None or not isinstance(params, dict):
138
+ raise StyxValidationError(f'Params object has the wrong type \'{type(params)}\'')
139
+ if params.get("input_response", None) is None:
140
+ raise StyxValidationError("`input_response` must not be None")
141
+ if not isinstance(params["input_response"], list):
142
+ raise StyxValidationError(f'`input_response` has the wrong type: Received `{type(params.get("input_response", None))}` expected `list[InputPathType]`')
143
+ for e in params["input_response"]:
144
+ if not isinstance(e, (pathlib.Path, str)):
145
+ raise StyxValidationError(f'`input_response` has the wrong type: Received `{type(params.get("input_response", None))}` expected `list[InputPathType]`')
146
+ if params.get("output_response", None) is None:
147
+ raise StyxValidationError("`output_response` must not be None")
148
+ if not isinstance(params["output_response"], str):
149
+ raise StyxValidationError(f'`output_response` has the wrong type: Received `{type(params.get("output_response", None))}` expected `str`')
150
+ if params.get("legacy", False) is None:
151
+ raise StyxValidationError("`legacy` must not be None")
152
+ if not isinstance(params["legacy"], bool):
153
+ raise StyxValidationError(f'`legacy` has the wrong type: Received `{type(params.get("legacy", False))}` expected `bool`')
154
+ if params.get("nocleanup", False) is None:
155
+ raise StyxValidationError("`nocleanup` must not be None")
156
+ if not isinstance(params["nocleanup"], bool):
157
+ raise StyxValidationError(f'`nocleanup` has the wrong type: Received `{type(params.get("nocleanup", False))}` expected `bool`')
158
+ if params.get("scratch_dir", None) is not None:
159
+ if not isinstance(params["scratch_dir"], (pathlib.Path, str)):
160
+ raise StyxValidationError(f'`scratch_dir` has the wrong type: Received `{type(params.get("scratch_dir", None))}` expected `InputPathType | None`')
161
+ if params.get("continue_scratch_dir", None) is not None:
162
+ if not isinstance(params["continue_scratch_dir"], list):
163
+ raise StyxValidationError(f'`continue_scratch_dir` has the wrong type: Received `{type(params.get("continue_scratch_dir", None))}` expected `list[InputPathType] | None`')
164
+ if len(params["continue_scratch_dir"]) != 2:
165
+ raise StyxValidationError("Parameter `continue_scratch_dir` must contain exactly 2 elements")
166
+ for e in params["continue_scratch_dir"]:
167
+ if not isinstance(e, (pathlib.Path, str)):
168
+ raise StyxValidationError(f'`continue_scratch_dir` has the wrong type: Received `{type(params.get("continue_scratch_dir", None))}` expected `list[InputPathType] | None`')
169
+ if params.get("info", False) is None:
170
+ raise StyxValidationError("`info` must not be None")
171
+ if not isinstance(params["info"], bool):
172
+ raise StyxValidationError(f'`info` has the wrong type: Received `{type(params.get("info", False))}` expected `bool`')
173
+ if params.get("quiet", False) is None:
174
+ raise StyxValidationError("`quiet` must not be None")
175
+ if not isinstance(params["quiet"], bool):
176
+ raise StyxValidationError(f'`quiet` has the wrong type: Received `{type(params.get("quiet", False))}` expected `bool`')
177
+ if params.get("debug", False) is None:
178
+ raise StyxValidationError("`debug` must not be None")
179
+ if not isinstance(params["debug"], bool):
180
+ raise StyxValidationError(f'`debug` has the wrong type: Received `{type(params.get("debug", False))}` expected `bool`')
181
+ if params.get("force", False) is None:
182
+ raise StyxValidationError("`force` must not be None")
183
+ if not isinstance(params["force"], bool):
184
+ raise StyxValidationError(f'`force` has the wrong type: Received `{type(params.get("force", False))}` expected `bool`')
185
+ if params.get("nthreads", None) is not None:
186
+ if not isinstance(params["nthreads"], (float, int)):
187
+ raise StyxValidationError(f'`nthreads` has the wrong type: Received `{type(params.get("nthreads", None))}` expected `float | None`')
188
+ if params.get("config", None) is not None:
189
+ if not isinstance(params["config"], list):
190
+ raise StyxValidationError(f'`config` has the wrong type: Received `{type(params.get("config", None))}` expected `list[str] | None`')
191
+ for e in params["config"]:
192
+ if not isinstance(e, str):
193
+ raise StyxValidationError(f'`config` has the wrong type: Received `{type(params.get("config", None))}` expected `list[str] | None`')
194
+ if params.get("help", False) is None:
195
+ raise StyxValidationError("`help` must not be None")
196
+ if not isinstance(params["help"], bool):
197
+ raise StyxValidationError(f'`help` has the wrong type: Received `{type(params.get("help", False))}` expected `bool`')
198
+ if params.get("version", False) is None:
199
+ raise StyxValidationError("`version` must not be None")
200
+ if not isinstance(params["version"], bool):
201
+ raise StyxValidationError(f'`version` has the wrong type: Received `{type(params.get("version", False))}` expected `bool`')
202
+
203
+
204
+ def responsemean_cargs(
205
+ params: ResponsemeanParamsDict,
206
+ execution: Execution,
207
+ ) -> list[str]:
208
+ """
209
+ Build command-line arguments from parameters.
210
+
211
+ Args:
212
+ params: The parameters.
213
+ execution: The execution object for resolving input paths.
214
+ Returns:
215
+ Command-line arguments.
216
+ """
217
+ cargs = []
218
+ cargs.append("responsemean")
219
+ cargs.extend([execution.input_file(f) for f in params.get("input_response", None)])
220
+ cargs.append(params.get("output_response", None))
221
+ if params.get("legacy", False):
222
+ cargs.append("-legacy")
223
+ if params.get("nocleanup", False):
224
+ cargs.append("-nocleanup")
225
+ if params.get("scratch_dir", None) is not None:
226
+ cargs.extend([
227
+ "-scratch",
228
+ execution.input_file(params.get("scratch_dir", None))
229
+ ])
230
+ if params.get("continue_scratch_dir", None) is not None:
231
+ cargs.extend([
232
+ "-continue",
233
+ *[execution.input_file(f) for f in params.get("continue_scratch_dir", None)]
234
+ ])
235
+ if params.get("info", False):
236
+ cargs.append("-info")
237
+ if params.get("quiet", False):
238
+ cargs.append("-quiet")
239
+ if params.get("debug", False):
240
+ cargs.append("-debug")
241
+ if params.get("force", False):
242
+ cargs.append("-force")
243
+ if params.get("nthreads", None) is not None:
244
+ cargs.extend([
245
+ "-nthreads",
246
+ str(params.get("nthreads", None))
247
+ ])
248
+ if params.get("config", None) is not None:
249
+ cargs.extend([
250
+ "-config",
251
+ *params.get("config", None)
252
+ ])
253
+ if params.get("help", False):
254
+ cargs.append("-help")
255
+ if params.get("version", False):
256
+ cargs.append("-version")
257
+ return cargs
258
+
259
+
260
+ def responsemean_outputs(
261
+ params: ResponsemeanParamsDict,
262
+ execution: Execution,
263
+ ) -> ResponsemeanOutputs:
264
+ """
265
+ Build outputs object containing output file paths and possibly stdout/stderr.
266
+
267
+ Args:
268
+ params: The parameters.
269
+ execution: The execution object for resolving input paths.
270
+ Returns:
271
+ Outputs object.
272
+ """
273
+ ret = ResponsemeanOutputs(
274
+ root=execution.output_file("."),
275
+ output_response_file=execution.output_file(params.get("output_response", None)),
276
+ )
277
+ return ret
278
+
279
+
280
+ def responsemean_execute(
281
+ params: ResponsemeanParamsDict,
282
+ runner: Runner | None = None,
283
+ ) -> ResponsemeanOutputs:
284
+ """
285
+ responsemean
286
+
287
+ Calculate the mean response function from a set of text files.
288
+
289
+ Author: MRTrix3 Developers
290
+
291
+ URL: https://www.mrtrix.org/
292
+
293
+ Args:
294
+ params: The parameters.
295
+ runner: Command runner.
296
+ Returns:
297
+ NamedTuple of outputs (described in `ResponsemeanOutputs`).
298
+ """
299
+ responsemean_validate(params)
300
+ runner = runner or get_global_runner()
301
+ execution = runner.start_execution(RESPONSEMEAN_METADATA)
302
+ params = execution.params(params)
303
+ cargs = responsemean_cargs(params, execution)
304
+ ret = responsemean_outputs(params, execution)
305
+ execution.run(cargs)
306
+ return ret
307
+
308
+
309
+ def responsemean(
310
+ input_response: list[InputPathType],
311
+ output_response: str,
312
+ legacy: bool = False,
313
+ nocleanup: bool = False,
314
+ scratch_dir: InputPathType | None = None,
315
+ continue_scratch_dir: list[InputPathType] | None = None,
316
+ info: bool = False,
317
+ quiet: bool = False,
318
+ debug: bool = False,
319
+ force: bool = False,
320
+ nthreads: float | None = None,
321
+ config: list[str] | None = None,
322
+ help_: bool = False,
323
+ version: bool = False,
324
+ runner: Runner | None = None,
325
+ ) -> ResponsemeanOutputs:
326
+ """
327
+ responsemean
328
+
329
+ Calculate the mean response function from a set of text files.
330
+
331
+ Author: MRTrix3 Developers
332
+
333
+ URL: https://www.mrtrix.org/
334
+
335
+ Args:
336
+ input_response: Input response functions.
337
+ output_response: Output mean response function.
338
+ legacy: Calculate the mean response function from a set of text files.
339
+ nocleanup: Do not delete intermediate files during script execution,\
340
+ and do not delete scratch directory at script completion.
341
+ scratch_dir: Manually specify the path in which to generate the scratch\
342
+ directory.
343
+ continue_scratch_dir: Continue the script from a previous execution;\
344
+ must provide the scratch directory path.
345
+ info: Display information messages.
346
+ quiet: Do not display information messages or progress status.
347
+ debug: Display debugging messages.
348
+ force: Force overwrite of output files.
349
+ nthreads: Use this number of threads in multi-threaded applications\
350
+ (set to 0 to disable multi-threading).
351
+ config: Temporarily set the value of an MRtrix config file entry.
352
+ help_: Display help information and exit.
353
+ version: Display version information and exit.
354
+ runner: Command runner.
355
+ Returns:
356
+ NamedTuple of outputs (described in `ResponsemeanOutputs`).
357
+ """
358
+ params = responsemean_params(
359
+ input_response=input_response,
360
+ output_response=output_response,
361
+ legacy=legacy,
362
+ nocleanup=nocleanup,
363
+ scratch_dir=scratch_dir,
364
+ continue_scratch_dir=continue_scratch_dir,
365
+ info=info,
366
+ quiet=quiet,
367
+ debug=debug,
368
+ force=force,
369
+ nthreads=nthreads,
370
+ config=config,
371
+ help_=help_,
372
+ version=version,
373
+ )
374
+ return responsemean_execute(params, runner)
375
+
376
+
377
+ __all__ = [
378
+ "RESPONSEMEAN_METADATA",
379
+ "ResponsemeanOutputs",
380
+ "ResponsemeanParamsDict",
381
+ "ResponsemeanParamsDictTagged",
382
+ "responsemean",
383
+ "responsemean_execute",
384
+ "responsemean_params",
385
+ ]