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