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,316 @@
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
+ RESPONSEMEAN_METADATA = Metadata(
9
+ id="e6c56f5745cf6a8cbb9c9387ca97dbcce3e44b95.boutiques",
10
+ name="responsemean",
11
+ package="mrtrix",
12
+ container_image_tag="mrtrix3/mrtrix3:3.0.4",
13
+ )
14
+
15
+
16
+ ResponsemeanParameters = typing.TypedDict('ResponsemeanParameters', {
17
+ "__STYX_TYPE__": typing.Literal["responsemean"],
18
+ "input_response": list[InputPathType],
19
+ "output_response": str,
20
+ "legacy": bool,
21
+ "nocleanup": bool,
22
+ "scratch_dir": typing.NotRequired[InputPathType | None],
23
+ "continue_scratch_dir": typing.NotRequired[list[InputPathType] | None],
24
+ "info": bool,
25
+ "quiet": bool,
26
+ "debug": bool,
27
+ "force": bool,
28
+ "nthreads": typing.NotRequired[float | None],
29
+ "config": typing.NotRequired[list[str] | None],
30
+ "help": bool,
31
+ "version": bool,
32
+ })
33
+
34
+
35
+ def dyn_cargs(
36
+ t: str,
37
+ ) -> typing.Any:
38
+ """
39
+ Get build cargs function by command type.
40
+
41
+ Args:
42
+ t: Command type.
43
+ Returns:
44
+ Build cargs function.
45
+ """
46
+ return {
47
+ "responsemean": responsemean_cargs,
48
+ }.get(t)
49
+
50
+
51
+ def dyn_outputs(
52
+ t: str,
53
+ ) -> typing.Any:
54
+ """
55
+ Get build outputs function by command type.
56
+
57
+ Args:
58
+ t: Command type.
59
+ Returns:
60
+ Build outputs function.
61
+ """
62
+ return {
63
+ "responsemean": responsemean_outputs,
64
+ }.get(t)
65
+
66
+
67
+ class ResponsemeanOutputs(typing.NamedTuple):
68
+ """
69
+ Output object returned when calling `responsemean(...)`.
70
+ """
71
+ root: OutputPathType
72
+ """Output root folder. This is the root folder for all outputs."""
73
+ output_response_file: OutputPathType
74
+ """File containing the averaged tissue response function"""
75
+
76
+
77
+ def responsemean_params(
78
+ input_response: list[InputPathType],
79
+ output_response: str,
80
+ legacy: bool = False,
81
+ nocleanup: bool = False,
82
+ scratch_dir: InputPathType | None = None,
83
+ continue_scratch_dir: list[InputPathType] | None = None,
84
+ info: bool = False,
85
+ quiet: bool = False,
86
+ debug: bool = False,
87
+ force: bool = False,
88
+ nthreads: float | None = None,
89
+ config: list[str] | None = None,
90
+ help_: bool = False,
91
+ version: bool = False,
92
+ ) -> ResponsemeanParameters:
93
+ """
94
+ Build parameters.
95
+
96
+ Args:
97
+ input_response: Input response functions.
98
+ output_response: Output mean response function.
99
+ legacy: Calculate the mean response function from a set of text files.
100
+ nocleanup: Do not delete intermediate files during script execution,\
101
+ and do not delete scratch directory at script completion.
102
+ scratch_dir: Manually specify the path in which to generate the scratch\
103
+ directory.
104
+ continue_scratch_dir: Continue the script from a previous execution;\
105
+ must provide the scratch directory path.
106
+ info: Display information messages.
107
+ quiet: Do not display information messages or progress status.
108
+ debug: Display debugging messages.
109
+ force: Force overwrite of output files.
110
+ nthreads: Use this number of threads in multi-threaded applications\
111
+ (set to 0 to disable multi-threading).
112
+ config: Temporarily set the value of an MRtrix config file entry.
113
+ help_: Display help information and exit.
114
+ version: Display version information and exit.
115
+ Returns:
116
+ Parameter dictionary
117
+ """
118
+ params = {
119
+ "__STYXTYPE__": "responsemean",
120
+ "input_response": input_response,
121
+ "output_response": output_response,
122
+ "legacy": legacy,
123
+ "nocleanup": nocleanup,
124
+ "info": info,
125
+ "quiet": quiet,
126
+ "debug": debug,
127
+ "force": force,
128
+ "help": help_,
129
+ "version": version,
130
+ }
131
+ if scratch_dir is not None:
132
+ params["scratch_dir"] = scratch_dir
133
+ if continue_scratch_dir is not None:
134
+ params["continue_scratch_dir"] = continue_scratch_dir
135
+ if nthreads is not None:
136
+ params["nthreads"] = nthreads
137
+ if config is not None:
138
+ params["config"] = config
139
+ return params
140
+
141
+
142
+ def responsemean_cargs(
143
+ params: ResponsemeanParameters,
144
+ execution: Execution,
145
+ ) -> list[str]:
146
+ """
147
+ Build command-line arguments from parameters.
148
+
149
+ Args:
150
+ params: The parameters.
151
+ execution: The execution object for resolving input paths.
152
+ Returns:
153
+ Command-line arguments.
154
+ """
155
+ cargs = []
156
+ cargs.append("responsemean")
157
+ cargs.extend([execution.input_file(f) for f in params.get("input_response")])
158
+ cargs.append(params.get("output_response"))
159
+ if params.get("legacy"):
160
+ cargs.append("-legacy")
161
+ if params.get("nocleanup"):
162
+ cargs.append("-nocleanup")
163
+ if params.get("scratch_dir") is not None:
164
+ cargs.extend([
165
+ "-scratch",
166
+ execution.input_file(params.get("scratch_dir"))
167
+ ])
168
+ if params.get("continue_scratch_dir") is not None:
169
+ cargs.extend([
170
+ "-continue",
171
+ *[execution.input_file(f) for f in params.get("continue_scratch_dir")]
172
+ ])
173
+ if params.get("info"):
174
+ cargs.append("-info")
175
+ if params.get("quiet"):
176
+ cargs.append("-quiet")
177
+ if params.get("debug"):
178
+ cargs.append("-debug")
179
+ if params.get("force"):
180
+ cargs.append("-force")
181
+ if params.get("nthreads") is not None:
182
+ cargs.extend([
183
+ "-nthreads",
184
+ str(params.get("nthreads"))
185
+ ])
186
+ if params.get("config") is not None:
187
+ cargs.extend([
188
+ "-config",
189
+ *params.get("config")
190
+ ])
191
+ if params.get("help"):
192
+ cargs.append("-help")
193
+ if params.get("version"):
194
+ cargs.append("-version")
195
+ return cargs
196
+
197
+
198
+ def responsemean_outputs(
199
+ params: ResponsemeanParameters,
200
+ execution: Execution,
201
+ ) -> ResponsemeanOutputs:
202
+ """
203
+ Build outputs object containing output file paths and possibly stdout/stderr.
204
+
205
+ Args:
206
+ params: The parameters.
207
+ execution: The execution object for resolving input paths.
208
+ Returns:
209
+ Outputs object.
210
+ """
211
+ ret = ResponsemeanOutputs(
212
+ root=execution.output_file("."),
213
+ output_response_file=execution.output_file(params.get("output_response")),
214
+ )
215
+ return ret
216
+
217
+
218
+ def responsemean_execute(
219
+ params: ResponsemeanParameters,
220
+ execution: Execution,
221
+ ) -> ResponsemeanOutputs:
222
+ """
223
+ Calculate the mean response function from a set of text files.
224
+
225
+ Author: MRTrix3 Developers
226
+
227
+ URL: https://www.mrtrix.org/
228
+
229
+ Args:
230
+ params: The parameters.
231
+ execution: The execution object.
232
+ Returns:
233
+ NamedTuple of outputs (described in `ResponsemeanOutputs`).
234
+ """
235
+ params = execution.params(params)
236
+ cargs = responsemean_cargs(params, execution)
237
+ ret = responsemean_outputs(params, execution)
238
+ execution.run(cargs)
239
+ return ret
240
+
241
+
242
+ def responsemean(
243
+ input_response: list[InputPathType],
244
+ output_response: str,
245
+ legacy: bool = False,
246
+ nocleanup: bool = False,
247
+ scratch_dir: InputPathType | None = None,
248
+ continue_scratch_dir: list[InputPathType] | None = None,
249
+ info: bool = False,
250
+ quiet: bool = False,
251
+ debug: bool = False,
252
+ force: bool = False,
253
+ nthreads: float | None = None,
254
+ config: list[str] | None = None,
255
+ help_: bool = False,
256
+ version: bool = False,
257
+ runner: Runner | None = None,
258
+ ) -> ResponsemeanOutputs:
259
+ """
260
+ Calculate the mean response function from a set of text files.
261
+
262
+ Author: MRTrix3 Developers
263
+
264
+ URL: https://www.mrtrix.org/
265
+
266
+ Args:
267
+ input_response: Input response functions.
268
+ output_response: Output mean response function.
269
+ legacy: Calculate the mean response function from a set of text files.
270
+ nocleanup: Do not delete intermediate files during script execution,\
271
+ and do not delete scratch directory at script completion.
272
+ scratch_dir: Manually specify the path in which to generate the scratch\
273
+ directory.
274
+ continue_scratch_dir: Continue the script from a previous execution;\
275
+ must provide the scratch directory path.
276
+ info: Display information messages.
277
+ quiet: Do not display information messages or progress status.
278
+ debug: Display debugging messages.
279
+ force: Force overwrite of output files.
280
+ nthreads: Use this number of threads in multi-threaded applications\
281
+ (set to 0 to disable multi-threading).
282
+ config: Temporarily set the value of an MRtrix config file entry.
283
+ help_: Display help information and exit.
284
+ version: Display version information and exit.
285
+ runner: Command runner.
286
+ Returns:
287
+ NamedTuple of outputs (described in `ResponsemeanOutputs`).
288
+ """
289
+ runner = runner or get_global_runner()
290
+ execution = runner.start_execution(RESPONSEMEAN_METADATA)
291
+ params = responsemean_params(
292
+ input_response=input_response,
293
+ output_response=output_response,
294
+ legacy=legacy,
295
+ nocleanup=nocleanup,
296
+ scratch_dir=scratch_dir,
297
+ continue_scratch_dir=continue_scratch_dir,
298
+ info=info,
299
+ quiet=quiet,
300
+ debug=debug,
301
+ force=force,
302
+ nthreads=nthreads,
303
+ config=config,
304
+ help_=help_,
305
+ version=version,
306
+ )
307
+ return responsemean_execute(params, execution)
308
+
309
+
310
+ __all__ = [
311
+ "RESPONSEMEAN_METADATA",
312
+ "ResponsemeanOutputs",
313
+ "ResponsemeanParameters",
314
+ "responsemean",
315
+ "responsemean_params",
316
+ ]