niwrap-mrtrix 0.5.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.

Potentially problematic release.


This version of niwrap-mrtrix might be problematic. Click here for more details.

Files changed (119) hide show
  1. niwrap_mrtrix/mrtrix/__init__.py +130 -0
  2. niwrap_mrtrix/mrtrix/afdconnectivity.py +445 -0
  3. niwrap_mrtrix/mrtrix/amp2response.py +453 -0
  4. niwrap_mrtrix/mrtrix/amp2sh.py +656 -0
  5. niwrap_mrtrix/mrtrix/connectome2tck.py +470 -0
  6. niwrap_mrtrix/mrtrix/connectomeedit.py +338 -0
  7. niwrap_mrtrix/mrtrix/connectomestats.py +767 -0
  8. niwrap_mrtrix/mrtrix/dcmedit.py +440 -0
  9. niwrap_mrtrix/mrtrix/dcminfo.py +416 -0
  10. niwrap_mrtrix/mrtrix/dirflip.py +362 -0
  11. niwrap_mrtrix/mrtrix/dirgen.py +423 -0
  12. niwrap_mrtrix/mrtrix/dirmerge.py +365 -0
  13. niwrap_mrtrix/mrtrix/dirorder.py +347 -0
  14. niwrap_mrtrix/mrtrix/dirsplit.py +358 -0
  15. niwrap_mrtrix/mrtrix/dirstat.py +530 -0
  16. niwrap_mrtrix/mrtrix/dwi2adc.py +428 -0
  17. niwrap_mrtrix/mrtrix/dwi2fod.py +879 -0
  18. niwrap_mrtrix/mrtrix/dwi2mask.py +463 -0
  19. niwrap_mrtrix/mrtrix/dwi2response.py +1295 -0
  20. niwrap_mrtrix/mrtrix/dwi2tensor.py +587 -0
  21. niwrap_mrtrix/mrtrix/dwibiascorrect.py +467 -0
  22. niwrap_mrtrix/mrtrix/dwidenoise.py +478 -0
  23. niwrap_mrtrix/mrtrix/dwiextract.py +825 -0
  24. niwrap_mrtrix/mrtrix/dwigradcheck.py +534 -0
  25. niwrap_mrtrix/mrtrix/fixel2peaks.py +452 -0
  26. niwrap_mrtrix/mrtrix/fixel2sh.py +357 -0
  27. niwrap_mrtrix/mrtrix/fixel2tsf.py +357 -0
  28. niwrap_mrtrix/mrtrix/fixel2voxel.py +437 -0
  29. niwrap_mrtrix/mrtrix/fixelcfestats.py +893 -0
  30. niwrap_mrtrix/mrtrix/fixelconnectivity.py +391 -0
  31. niwrap_mrtrix/mrtrix/fixelconvert.py +588 -0
  32. niwrap_mrtrix/mrtrix/fixelcorrespondence.py +371 -0
  33. niwrap_mrtrix/mrtrix/fixelcrop.py +348 -0
  34. niwrap_mrtrix/mrtrix/fixelfilter.py +616 -0
  35. niwrap_mrtrix/mrtrix/fixelreorient.py +361 -0
  36. niwrap_mrtrix/mrtrix/fod2dec.py +469 -0
  37. niwrap_mrtrix/mrtrix/fod2fixel.py +530 -0
  38. niwrap_mrtrix/mrtrix/label2colour.py +351 -0
  39. niwrap_mrtrix/mrtrix/label2mesh.py +343 -0
  40. niwrap_mrtrix/mrtrix/labelconvert.py +377 -0
  41. niwrap_mrtrix/mrtrix/labelstats.py +344 -0
  42. niwrap_mrtrix/mrtrix/maskdump.py +336 -0
  43. niwrap_mrtrix/mrtrix/maskfilter.py +537 -0
  44. niwrap_mrtrix/mrtrix/mesh2voxel.py +348 -0
  45. niwrap_mrtrix/mrtrix/meshconvert.py +410 -0
  46. niwrap_mrtrix/mrtrix/meshfilter.py +370 -0
  47. niwrap_mrtrix/mrtrix/mraverageheader.py +396 -0
  48. niwrap_mrtrix/mrtrix/mrcalc.py +3047 -0
  49. niwrap_mrtrix/mrtrix/mrcat.py +382 -0
  50. niwrap_mrtrix/mrtrix/mrcentroid.py +344 -0
  51. niwrap_mrtrix/mrtrix/mrcheckerboardmask.py +363 -0
  52. niwrap_mrtrix/mrtrix/mrclusterstats.py +736 -0
  53. niwrap_mrtrix/mrtrix/mrcolour.py +401 -0
  54. niwrap_mrtrix/mrtrix/mrconvert.py +1423 -0
  55. niwrap_mrtrix/mrtrix/mrdegibbs.py +443 -0
  56. niwrap_mrtrix/mrtrix/mrdump.py +351 -0
  57. niwrap_mrtrix/mrtrix/mredit.py +546 -0
  58. niwrap_mrtrix/mrtrix/mrfilter.py +716 -0
  59. niwrap_mrtrix/mrtrix/mrgrid.py +819 -0
  60. niwrap_mrtrix/mrtrix/mrhistmatch.py +403 -0
  61. niwrap_mrtrix/mrtrix/mrhistogram.py +393 -0
  62. niwrap_mrtrix/mrtrix/mrinfo.py +990 -0
  63. niwrap_mrtrix/mrtrix/mrmath.py +413 -0
  64. niwrap_mrtrix/mrtrix/mrmetric.py +425 -0
  65. niwrap_mrtrix/mrtrix/mrregister.py +1676 -0
  66. niwrap_mrtrix/mrtrix/mrstats.py +427 -0
  67. niwrap_mrtrix/mrtrix/mrthreshold.py +549 -0
  68. niwrap_mrtrix/mrtrix/mrtransform.py +1061 -0
  69. niwrap_mrtrix/mrtrix/mtnormalise.py +596 -0
  70. niwrap_mrtrix/mrtrix/peaks2amp.py +334 -0
  71. niwrap_mrtrix/mrtrix/peaks2fixel.py +349 -0
  72. niwrap_mrtrix/mrtrix/responsemean.py +316 -0
  73. niwrap_mrtrix/mrtrix/sh2amp.py +640 -0
  74. niwrap_mrtrix/mrtrix/sh2peaks.py +505 -0
  75. niwrap_mrtrix/mrtrix/sh2power.py +353 -0
  76. niwrap_mrtrix/mrtrix/sh2response.py +394 -0
  77. niwrap_mrtrix/mrtrix/shbasis.py +373 -0
  78. niwrap_mrtrix/mrtrix/shconv.py +498 -0
  79. niwrap_mrtrix/mrtrix/tck2connectome.py +580 -0
  80. niwrap_mrtrix/mrtrix/tck2fixel.py +363 -0
  81. niwrap_mrtrix/mrtrix/tckconvert.py +580 -0
  82. niwrap_mrtrix/mrtrix/tckdfc.py +551 -0
  83. niwrap_mrtrix/mrtrix/tckedit.py +1003 -0
  84. niwrap_mrtrix/mrtrix/tckgen.py +1983 -0
  85. niwrap_mrtrix/mrtrix/tckglobal.py +758 -0
  86. niwrap_mrtrix/mrtrix/tckinfo.py +329 -0
  87. niwrap_mrtrix/mrtrix/tckmap.py +772 -0
  88. niwrap_mrtrix/mrtrix/tckresample.py +580 -0
  89. niwrap_mrtrix/mrtrix/tcksample.py +404 -0
  90. niwrap_mrtrix/mrtrix/tcksift.py +592 -0
  91. niwrap_mrtrix/mrtrix/tcksift2.py +730 -0
  92. niwrap_mrtrix/mrtrix/tckstats.py +441 -0
  93. niwrap_mrtrix/mrtrix/tcktransform.py +340 -0
  94. niwrap_mrtrix/mrtrix/tensor2metric.py +544 -0
  95. niwrap_mrtrix/mrtrix/transformcalc.py +344 -0
  96. niwrap_mrtrix/mrtrix/transformcompose.py +465 -0
  97. niwrap_mrtrix/mrtrix/transformconvert.py +346 -0
  98. niwrap_mrtrix/mrtrix/tsfdivide.py +340 -0
  99. niwrap_mrtrix/mrtrix/tsfinfo.py +344 -0
  100. niwrap_mrtrix/mrtrix/tsfmult.py +340 -0
  101. niwrap_mrtrix/mrtrix/tsfsmooth.py +347 -0
  102. niwrap_mrtrix/mrtrix/tsfthreshold.py +349 -0
  103. niwrap_mrtrix/mrtrix/tsfvalidate.py +328 -0
  104. niwrap_mrtrix/mrtrix/v_5tt2gmwmi.py +359 -0
  105. niwrap_mrtrix/mrtrix/v_5tt2vis.py +412 -0
  106. niwrap_mrtrix/mrtrix/v_5ttcheck.py +337 -0
  107. niwrap_mrtrix/mrtrix/v_5ttedit.py +420 -0
  108. niwrap_mrtrix/mrtrix/v_5ttgen.py +816 -0
  109. niwrap_mrtrix/mrtrix/vectorstats.py +585 -0
  110. niwrap_mrtrix/mrtrix/voxel2fixel.py +350 -0
  111. niwrap_mrtrix/mrtrix/voxel2mesh.py +376 -0
  112. niwrap_mrtrix/mrtrix/warp2metric.py +449 -0
  113. niwrap_mrtrix/mrtrix/warpconvert.py +411 -0
  114. niwrap_mrtrix/mrtrix/warpcorrect.py +368 -0
  115. niwrap_mrtrix/mrtrix/warpinit.py +356 -0
  116. niwrap_mrtrix/mrtrix/warpinvert.py +370 -0
  117. niwrap_mrtrix-0.5.0.dist-info/METADATA +8 -0
  118. niwrap_mrtrix-0.5.0.dist-info/RECORD +119 -0
  119. niwrap_mrtrix-0.5.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,588 @@
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
+ FIXELCONVERT_METADATA = Metadata(
9
+ id="61e22f7f494e1cc9061508aaffc5a41839e5a5fa.boutiques",
10
+ name="fixelconvert",
11
+ package="mrtrix",
12
+ container_image_tag="mrtrix3/mrtrix3:3.0.4",
13
+ )
14
+
15
+
16
+ FixelconvertConfigParameters = typing.TypedDict('FixelconvertConfigParameters', {
17
+ "__STYX_TYPE__": typing.Literal["config"],
18
+ "key": str,
19
+ "value": str,
20
+ })
21
+
22
+
23
+ FixelconvertVariousStringParameters = typing.TypedDict('FixelconvertVariousStringParameters', {
24
+ "__STYX_TYPE__": typing.Literal["VariousString"],
25
+ "obj": str,
26
+ })
27
+
28
+
29
+ FixelconvertVariousFileParameters = typing.TypedDict('FixelconvertVariousFileParameters', {
30
+ "__STYX_TYPE__": typing.Literal["VariousFile"],
31
+ "obj": InputPathType,
32
+ })
33
+
34
+
35
+ FixelconvertVariousString1Parameters = typing.TypedDict('FixelconvertVariousString1Parameters', {
36
+ "__STYX_TYPE__": typing.Literal["VariousString_1"],
37
+ "obj": str,
38
+ })
39
+
40
+
41
+ FixelconvertVariousFile1Parameters = typing.TypedDict('FixelconvertVariousFile1Parameters', {
42
+ "__STYX_TYPE__": typing.Literal["VariousFile_1"],
43
+ "obj": InputPathType,
44
+ })
45
+
46
+
47
+ FixelconvertParameters = typing.TypedDict('FixelconvertParameters', {
48
+ "__STYX_TYPE__": typing.Literal["fixelconvert"],
49
+ "name": typing.NotRequired[str | None],
50
+ "nii": bool,
51
+ "out_size": bool,
52
+ "template": typing.NotRequired[InputPathType | None],
53
+ "value": typing.NotRequired[InputPathType | None],
54
+ "in_size": typing.NotRequired[InputPathType | None],
55
+ "info": bool,
56
+ "quiet": bool,
57
+ "debug": bool,
58
+ "force": bool,
59
+ "nthreads": typing.NotRequired[int | None],
60
+ "config": typing.NotRequired[list[FixelconvertConfigParameters] | None],
61
+ "help": bool,
62
+ "version": bool,
63
+ "fixel_in": typing.Union[FixelconvertVariousStringParameters, FixelconvertVariousFileParameters],
64
+ "fixel_out": typing.Union[FixelconvertVariousString1Parameters, FixelconvertVariousFile1Parameters],
65
+ })
66
+
67
+
68
+ def dyn_cargs(
69
+ t: str,
70
+ ) -> typing.Any:
71
+ """
72
+ Get build cargs function by command type.
73
+
74
+ Args:
75
+ t: Command type.
76
+ Returns:
77
+ Build cargs function.
78
+ """
79
+ return {
80
+ "fixelconvert": fixelconvert_cargs,
81
+ "config": fixelconvert_config_cargs,
82
+ "VariousString": fixelconvert_various_string_cargs,
83
+ "VariousFile": fixelconvert_various_file_cargs,
84
+ "VariousString_1": fixelconvert_various_string_1_cargs,
85
+ "VariousFile_1": fixelconvert_various_file_1_cargs,
86
+ }.get(t)
87
+
88
+
89
+ def dyn_outputs(
90
+ t: str,
91
+ ) -> typing.Any:
92
+ """
93
+ Get build outputs function by command type.
94
+
95
+ Args:
96
+ t: Command type.
97
+ Returns:
98
+ Build outputs function.
99
+ """
100
+ return {
101
+ }.get(t)
102
+
103
+
104
+ def fixelconvert_config_params(
105
+ key: str,
106
+ value: str,
107
+ ) -> FixelconvertConfigParameters:
108
+ """
109
+ Build parameters.
110
+
111
+ Args:
112
+ key: temporarily set the value of an MRtrix config file entry.
113
+ value: temporarily set the value of an MRtrix config file entry.
114
+ Returns:
115
+ Parameter dictionary
116
+ """
117
+ params = {
118
+ "__STYXTYPE__": "config",
119
+ "key": key,
120
+ "value": value,
121
+ }
122
+ return params
123
+
124
+
125
+ def fixelconvert_config_cargs(
126
+ params: FixelconvertConfigParameters,
127
+ execution: Execution,
128
+ ) -> list[str]:
129
+ """
130
+ Build command-line arguments from parameters.
131
+
132
+ Args:
133
+ params: The parameters.
134
+ execution: The execution object for resolving input paths.
135
+ Returns:
136
+ Command-line arguments.
137
+ """
138
+ cargs = []
139
+ cargs.append("-config")
140
+ cargs.append(params.get("key"))
141
+ cargs.append(params.get("value"))
142
+ return cargs
143
+
144
+
145
+ def fixelconvert_various_string_params(
146
+ obj: str,
147
+ ) -> FixelconvertVariousStringParameters:
148
+ """
149
+ Build parameters.
150
+
151
+ Args:
152
+ obj: String object.
153
+ Returns:
154
+ Parameter dictionary
155
+ """
156
+ params = {
157
+ "__STYXTYPE__": "VariousString",
158
+ "obj": obj,
159
+ }
160
+ return params
161
+
162
+
163
+ def fixelconvert_various_string_cargs(
164
+ params: FixelconvertVariousStringParameters,
165
+ execution: Execution,
166
+ ) -> list[str]:
167
+ """
168
+ Build command-line arguments from parameters.
169
+
170
+ Args:
171
+ params: The parameters.
172
+ execution: The execution object for resolving input paths.
173
+ Returns:
174
+ Command-line arguments.
175
+ """
176
+ cargs = []
177
+ cargs.append(params.get("obj"))
178
+ return cargs
179
+
180
+
181
+ def fixelconvert_various_file_params(
182
+ obj: InputPathType,
183
+ ) -> FixelconvertVariousFileParameters:
184
+ """
185
+ Build parameters.
186
+
187
+ Args:
188
+ obj: File object.
189
+ Returns:
190
+ Parameter dictionary
191
+ """
192
+ params = {
193
+ "__STYXTYPE__": "VariousFile",
194
+ "obj": obj,
195
+ }
196
+ return params
197
+
198
+
199
+ def fixelconvert_various_file_cargs(
200
+ params: FixelconvertVariousFileParameters,
201
+ execution: Execution,
202
+ ) -> list[str]:
203
+ """
204
+ Build command-line arguments from parameters.
205
+
206
+ Args:
207
+ params: The parameters.
208
+ execution: The execution object for resolving input paths.
209
+ Returns:
210
+ Command-line arguments.
211
+ """
212
+ cargs = []
213
+ cargs.append(execution.input_file(params.get("obj")))
214
+ return cargs
215
+
216
+
217
+ def fixelconvert_various_string_1_params(
218
+ obj: str,
219
+ ) -> FixelconvertVariousString1Parameters:
220
+ """
221
+ Build parameters.
222
+
223
+ Args:
224
+ obj: String object.
225
+ Returns:
226
+ Parameter dictionary
227
+ """
228
+ params = {
229
+ "__STYXTYPE__": "VariousString_1",
230
+ "obj": obj,
231
+ }
232
+ return params
233
+
234
+
235
+ def fixelconvert_various_string_1_cargs(
236
+ params: FixelconvertVariousString1Parameters,
237
+ execution: Execution,
238
+ ) -> list[str]:
239
+ """
240
+ Build command-line arguments from parameters.
241
+
242
+ Args:
243
+ params: The parameters.
244
+ execution: The execution object for resolving input paths.
245
+ Returns:
246
+ Command-line arguments.
247
+ """
248
+ cargs = []
249
+ cargs.append(params.get("obj"))
250
+ return cargs
251
+
252
+
253
+ def fixelconvert_various_file_1_params(
254
+ obj: InputPathType,
255
+ ) -> FixelconvertVariousFile1Parameters:
256
+ """
257
+ Build parameters.
258
+
259
+ Args:
260
+ obj: File object.
261
+ Returns:
262
+ Parameter dictionary
263
+ """
264
+ params = {
265
+ "__STYXTYPE__": "VariousFile_1",
266
+ "obj": obj,
267
+ }
268
+ return params
269
+
270
+
271
+ def fixelconvert_various_file_1_cargs(
272
+ params: FixelconvertVariousFile1Parameters,
273
+ execution: Execution,
274
+ ) -> list[str]:
275
+ """
276
+ Build command-line arguments from parameters.
277
+
278
+ Args:
279
+ params: The parameters.
280
+ execution: The execution object for resolving input paths.
281
+ Returns:
282
+ Command-line arguments.
283
+ """
284
+ cargs = []
285
+ cargs.append(execution.input_file(params.get("obj")))
286
+ return cargs
287
+
288
+
289
+ class FixelconvertOutputs(typing.NamedTuple):
290
+ """
291
+ Output object returned when calling `fixelconvert(...)`.
292
+ """
293
+ root: OutputPathType
294
+ """Output root folder. This is the root folder for all outputs."""
295
+
296
+
297
+ def fixelconvert_params(
298
+ fixel_in: typing.Union[FixelconvertVariousStringParameters, FixelconvertVariousFileParameters],
299
+ fixel_out: typing.Union[FixelconvertVariousString1Parameters, FixelconvertVariousFile1Parameters],
300
+ name: str | None = None,
301
+ nii: bool = False,
302
+ out_size: bool = False,
303
+ template: InputPathType | None = None,
304
+ value: InputPathType | None = None,
305
+ in_size: InputPathType | None = None,
306
+ info: bool = False,
307
+ quiet: bool = False,
308
+ debug: bool = False,
309
+ force: bool = False,
310
+ nthreads: int | None = None,
311
+ config: list[FixelconvertConfigParameters] | None = None,
312
+ help_: bool = False,
313
+ version: bool = False,
314
+ ) -> FixelconvertParameters:
315
+ """
316
+ Build parameters.
317
+
318
+ Args:
319
+ fixel_in: the input fixel file / directory.
320
+ fixel_out: the output fixel file / directory.
321
+ name: assign a different name to the value field output (Default:\
322
+ value). Do not include the file extension.
323
+ nii: output the index, directions and data file in NIfTI format instead\
324
+ of .mif.
325
+ out_size: also output the 'size' field from the old format.
326
+ template: specify an existing fixel directory (in the new format) to\
327
+ which the new output should conform.
328
+ value: nominate the data file to import to the 'value' field in the old\
329
+ format.
330
+ in_size: import data for the 'size' field in the old format.
331
+ info: display information messages.
332
+ quiet: do not display information messages or progress status;\
333
+ alternatively, this can be achieved by setting the MRTRIX_QUIET\
334
+ environment variable to a non-empty string.
335
+ debug: display debugging messages.
336
+ force: force overwrite of output files (caution: using the same file as\
337
+ input and output might cause unexpected behaviour).
338
+ nthreads: use this number of threads in multi-threaded applications\
339
+ (set to 0 to disable multi-threading).
340
+ config: temporarily set the value of an MRtrix config file entry.
341
+ help_: display this information page and exit.
342
+ version: display version information and exit.
343
+ Returns:
344
+ Parameter dictionary
345
+ """
346
+ params = {
347
+ "__STYXTYPE__": "fixelconvert",
348
+ "nii": nii,
349
+ "out_size": out_size,
350
+ "info": info,
351
+ "quiet": quiet,
352
+ "debug": debug,
353
+ "force": force,
354
+ "help": help_,
355
+ "version": version,
356
+ "fixel_in": fixel_in,
357
+ "fixel_out": fixel_out,
358
+ }
359
+ if name is not None:
360
+ params["name"] = name
361
+ if template is not None:
362
+ params["template"] = template
363
+ if value is not None:
364
+ params["value"] = value
365
+ if in_size is not None:
366
+ params["in_size"] = in_size
367
+ if nthreads is not None:
368
+ params["nthreads"] = nthreads
369
+ if config is not None:
370
+ params["config"] = config
371
+ return params
372
+
373
+
374
+ def fixelconvert_cargs(
375
+ params: FixelconvertParameters,
376
+ execution: Execution,
377
+ ) -> list[str]:
378
+ """
379
+ Build command-line arguments from parameters.
380
+
381
+ Args:
382
+ params: The parameters.
383
+ execution: The execution object for resolving input paths.
384
+ Returns:
385
+ Command-line arguments.
386
+ """
387
+ cargs = []
388
+ cargs.append("fixelconvert")
389
+ if params.get("name") is not None:
390
+ cargs.extend([
391
+ "-name",
392
+ params.get("name")
393
+ ])
394
+ if params.get("nii"):
395
+ cargs.append("-nii")
396
+ if params.get("out_size"):
397
+ cargs.append("-out_size")
398
+ if params.get("template") is not None:
399
+ cargs.extend([
400
+ "-template",
401
+ execution.input_file(params.get("template"))
402
+ ])
403
+ if params.get("value") is not None:
404
+ cargs.extend([
405
+ "-value",
406
+ execution.input_file(params.get("value"))
407
+ ])
408
+ if params.get("in_size") is not None:
409
+ cargs.extend([
410
+ "-in_size",
411
+ execution.input_file(params.get("in_size"))
412
+ ])
413
+ if params.get("info"):
414
+ cargs.append("-info")
415
+ if params.get("quiet"):
416
+ cargs.append("-quiet")
417
+ if params.get("debug"):
418
+ cargs.append("-debug")
419
+ if params.get("force"):
420
+ cargs.append("-force")
421
+ if params.get("nthreads") is not None:
422
+ cargs.extend([
423
+ "-nthreads",
424
+ str(params.get("nthreads"))
425
+ ])
426
+ if params.get("config") is not None:
427
+ cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
428
+ if params.get("help"):
429
+ cargs.append("-help")
430
+ if params.get("version"):
431
+ cargs.append("-version")
432
+ cargs.extend(dyn_cargs(params.get("fixel_in")["__STYXTYPE__"])(params.get("fixel_in"), execution))
433
+ cargs.extend(dyn_cargs(params.get("fixel_out")["__STYXTYPE__"])(params.get("fixel_out"), execution))
434
+ return cargs
435
+
436
+
437
+ def fixelconvert_outputs(
438
+ params: FixelconvertParameters,
439
+ execution: Execution,
440
+ ) -> FixelconvertOutputs:
441
+ """
442
+ Build outputs object containing output file paths and possibly stdout/stderr.
443
+
444
+ Args:
445
+ params: The parameters.
446
+ execution: The execution object for resolving input paths.
447
+ Returns:
448
+ Outputs object.
449
+ """
450
+ ret = FixelconvertOutputs(
451
+ root=execution.output_file("."),
452
+ )
453
+ return ret
454
+
455
+
456
+ def fixelconvert_execute(
457
+ params: FixelconvertParameters,
458
+ execution: Execution,
459
+ ) -> FixelconvertOutputs:
460
+ """
461
+ Convert between the old format fixel image (.msf / .msh) and the new fixel
462
+ directory format.
463
+
464
+
465
+
466
+ References:
467
+
468
+ .
469
+
470
+ Author: MRTrix3 Developers
471
+
472
+ URL: https://www.mrtrix.org/
473
+
474
+ Args:
475
+ params: The parameters.
476
+ execution: The execution object.
477
+ Returns:
478
+ NamedTuple of outputs (described in `FixelconvertOutputs`).
479
+ """
480
+ params = execution.params(params)
481
+ cargs = fixelconvert_cargs(params, execution)
482
+ ret = fixelconvert_outputs(params, execution)
483
+ execution.run(cargs)
484
+ return ret
485
+
486
+
487
+ def fixelconvert(
488
+ fixel_in: typing.Union[FixelconvertVariousStringParameters, FixelconvertVariousFileParameters],
489
+ fixel_out: typing.Union[FixelconvertVariousString1Parameters, FixelconvertVariousFile1Parameters],
490
+ name: str | None = None,
491
+ nii: bool = False,
492
+ out_size: bool = False,
493
+ template: InputPathType | None = None,
494
+ value: InputPathType | None = None,
495
+ in_size: InputPathType | None = None,
496
+ info: bool = False,
497
+ quiet: bool = False,
498
+ debug: bool = False,
499
+ force: bool = False,
500
+ nthreads: int | None = None,
501
+ config: list[FixelconvertConfigParameters] | None = None,
502
+ help_: bool = False,
503
+ version: bool = False,
504
+ runner: Runner | None = None,
505
+ ) -> FixelconvertOutputs:
506
+ """
507
+ Convert between the old format fixel image (.msf / .msh) and the new fixel
508
+ directory format.
509
+
510
+
511
+
512
+ References:
513
+
514
+ .
515
+
516
+ Author: MRTrix3 Developers
517
+
518
+ URL: https://www.mrtrix.org/
519
+
520
+ Args:
521
+ fixel_in: the input fixel file / directory.
522
+ fixel_out: the output fixel file / directory.
523
+ name: assign a different name to the value field output (Default:\
524
+ value). Do not include the file extension.
525
+ nii: output the index, directions and data file in NIfTI format instead\
526
+ of .mif.
527
+ out_size: also output the 'size' field from the old format.
528
+ template: specify an existing fixel directory (in the new format) to\
529
+ which the new output should conform.
530
+ value: nominate the data file to import to the 'value' field in the old\
531
+ format.
532
+ in_size: import data for the 'size' field in the old format.
533
+ info: display information messages.
534
+ quiet: do not display information messages or progress status;\
535
+ alternatively, this can be achieved by setting the MRTRIX_QUIET\
536
+ environment variable to a non-empty string.
537
+ debug: display debugging messages.
538
+ force: force overwrite of output files (caution: using the same file as\
539
+ input and output might cause unexpected behaviour).
540
+ nthreads: use this number of threads in multi-threaded applications\
541
+ (set to 0 to disable multi-threading).
542
+ config: temporarily set the value of an MRtrix config file entry.
543
+ help_: display this information page and exit.
544
+ version: display version information and exit.
545
+ runner: Command runner.
546
+ Returns:
547
+ NamedTuple of outputs (described in `FixelconvertOutputs`).
548
+ """
549
+ runner = runner or get_global_runner()
550
+ execution = runner.start_execution(FIXELCONVERT_METADATA)
551
+ params = fixelconvert_params(
552
+ name=name,
553
+ nii=nii,
554
+ out_size=out_size,
555
+ template=template,
556
+ value=value,
557
+ in_size=in_size,
558
+ info=info,
559
+ quiet=quiet,
560
+ debug=debug,
561
+ force=force,
562
+ nthreads=nthreads,
563
+ config=config,
564
+ help_=help_,
565
+ version=version,
566
+ fixel_in=fixel_in,
567
+ fixel_out=fixel_out,
568
+ )
569
+ return fixelconvert_execute(params, execution)
570
+
571
+
572
+ __all__ = [
573
+ "FIXELCONVERT_METADATA",
574
+ "FixelconvertConfigParameters",
575
+ "FixelconvertOutputs",
576
+ "FixelconvertParameters",
577
+ "FixelconvertVariousFile1Parameters",
578
+ "FixelconvertVariousFileParameters",
579
+ "FixelconvertVariousString1Parameters",
580
+ "FixelconvertVariousStringParameters",
581
+ "fixelconvert",
582
+ "fixelconvert_config_params",
583
+ "fixelconvert_params",
584
+ "fixelconvert_various_file_1_params",
585
+ "fixelconvert_various_file_params",
586
+ "fixelconvert_various_string_1_params",
587
+ "fixelconvert_various_string_params",
588
+ ]