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,412 @@
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_5TT2VIS_METADATA = Metadata(
9
+ id="702b49a5b25df0d2069fb4f29ba6316bbc4674e9.boutiques",
10
+ name="5tt2vis",
11
+ package="mrtrix",
12
+ container_image_tag="mrtrix3/mrtrix3:3.0.4",
13
+ )
14
+
15
+
16
+ V5tt2visConfigParameters = typing.TypedDict('V5tt2visConfigParameters', {
17
+ "__STYX_TYPE__": typing.Literal["config"],
18
+ "key": str,
19
+ "value": str,
20
+ })
21
+
22
+
23
+ V5tt2visParameters = typing.TypedDict('V5tt2visParameters', {
24
+ "__STYX_TYPE__": typing.Literal["5tt2vis"],
25
+ "bg": typing.NotRequired[float | None],
26
+ "cgm": typing.NotRequired[float | None],
27
+ "sgm": typing.NotRequired[float | None],
28
+ "wm": typing.NotRequired[float | None],
29
+ "csf": typing.NotRequired[float | None],
30
+ "path": typing.NotRequired[float | None],
31
+ "info": bool,
32
+ "quiet": bool,
33
+ "debug": bool,
34
+ "force": bool,
35
+ "nthreads": typing.NotRequired[int | None],
36
+ "config": typing.NotRequired[list[V5tt2visConfigParameters] | None],
37
+ "help": bool,
38
+ "version": bool,
39
+ "input": InputPathType,
40
+ "output": str,
41
+ })
42
+
43
+
44
+ def dyn_cargs(
45
+ t: str,
46
+ ) -> typing.Any:
47
+ """
48
+ Get build cargs function by command type.
49
+
50
+ Args:
51
+ t: Command type.
52
+ Returns:
53
+ Build cargs function.
54
+ """
55
+ return {
56
+ "5tt2vis": v_5tt2vis_cargs,
57
+ "config": v_5tt2vis_config_cargs,
58
+ }.get(t)
59
+
60
+
61
+ def dyn_outputs(
62
+ t: str,
63
+ ) -> typing.Any:
64
+ """
65
+ Get build outputs function by command type.
66
+
67
+ Args:
68
+ t: Command type.
69
+ Returns:
70
+ Build outputs function.
71
+ """
72
+ return {
73
+ "5tt2vis": v_5tt2vis_outputs,
74
+ }.get(t)
75
+
76
+
77
+ def v_5tt2vis_config_params(
78
+ key: str,
79
+ value: str,
80
+ ) -> V5tt2visConfigParameters:
81
+ """
82
+ Build parameters.
83
+
84
+ Args:
85
+ key: temporarily set the value of an MRtrix config file entry.
86
+ value: temporarily set the value of an MRtrix config file entry.
87
+ Returns:
88
+ Parameter dictionary
89
+ """
90
+ params = {
91
+ "__STYXTYPE__": "config",
92
+ "key": key,
93
+ "value": value,
94
+ }
95
+ return params
96
+
97
+
98
+ def v_5tt2vis_config_cargs(
99
+ params: V5tt2visConfigParameters,
100
+ execution: Execution,
101
+ ) -> list[str]:
102
+ """
103
+ Build command-line arguments from parameters.
104
+
105
+ Args:
106
+ params: The parameters.
107
+ execution: The execution object for resolving input paths.
108
+ Returns:
109
+ Command-line arguments.
110
+ """
111
+ cargs = []
112
+ cargs.append("-config")
113
+ cargs.append(params.get("key"))
114
+ cargs.append(params.get("value"))
115
+ return cargs
116
+
117
+
118
+ class V5tt2visOutputs(typing.NamedTuple):
119
+ """
120
+ Output object returned when calling `v_5tt2vis(...)`.
121
+ """
122
+ root: OutputPathType
123
+ """Output root folder. This is the root folder for all outputs."""
124
+ output: OutputPathType
125
+ """the output 3D image for visualisation"""
126
+
127
+
128
+ def v_5tt2vis_params(
129
+ input_: InputPathType,
130
+ output: str,
131
+ bg: float | None = None,
132
+ cgm: float | None = None,
133
+ sgm: float | None = None,
134
+ wm: float | None = None,
135
+ csf: float | None = None,
136
+ path: float | None = None,
137
+ info: bool = False,
138
+ quiet: bool = False,
139
+ debug: bool = False,
140
+ force: bool = False,
141
+ nthreads: int | None = None,
142
+ config: list[V5tt2visConfigParameters] | None = None,
143
+ help_: bool = False,
144
+ version: bool = False,
145
+ ) -> V5tt2visParameters:
146
+ """
147
+ Build parameters.
148
+
149
+ Args:
150
+ input_: the input 4D tissue-segmented image.
151
+ output: the output 3D image for visualisation.
152
+ bg: image intensity of background (default: 0).
153
+ cgm: image intensity of cortical grey matter (default: 0.5).
154
+ sgm: image intensity of sub-cortical grey matter (default: 0.75).
155
+ wm: image intensity of white matter (default: 1).
156
+ csf: image intensity of CSF (default: 0.15).
157
+ path: image intensity of pathological tissue (default: 2).
158
+ info: display information messages.
159
+ quiet: do not display information messages or progress status;\
160
+ alternatively, this can be achieved by setting the MRTRIX_QUIET\
161
+ environment variable to a non-empty string.
162
+ debug: display debugging messages.
163
+ force: force overwrite of output files (caution: using the same file as\
164
+ input and output might cause unexpected behaviour).
165
+ nthreads: use this number of threads in multi-threaded applications\
166
+ (set to 0 to disable multi-threading).
167
+ config: temporarily set the value of an MRtrix config file entry.
168
+ help_: display this information page and exit.
169
+ version: display version information and exit.
170
+ Returns:
171
+ Parameter dictionary
172
+ """
173
+ params = {
174
+ "__STYXTYPE__": "5tt2vis",
175
+ "info": info,
176
+ "quiet": quiet,
177
+ "debug": debug,
178
+ "force": force,
179
+ "help": help_,
180
+ "version": version,
181
+ "input": input_,
182
+ "output": output,
183
+ }
184
+ if bg is not None:
185
+ params["bg"] = bg
186
+ if cgm is not None:
187
+ params["cgm"] = cgm
188
+ if sgm is not None:
189
+ params["sgm"] = sgm
190
+ if wm is not None:
191
+ params["wm"] = wm
192
+ if csf is not None:
193
+ params["csf"] = csf
194
+ if path is not None:
195
+ params["path"] = path
196
+ if nthreads is not None:
197
+ params["nthreads"] = nthreads
198
+ if config is not None:
199
+ params["config"] = config
200
+ return params
201
+
202
+
203
+ def v_5tt2vis_cargs(
204
+ params: V5tt2visParameters,
205
+ execution: Execution,
206
+ ) -> list[str]:
207
+ """
208
+ Build command-line arguments from parameters.
209
+
210
+ Args:
211
+ params: The parameters.
212
+ execution: The execution object for resolving input paths.
213
+ Returns:
214
+ Command-line arguments.
215
+ """
216
+ cargs = []
217
+ cargs.append("5tt2vis")
218
+ if params.get("bg") is not None:
219
+ cargs.extend([
220
+ "-bg",
221
+ str(params.get("bg"))
222
+ ])
223
+ if params.get("cgm") is not None:
224
+ cargs.extend([
225
+ "-cgm",
226
+ str(params.get("cgm"))
227
+ ])
228
+ if params.get("sgm") is not None:
229
+ cargs.extend([
230
+ "-sgm",
231
+ str(params.get("sgm"))
232
+ ])
233
+ if params.get("wm") is not None:
234
+ cargs.extend([
235
+ "-wm",
236
+ str(params.get("wm"))
237
+ ])
238
+ if params.get("csf") is not None:
239
+ cargs.extend([
240
+ "-csf",
241
+ str(params.get("csf"))
242
+ ])
243
+ if params.get("path") is not None:
244
+ cargs.extend([
245
+ "-path",
246
+ str(params.get("path"))
247
+ ])
248
+ if params.get("info"):
249
+ cargs.append("-info")
250
+ if params.get("quiet"):
251
+ cargs.append("-quiet")
252
+ if params.get("debug"):
253
+ cargs.append("-debug")
254
+ if params.get("force"):
255
+ cargs.append("-force")
256
+ if params.get("nthreads") is not None:
257
+ cargs.extend([
258
+ "-nthreads",
259
+ str(params.get("nthreads"))
260
+ ])
261
+ if params.get("config") is not None:
262
+ cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
263
+ if params.get("help"):
264
+ cargs.append("-help")
265
+ if params.get("version"):
266
+ cargs.append("-version")
267
+ cargs.append(execution.input_file(params.get("input")))
268
+ cargs.append(params.get("output"))
269
+ return cargs
270
+
271
+
272
+ def v_5tt2vis_outputs(
273
+ params: V5tt2visParameters,
274
+ execution: Execution,
275
+ ) -> V5tt2visOutputs:
276
+ """
277
+ Build outputs object containing output file paths and possibly stdout/stderr.
278
+
279
+ Args:
280
+ params: The parameters.
281
+ execution: The execution object for resolving input paths.
282
+ Returns:
283
+ Outputs object.
284
+ """
285
+ ret = V5tt2visOutputs(
286
+ root=execution.output_file("."),
287
+ output=execution.output_file(params.get("output")),
288
+ )
289
+ return ret
290
+
291
+
292
+ def v_5tt2vis_execute(
293
+ params: V5tt2visParameters,
294
+ execution: Execution,
295
+ ) -> V5tt2visOutputs:
296
+ """
297
+ Generate an image for visualisation purposes from an ACT 5TT segmented
298
+ anatomical image.
299
+
300
+
301
+
302
+ References:
303
+
304
+ .
305
+
306
+ Author: MRTrix3 Developers
307
+
308
+ URL: https://www.mrtrix.org/
309
+
310
+ Args:
311
+ params: The parameters.
312
+ execution: The execution object.
313
+ Returns:
314
+ NamedTuple of outputs (described in `V5tt2visOutputs`).
315
+ """
316
+ params = execution.params(params)
317
+ cargs = v_5tt2vis_cargs(params, execution)
318
+ ret = v_5tt2vis_outputs(params, execution)
319
+ execution.run(cargs)
320
+ return ret
321
+
322
+
323
+ def v_5tt2vis(
324
+ input_: InputPathType,
325
+ output: str,
326
+ bg: float | None = None,
327
+ cgm: float | None = None,
328
+ sgm: float | None = None,
329
+ wm: float | None = None,
330
+ csf: float | None = None,
331
+ path: float | None = None,
332
+ info: bool = False,
333
+ quiet: bool = False,
334
+ debug: bool = False,
335
+ force: bool = False,
336
+ nthreads: int | None = None,
337
+ config: list[V5tt2visConfigParameters] | None = None,
338
+ help_: bool = False,
339
+ version: bool = False,
340
+ runner: Runner | None = None,
341
+ ) -> V5tt2visOutputs:
342
+ """
343
+ Generate an image for visualisation purposes from an ACT 5TT segmented
344
+ anatomical image.
345
+
346
+
347
+
348
+ References:
349
+
350
+ .
351
+
352
+ Author: MRTrix3 Developers
353
+
354
+ URL: https://www.mrtrix.org/
355
+
356
+ Args:
357
+ input_: the input 4D tissue-segmented image.
358
+ output: the output 3D image for visualisation.
359
+ bg: image intensity of background (default: 0).
360
+ cgm: image intensity of cortical grey matter (default: 0.5).
361
+ sgm: image intensity of sub-cortical grey matter (default: 0.75).
362
+ wm: image intensity of white matter (default: 1).
363
+ csf: image intensity of CSF (default: 0.15).
364
+ path: image intensity of pathological tissue (default: 2).
365
+ info: display information messages.
366
+ quiet: do not display information messages or progress status;\
367
+ alternatively, this can be achieved by setting the MRTRIX_QUIET\
368
+ environment variable to a non-empty string.
369
+ debug: display debugging messages.
370
+ force: force overwrite of output files (caution: using the same file as\
371
+ input and output might cause unexpected behaviour).
372
+ nthreads: use this number of threads in multi-threaded applications\
373
+ (set to 0 to disable multi-threading).
374
+ config: temporarily set the value of an MRtrix config file entry.
375
+ help_: display this information page and exit.
376
+ version: display version information and exit.
377
+ runner: Command runner.
378
+ Returns:
379
+ NamedTuple of outputs (described in `V5tt2visOutputs`).
380
+ """
381
+ runner = runner or get_global_runner()
382
+ execution = runner.start_execution(V_5TT2VIS_METADATA)
383
+ params = v_5tt2vis_params(
384
+ bg=bg,
385
+ cgm=cgm,
386
+ sgm=sgm,
387
+ wm=wm,
388
+ csf=csf,
389
+ path=path,
390
+ info=info,
391
+ quiet=quiet,
392
+ debug=debug,
393
+ force=force,
394
+ nthreads=nthreads,
395
+ config=config,
396
+ help_=help_,
397
+ version=version,
398
+ input_=input_,
399
+ output=output,
400
+ )
401
+ return v_5tt2vis_execute(params, execution)
402
+
403
+
404
+ __all__ = [
405
+ "V5tt2visConfigParameters",
406
+ "V5tt2visOutputs",
407
+ "V5tt2visParameters",
408
+ "V_5TT2VIS_METADATA",
409
+ "v_5tt2vis",
410
+ "v_5tt2vis_config_params",
411
+ "v_5tt2vis_params",
412
+ ]