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,337 @@
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_5TTCHECK_METADATA = Metadata(
9
+ id="81b3e0b2961a573a6a802146cca2c10ffb8d0868.boutiques",
10
+ name="5ttcheck",
11
+ package="mrtrix",
12
+ container_image_tag="mrtrix3/mrtrix3:3.0.4",
13
+ )
14
+
15
+
16
+ V5ttcheckConfigParameters = typing.TypedDict('V5ttcheckConfigParameters', {
17
+ "__STYX_TYPE__": typing.Literal["config"],
18
+ "key": str,
19
+ "value": str,
20
+ })
21
+
22
+
23
+ V5ttcheckParameters = typing.TypedDict('V5ttcheckParameters', {
24
+ "__STYX_TYPE__": typing.Literal["5ttcheck"],
25
+ "voxels": typing.NotRequired[str | None],
26
+ "info": bool,
27
+ "quiet": bool,
28
+ "debug": bool,
29
+ "force": bool,
30
+ "nthreads": typing.NotRequired[int | None],
31
+ "config": typing.NotRequired[list[V5ttcheckConfigParameters] | None],
32
+ "help": bool,
33
+ "version": bool,
34
+ "input": list[InputPathType],
35
+ })
36
+
37
+
38
+ def dyn_cargs(
39
+ t: str,
40
+ ) -> typing.Any:
41
+ """
42
+ Get build cargs function by command type.
43
+
44
+ Args:
45
+ t: Command type.
46
+ Returns:
47
+ Build cargs function.
48
+ """
49
+ return {
50
+ "5ttcheck": v_5ttcheck_cargs,
51
+ "config": v_5ttcheck_config_cargs,
52
+ }.get(t)
53
+
54
+
55
+ def dyn_outputs(
56
+ t: str,
57
+ ) -> typing.Any:
58
+ """
59
+ Get build outputs function by command type.
60
+
61
+ Args:
62
+ t: Command type.
63
+ Returns:
64
+ Build outputs function.
65
+ """
66
+ return {
67
+ }.get(t)
68
+
69
+
70
+ def v_5ttcheck_config_params(
71
+ key: str,
72
+ value: str,
73
+ ) -> V5ttcheckConfigParameters:
74
+ """
75
+ Build parameters.
76
+
77
+ Args:
78
+ key: temporarily set the value of an MRtrix config file entry.
79
+ value: temporarily set the value of an MRtrix config file entry.
80
+ Returns:
81
+ Parameter dictionary
82
+ """
83
+ params = {
84
+ "__STYXTYPE__": "config",
85
+ "key": key,
86
+ "value": value,
87
+ }
88
+ return params
89
+
90
+
91
+ def v_5ttcheck_config_cargs(
92
+ params: V5ttcheckConfigParameters,
93
+ execution: Execution,
94
+ ) -> list[str]:
95
+ """
96
+ Build command-line arguments from parameters.
97
+
98
+ Args:
99
+ params: The parameters.
100
+ execution: The execution object for resolving input paths.
101
+ Returns:
102
+ Command-line arguments.
103
+ """
104
+ cargs = []
105
+ cargs.append("-config")
106
+ cargs.append(params.get("key"))
107
+ cargs.append(params.get("value"))
108
+ return cargs
109
+
110
+
111
+ class V5ttcheckOutputs(typing.NamedTuple):
112
+ """
113
+ Output object returned when calling `v_5ttcheck(...)`.
114
+ """
115
+ root: OutputPathType
116
+ """Output root folder. This is the root folder for all outputs."""
117
+
118
+
119
+ def v_5ttcheck_params(
120
+ input_: list[InputPathType],
121
+ voxels: str | None = None,
122
+ info: bool = False,
123
+ quiet: bool = False,
124
+ debug: bool = False,
125
+ force: bool = False,
126
+ nthreads: int | None = None,
127
+ config: list[V5ttcheckConfigParameters] | None = None,
128
+ help_: bool = False,
129
+ version: bool = False,
130
+ ) -> V5ttcheckParameters:
131
+ """
132
+ Build parameters.
133
+
134
+ Args:
135
+ input_: the 5TT image(s) to be tested.
136
+ voxels: output mask images highlighting voxels where the input does not\
137
+ conform to 5TT requirements.
138
+ info: display information messages.
139
+ quiet: do not display information messages or progress status;\
140
+ alternatively, this can be achieved by setting the MRTRIX_QUIET\
141
+ environment variable to a non-empty string.
142
+ debug: display debugging messages.
143
+ force: force overwrite of output files (caution: using the same file as\
144
+ input and output might cause unexpected behaviour).
145
+ nthreads: use this number of threads in multi-threaded applications\
146
+ (set to 0 to disable multi-threading).
147
+ config: temporarily set the value of an MRtrix config file entry.
148
+ help_: display this information page and exit.
149
+ version: display version information and exit.
150
+ Returns:
151
+ Parameter dictionary
152
+ """
153
+ params = {
154
+ "__STYXTYPE__": "5ttcheck",
155
+ "info": info,
156
+ "quiet": quiet,
157
+ "debug": debug,
158
+ "force": force,
159
+ "help": help_,
160
+ "version": version,
161
+ "input": input_,
162
+ }
163
+ if voxels is not None:
164
+ params["voxels"] = voxels
165
+ if nthreads is not None:
166
+ params["nthreads"] = nthreads
167
+ if config is not None:
168
+ params["config"] = config
169
+ return params
170
+
171
+
172
+ def v_5ttcheck_cargs(
173
+ params: V5ttcheckParameters,
174
+ execution: Execution,
175
+ ) -> list[str]:
176
+ """
177
+ Build command-line arguments from parameters.
178
+
179
+ Args:
180
+ params: The parameters.
181
+ execution: The execution object for resolving input paths.
182
+ Returns:
183
+ Command-line arguments.
184
+ """
185
+ cargs = []
186
+ cargs.append("5ttcheck")
187
+ if params.get("voxels") is not None:
188
+ cargs.extend([
189
+ "-voxels",
190
+ params.get("voxels")
191
+ ])
192
+ if params.get("info"):
193
+ cargs.append("-info")
194
+ if params.get("quiet"):
195
+ cargs.append("-quiet")
196
+ if params.get("debug"):
197
+ cargs.append("-debug")
198
+ if params.get("force"):
199
+ cargs.append("-force")
200
+ if params.get("nthreads") is not None:
201
+ cargs.extend([
202
+ "-nthreads",
203
+ str(params.get("nthreads"))
204
+ ])
205
+ if params.get("config") is not None:
206
+ cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
207
+ if params.get("help"):
208
+ cargs.append("-help")
209
+ if params.get("version"):
210
+ cargs.append("-version")
211
+ cargs.extend([execution.input_file(f) for f in params.get("input")])
212
+ return cargs
213
+
214
+
215
+ def v_5ttcheck_outputs(
216
+ params: V5ttcheckParameters,
217
+ execution: Execution,
218
+ ) -> V5ttcheckOutputs:
219
+ """
220
+ Build outputs object containing output file paths and possibly stdout/stderr.
221
+
222
+ Args:
223
+ params: The parameters.
224
+ execution: The execution object for resolving input paths.
225
+ Returns:
226
+ Outputs object.
227
+ """
228
+ ret = V5ttcheckOutputs(
229
+ root=execution.output_file("."),
230
+ )
231
+ return ret
232
+
233
+
234
+ def v_5ttcheck_execute(
235
+ params: V5ttcheckParameters,
236
+ execution: Execution,
237
+ ) -> V5ttcheckOutputs:
238
+ """
239
+ Thoroughly check that one or more images conform to the expected ACT
240
+ five-tissue-type (5TT) format.
241
+
242
+
243
+
244
+ References:
245
+
246
+ .
247
+
248
+ Author: MRTrix3 Developers
249
+
250
+ URL: https://www.mrtrix.org/
251
+
252
+ Args:
253
+ params: The parameters.
254
+ execution: The execution object.
255
+ Returns:
256
+ NamedTuple of outputs (described in `V5ttcheckOutputs`).
257
+ """
258
+ params = execution.params(params)
259
+ cargs = v_5ttcheck_cargs(params, execution)
260
+ ret = v_5ttcheck_outputs(params, execution)
261
+ execution.run(cargs)
262
+ return ret
263
+
264
+
265
+ def v_5ttcheck(
266
+ input_: list[InputPathType],
267
+ voxels: str | None = None,
268
+ info: bool = False,
269
+ quiet: bool = False,
270
+ debug: bool = False,
271
+ force: bool = False,
272
+ nthreads: int | None = None,
273
+ config: list[V5ttcheckConfigParameters] | None = None,
274
+ help_: bool = False,
275
+ version: bool = False,
276
+ runner: Runner | None = None,
277
+ ) -> V5ttcheckOutputs:
278
+ """
279
+ Thoroughly check that one or more images conform to the expected ACT
280
+ five-tissue-type (5TT) format.
281
+
282
+
283
+
284
+ References:
285
+
286
+ .
287
+
288
+ Author: MRTrix3 Developers
289
+
290
+ URL: https://www.mrtrix.org/
291
+
292
+ Args:
293
+ input_: the 5TT image(s) to be tested.
294
+ voxels: output mask images highlighting voxels where the input does not\
295
+ conform to 5TT requirements.
296
+ info: display information messages.
297
+ quiet: do not display information messages or progress status;\
298
+ alternatively, this can be achieved by setting the MRTRIX_QUIET\
299
+ environment variable to a non-empty string.
300
+ debug: display debugging messages.
301
+ force: force overwrite of output files (caution: using the same file as\
302
+ input and output might cause unexpected behaviour).
303
+ nthreads: use this number of threads in multi-threaded applications\
304
+ (set to 0 to disable multi-threading).
305
+ config: temporarily set the value of an MRtrix config file entry.
306
+ help_: display this information page and exit.
307
+ version: display version information and exit.
308
+ runner: Command runner.
309
+ Returns:
310
+ NamedTuple of outputs (described in `V5ttcheckOutputs`).
311
+ """
312
+ runner = runner or get_global_runner()
313
+ execution = runner.start_execution(V_5TTCHECK_METADATA)
314
+ params = v_5ttcheck_params(
315
+ voxels=voxels,
316
+ info=info,
317
+ quiet=quiet,
318
+ debug=debug,
319
+ force=force,
320
+ nthreads=nthreads,
321
+ config=config,
322
+ help_=help_,
323
+ version=version,
324
+ input_=input_,
325
+ )
326
+ return v_5ttcheck_execute(params, execution)
327
+
328
+
329
+ __all__ = [
330
+ "V5ttcheckConfigParameters",
331
+ "V5ttcheckOutputs",
332
+ "V5ttcheckParameters",
333
+ "V_5TTCHECK_METADATA",
334
+ "v_5ttcheck",
335
+ "v_5ttcheck_config_params",
336
+ "v_5ttcheck_params",
337
+ ]