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,455 @@
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
+ FIXELCORRESPONDENCE_METADATA = Metadata(
9
+ id="0cdb6d5a0f6fc504a73335d26a91aed6bead44ba.boutiques",
10
+ name="fixelcorrespondence",
11
+ package="mrtrix",
12
+ container_image_tag="mrtrix3/mrtrix3:3.0.4",
13
+ )
14
+
15
+
16
+ _FixelcorrespondenceConfigParamsDictNoTag = typing.TypedDict('_FixelcorrespondenceConfigParamsDictNoTag', {
17
+ "key": str,
18
+ "value": str,
19
+ })
20
+ FixelcorrespondenceConfigParamsDictTagged = typing.TypedDict('FixelcorrespondenceConfigParamsDictTagged', {
21
+ "@type": typing.Literal["config"],
22
+ "key": str,
23
+ "value": str,
24
+ })
25
+ FixelcorrespondenceConfigParamsDict = _FixelcorrespondenceConfigParamsDictNoTag | FixelcorrespondenceConfigParamsDictTagged
26
+
27
+
28
+ _FixelcorrespondenceParamsDictNoTag = typing.TypedDict('_FixelcorrespondenceParamsDictNoTag', {
29
+ "angle": typing.NotRequired[float | None],
30
+ "info": bool,
31
+ "quiet": bool,
32
+ "debug": bool,
33
+ "force": bool,
34
+ "nthreads": typing.NotRequired[int | None],
35
+ "config": typing.NotRequired[list[FixelcorrespondenceConfigParamsDict] | None],
36
+ "help": bool,
37
+ "version": bool,
38
+ "subject_data": InputPathType,
39
+ "template_directory": InputPathType,
40
+ "output_directory": str,
41
+ "output_data": str,
42
+ })
43
+ FixelcorrespondenceParamsDictTagged = typing.TypedDict('FixelcorrespondenceParamsDictTagged', {
44
+ "@type": typing.Literal["mrtrix/fixelcorrespondence"],
45
+ "angle": typing.NotRequired[float | None],
46
+ "info": bool,
47
+ "quiet": bool,
48
+ "debug": bool,
49
+ "force": bool,
50
+ "nthreads": typing.NotRequired[int | None],
51
+ "config": typing.NotRequired[list[FixelcorrespondenceConfigParamsDict] | None],
52
+ "help": bool,
53
+ "version": bool,
54
+ "subject_data": InputPathType,
55
+ "template_directory": InputPathType,
56
+ "output_directory": str,
57
+ "output_data": str,
58
+ })
59
+ FixelcorrespondenceParamsDict = _FixelcorrespondenceParamsDictNoTag | FixelcorrespondenceParamsDictTagged
60
+
61
+
62
+ def fixelcorrespondence_config(
63
+ key: str,
64
+ value: str,
65
+ ) -> FixelcorrespondenceConfigParamsDictTagged:
66
+ """
67
+ Build parameters.
68
+
69
+ Args:
70
+ key: temporarily set the value of an MRtrix config file entry.
71
+ value: temporarily set the value of an MRtrix config file entry.
72
+ Returns:
73
+ Parameter dictionary
74
+ """
75
+ params = {
76
+ "@type": "config",
77
+ "key": key,
78
+ "value": value,
79
+ }
80
+ return params
81
+
82
+
83
+ def fixelcorrespondence_config_validate(
84
+ params: typing.Any,
85
+ ) -> None:
86
+ """
87
+ Validate parameters. Throws an error if `params` is not a valid
88
+ `FixelcorrespondenceConfigParamsDict` object.
89
+
90
+ Args:
91
+ params: The parameters object to validate.
92
+ """
93
+ if params is None or not isinstance(params, dict):
94
+ raise StyxValidationError(f'Params object has the wrong type \'{type(params)}\'')
95
+ if params.get("key", None) is None:
96
+ raise StyxValidationError("`key` must not be None")
97
+ if not isinstance(params["key"], str):
98
+ raise StyxValidationError(f'`key` has the wrong type: Received `{type(params.get("key", None))}` expected `str`')
99
+ if params.get("value", None) is None:
100
+ raise StyxValidationError("`value` must not be None")
101
+ if not isinstance(params["value"], str):
102
+ raise StyxValidationError(f'`value` has the wrong type: Received `{type(params.get("value", None))}` expected `str`')
103
+
104
+
105
+ def fixelcorrespondence_config_cargs(
106
+ params: FixelcorrespondenceConfigParamsDict,
107
+ execution: Execution,
108
+ ) -> list[str]:
109
+ """
110
+ Build command-line arguments from parameters.
111
+
112
+ Args:
113
+ params: The parameters.
114
+ execution: The execution object for resolving input paths.
115
+ Returns:
116
+ Command-line arguments.
117
+ """
118
+ cargs = []
119
+ cargs.append("-config")
120
+ cargs.append(params.get("key", None))
121
+ cargs.append(params.get("value", None))
122
+ return cargs
123
+
124
+
125
+ class FixelcorrespondenceOutputs(typing.NamedTuple):
126
+ """
127
+ Output object returned when calling `FixelcorrespondenceParamsDict(...)`.
128
+ """
129
+ root: OutputPathType
130
+ """Output root folder. This is the root folder for all outputs."""
131
+
132
+
133
+ def fixelcorrespondence_params(
134
+ subject_data: InputPathType,
135
+ template_directory: InputPathType,
136
+ output_directory: str,
137
+ output_data: str,
138
+ angle: float | None = None,
139
+ info: bool = False,
140
+ quiet: bool = False,
141
+ debug: bool = False,
142
+ force: bool = False,
143
+ nthreads: int | None = None,
144
+ config: list[FixelcorrespondenceConfigParamsDict] | None = None,
145
+ help_: bool = False,
146
+ version: bool = False,
147
+ ) -> FixelcorrespondenceParamsDictTagged:
148
+ """
149
+ Build parameters.
150
+
151
+ Args:
152
+ subject_data: the input subject fixel data file. This should be a file\
153
+ inside the fixel directory.
154
+ template_directory: the input template fixel directory.
155
+ output_directory: the fixel directory where the output file will be\
156
+ written.
157
+ output_data: the name of the output fixel data file. This will be\
158
+ placed in the output fixel directory.
159
+ angle: the max angle threshold for computing inter-subject fixel\
160
+ correspondence (Default: 45 degrees).
161
+ info: display information messages.
162
+ quiet: do not display information messages or progress status;\
163
+ alternatively, this can be achieved by setting the MRTRIX_QUIET\
164
+ environment variable to a non-empty string.
165
+ debug: display debugging messages.
166
+ force: force overwrite of output files (caution: using the same file as\
167
+ input and output might cause unexpected behaviour).
168
+ nthreads: use this number of threads in multi-threaded applications\
169
+ (set to 0 to disable multi-threading).
170
+ config: temporarily set the value of an MRtrix config file entry.
171
+ help_: display this information page and exit.
172
+ version: display version information and exit.
173
+ Returns:
174
+ Parameter dictionary
175
+ """
176
+ params = {
177
+ "@type": "mrtrix/fixelcorrespondence",
178
+ "info": info,
179
+ "quiet": quiet,
180
+ "debug": debug,
181
+ "force": force,
182
+ "help": help_,
183
+ "version": version,
184
+ "subject_data": subject_data,
185
+ "template_directory": template_directory,
186
+ "output_directory": output_directory,
187
+ "output_data": output_data,
188
+ }
189
+ if angle is not None:
190
+ params["angle"] = angle
191
+ if nthreads is not None:
192
+ params["nthreads"] = nthreads
193
+ if config is not None:
194
+ params["config"] = config
195
+ return params
196
+
197
+
198
+ def fixelcorrespondence_validate(
199
+ params: typing.Any,
200
+ ) -> None:
201
+ """
202
+ Validate parameters. Throws an error if `params` is not a valid
203
+ `FixelcorrespondenceParamsDict` object.
204
+
205
+ Args:
206
+ params: The parameters object to validate.
207
+ """
208
+ if params is None or not isinstance(params, dict):
209
+ raise StyxValidationError(f'Params object has the wrong type \'{type(params)}\'')
210
+ if params.get("angle", None) is not None:
211
+ if not isinstance(params["angle"], (float, int)):
212
+ raise StyxValidationError(f'`angle` has the wrong type: Received `{type(params.get("angle", None))}` expected `float | None`')
213
+ if params.get("info", False) is None:
214
+ raise StyxValidationError("`info` must not be None")
215
+ if not isinstance(params["info"], bool):
216
+ raise StyxValidationError(f'`info` has the wrong type: Received `{type(params.get("info", False))}` expected `bool`')
217
+ if params.get("quiet", False) is None:
218
+ raise StyxValidationError("`quiet` must not be None")
219
+ if not isinstance(params["quiet"], bool):
220
+ raise StyxValidationError(f'`quiet` has the wrong type: Received `{type(params.get("quiet", False))}` expected `bool`')
221
+ if params.get("debug", False) is None:
222
+ raise StyxValidationError("`debug` must not be None")
223
+ if not isinstance(params["debug"], bool):
224
+ raise StyxValidationError(f'`debug` has the wrong type: Received `{type(params.get("debug", False))}` expected `bool`')
225
+ if params.get("force", False) is None:
226
+ raise StyxValidationError("`force` must not be None")
227
+ if not isinstance(params["force"], bool):
228
+ raise StyxValidationError(f'`force` has the wrong type: Received `{type(params.get("force", False))}` expected `bool`')
229
+ if params.get("nthreads", None) is not None:
230
+ if not isinstance(params["nthreads"], int):
231
+ raise StyxValidationError(f'`nthreads` has the wrong type: Received `{type(params.get("nthreads", None))}` expected `int | None`')
232
+ if params.get("config", None) is not None:
233
+ if not isinstance(params["config"], list):
234
+ raise StyxValidationError(f'`config` has the wrong type: Received `{type(params.get("config", None))}` expected `list[FixelcorrespondenceConfigParamsDict] | None`')
235
+ for e in params["config"]:
236
+ fixelcorrespondence_config_validate(e)
237
+ if params.get("help", False) is None:
238
+ raise StyxValidationError("`help` must not be None")
239
+ if not isinstance(params["help"], bool):
240
+ raise StyxValidationError(f'`help` has the wrong type: Received `{type(params.get("help", False))}` expected `bool`')
241
+ if params.get("version", False) is None:
242
+ raise StyxValidationError("`version` must not be None")
243
+ if not isinstance(params["version"], bool):
244
+ raise StyxValidationError(f'`version` has the wrong type: Received `{type(params.get("version", False))}` expected `bool`')
245
+ if params.get("subject_data", None) is None:
246
+ raise StyxValidationError("`subject_data` must not be None")
247
+ if not isinstance(params["subject_data"], (pathlib.Path, str)):
248
+ raise StyxValidationError(f'`subject_data` has the wrong type: Received `{type(params.get("subject_data", None))}` expected `InputPathType`')
249
+ if params.get("template_directory", None) is None:
250
+ raise StyxValidationError("`template_directory` must not be None")
251
+ if not isinstance(params["template_directory"], (pathlib.Path, str)):
252
+ raise StyxValidationError(f'`template_directory` has the wrong type: Received `{type(params.get("template_directory", None))}` expected `InputPathType`')
253
+ if params.get("output_directory", None) is None:
254
+ raise StyxValidationError("`output_directory` must not be None")
255
+ if not isinstance(params["output_directory"], str):
256
+ raise StyxValidationError(f'`output_directory` has the wrong type: Received `{type(params.get("output_directory", None))}` expected `str`')
257
+ if params.get("output_data", None) is None:
258
+ raise StyxValidationError("`output_data` must not be None")
259
+ if not isinstance(params["output_data"], str):
260
+ raise StyxValidationError(f'`output_data` has the wrong type: Received `{type(params.get("output_data", None))}` expected `str`')
261
+
262
+
263
+ def fixelcorrespondence_cargs(
264
+ params: FixelcorrespondenceParamsDict,
265
+ execution: Execution,
266
+ ) -> list[str]:
267
+ """
268
+ Build command-line arguments from parameters.
269
+
270
+ Args:
271
+ params: The parameters.
272
+ execution: The execution object for resolving input paths.
273
+ Returns:
274
+ Command-line arguments.
275
+ """
276
+ cargs = []
277
+ cargs.append("fixelcorrespondence")
278
+ if params.get("angle", None) is not None:
279
+ cargs.extend([
280
+ "-angle",
281
+ str(params.get("angle", None))
282
+ ])
283
+ if params.get("info", False):
284
+ cargs.append("-info")
285
+ if params.get("quiet", False):
286
+ cargs.append("-quiet")
287
+ if params.get("debug", False):
288
+ cargs.append("-debug")
289
+ if params.get("force", False):
290
+ cargs.append("-force")
291
+ if params.get("nthreads", None) is not None:
292
+ cargs.extend([
293
+ "-nthreads",
294
+ str(params.get("nthreads", None))
295
+ ])
296
+ if params.get("config", None) is not None:
297
+ cargs.extend([a for c in [fixelcorrespondence_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
298
+ if params.get("help", False):
299
+ cargs.append("-help")
300
+ if params.get("version", False):
301
+ cargs.append("-version")
302
+ cargs.append(execution.input_file(params.get("subject_data", None)))
303
+ cargs.append(execution.input_file(params.get("template_directory", None)))
304
+ cargs.append(params.get("output_directory", None))
305
+ cargs.append(params.get("output_data", None))
306
+ return cargs
307
+
308
+
309
+ def fixelcorrespondence_outputs(
310
+ params: FixelcorrespondenceParamsDict,
311
+ execution: Execution,
312
+ ) -> FixelcorrespondenceOutputs:
313
+ """
314
+ Build outputs object containing output file paths and possibly stdout/stderr.
315
+
316
+ Args:
317
+ params: The parameters.
318
+ execution: The execution object for resolving input paths.
319
+ Returns:
320
+ Outputs object.
321
+ """
322
+ ret = FixelcorrespondenceOutputs(
323
+ root=execution.output_file("."),
324
+ )
325
+ return ret
326
+
327
+
328
+ def fixelcorrespondence_execute(
329
+ params: FixelcorrespondenceParamsDict,
330
+ runner: Runner | None = None,
331
+ ) -> FixelcorrespondenceOutputs:
332
+ """
333
+ fixelcorrespondence
334
+
335
+ Obtain fixel-fixel correpondence between a subject fixel image and a
336
+ template fixel mask.
337
+
338
+ It is assumed that the subject image has already been spatially normalised
339
+ and is aligned with the template. The output fixel image will have the same
340
+ fixels (and directions) of the template.
341
+
342
+ References:
343
+
344
+ .
345
+
346
+ Author: MRTrix3 Developers
347
+
348
+ URL: https://www.mrtrix.org/
349
+
350
+ Args:
351
+ params: The parameters.
352
+ runner: Command runner.
353
+ Returns:
354
+ NamedTuple of outputs (described in `FixelcorrespondenceOutputs`).
355
+ """
356
+ fixelcorrespondence_validate(params)
357
+ runner = runner or get_global_runner()
358
+ execution = runner.start_execution(FIXELCORRESPONDENCE_METADATA)
359
+ params = execution.params(params)
360
+ cargs = fixelcorrespondence_cargs(params, execution)
361
+ ret = fixelcorrespondence_outputs(params, execution)
362
+ execution.run(cargs)
363
+ return ret
364
+
365
+
366
+ def fixelcorrespondence(
367
+ subject_data: InputPathType,
368
+ template_directory: InputPathType,
369
+ output_directory: str,
370
+ output_data: str,
371
+ angle: float | None = None,
372
+ info: bool = False,
373
+ quiet: bool = False,
374
+ debug: bool = False,
375
+ force: bool = False,
376
+ nthreads: int | None = None,
377
+ config: list[FixelcorrespondenceConfigParamsDict] | None = None,
378
+ help_: bool = False,
379
+ version: bool = False,
380
+ runner: Runner | None = None,
381
+ ) -> FixelcorrespondenceOutputs:
382
+ """
383
+ fixelcorrespondence
384
+
385
+ Obtain fixel-fixel correpondence between a subject fixel image and a
386
+ template fixel mask.
387
+
388
+ It is assumed that the subject image has already been spatially normalised
389
+ and is aligned with the template. The output fixel image will have the same
390
+ fixels (and directions) of the template.
391
+
392
+ References:
393
+
394
+ .
395
+
396
+ Author: MRTrix3 Developers
397
+
398
+ URL: https://www.mrtrix.org/
399
+
400
+ Args:
401
+ subject_data: the input subject fixel data file. This should be a file\
402
+ inside the fixel directory.
403
+ template_directory: the input template fixel directory.
404
+ output_directory: the fixel directory where the output file will be\
405
+ written.
406
+ output_data: the name of the output fixel data file. This will be\
407
+ placed in the output fixel directory.
408
+ angle: the max angle threshold for computing inter-subject fixel\
409
+ correspondence (Default: 45 degrees).
410
+ info: display information messages.
411
+ quiet: do not display information messages or progress status;\
412
+ alternatively, this can be achieved by setting the MRTRIX_QUIET\
413
+ environment variable to a non-empty string.
414
+ debug: display debugging messages.
415
+ force: force overwrite of output files (caution: using the same file as\
416
+ input and output might cause unexpected behaviour).
417
+ nthreads: use this number of threads in multi-threaded applications\
418
+ (set to 0 to disable multi-threading).
419
+ config: temporarily set the value of an MRtrix config file entry.
420
+ help_: display this information page and exit.
421
+ version: display version information and exit.
422
+ runner: Command runner.
423
+ Returns:
424
+ NamedTuple of outputs (described in `FixelcorrespondenceOutputs`).
425
+ """
426
+ params = fixelcorrespondence_params(
427
+ angle=angle,
428
+ info=info,
429
+ quiet=quiet,
430
+ debug=debug,
431
+ force=force,
432
+ nthreads=nthreads,
433
+ config=config,
434
+ help_=help_,
435
+ version=version,
436
+ subject_data=subject_data,
437
+ template_directory=template_directory,
438
+ output_directory=output_directory,
439
+ output_data=output_data,
440
+ )
441
+ return fixelcorrespondence_execute(params, runner)
442
+
443
+
444
+ __all__ = [
445
+ "FIXELCORRESPONDENCE_METADATA",
446
+ "FixelcorrespondenceConfigParamsDict",
447
+ "FixelcorrespondenceConfigParamsDictTagged",
448
+ "FixelcorrespondenceOutputs",
449
+ "FixelcorrespondenceParamsDict",
450
+ "FixelcorrespondenceParamsDictTagged",
451
+ "fixelcorrespondence",
452
+ "fixelcorrespondence_config",
453
+ "fixelcorrespondence_execute",
454
+ "fixelcorrespondence_params",
455
+ ]