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,467 @@
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
+ DWIBIASCORRECT_METADATA = Metadata(
9
+ id="9185a0c94cb9a81f571005ce1de2411183c6df3f.boutiques",
10
+ name="dwibiascorrect",
11
+ package="mrtrix",
12
+ container_image_tag="mrtrix3/mrtrix3:3.0.4",
13
+ )
14
+
15
+
16
+ DwibiascorrectFslgradParameters = typing.TypedDict('DwibiascorrectFslgradParameters', {
17
+ "__STYX_TYPE__": typing.Literal["fslgrad"],
18
+ "bvecs": InputPathType,
19
+ "bvals": InputPathType,
20
+ })
21
+
22
+
23
+ DwibiascorrectParameters = typing.TypedDict('DwibiascorrectParameters', {
24
+ "__STYX_TYPE__": typing.Literal["dwibiascorrect"],
25
+ "algorithm": str,
26
+ "input_image": InputPathType,
27
+ "output_image": str,
28
+ "grad": typing.NotRequired[InputPathType | None],
29
+ "fslgrad": typing.NotRequired[DwibiascorrectFslgradParameters | None],
30
+ "mask_image": typing.NotRequired[InputPathType | None],
31
+ "bias_image": typing.NotRequired[InputPathType | None],
32
+ "nocleanup": bool,
33
+ "scratch_dir": typing.NotRequired[InputPathType | None],
34
+ "continue_scratch_dir": typing.NotRequired[list[InputPathType] | None],
35
+ "info": bool,
36
+ "quiet": bool,
37
+ "debug": bool,
38
+ "force": bool,
39
+ "nthreads": typing.NotRequired[float | None],
40
+ "help": bool,
41
+ "version": bool,
42
+ "ants_b": typing.NotRequired[str | None],
43
+ "ants_c": typing.NotRequired[str | None],
44
+ "ants_s": typing.NotRequired[str | None],
45
+ })
46
+
47
+
48
+ def dyn_cargs(
49
+ t: str,
50
+ ) -> typing.Any:
51
+ """
52
+ Get build cargs function by command type.
53
+
54
+ Args:
55
+ t: Command type.
56
+ Returns:
57
+ Build cargs function.
58
+ """
59
+ return {
60
+ "dwibiascorrect": dwibiascorrect_cargs,
61
+ "fslgrad": dwibiascorrect_fslgrad_cargs,
62
+ }.get(t)
63
+
64
+
65
+ def dyn_outputs(
66
+ t: str,
67
+ ) -> typing.Any:
68
+ """
69
+ Get build outputs function by command type.
70
+
71
+ Args:
72
+ t: Command type.
73
+ Returns:
74
+ Build outputs function.
75
+ """
76
+ return {
77
+ "dwibiascorrect": dwibiascorrect_outputs,
78
+ }.get(t)
79
+
80
+
81
+ def dwibiascorrect_fslgrad_params(
82
+ bvecs: InputPathType,
83
+ bvals: InputPathType,
84
+ ) -> DwibiascorrectFslgradParameters:
85
+ """
86
+ Build parameters.
87
+
88
+ Args:
89
+ bvecs: Provide the diffusion-weighted gradient scheme used in the\
90
+ acquisition in FSL bvecs/bvals format files. If a diffusion gradient\
91
+ scheme is present in the input image header, the data provided with\
92
+ this option will be instead used.
93
+ bvals: Provide the diffusion-weighted gradient scheme used in the\
94
+ acquisition in FSL bvecs/bvals format files. If a diffusion gradient\
95
+ scheme is present in the input image header, the data provided with\
96
+ this option will be instead used.
97
+ Returns:
98
+ Parameter dictionary
99
+ """
100
+ params = {
101
+ "__STYXTYPE__": "fslgrad",
102
+ "bvecs": bvecs,
103
+ "bvals": bvals,
104
+ }
105
+ return params
106
+
107
+
108
+ def dwibiascorrect_fslgrad_cargs(
109
+ params: DwibiascorrectFslgradParameters,
110
+ execution: Execution,
111
+ ) -> list[str]:
112
+ """
113
+ Build command-line arguments from parameters.
114
+
115
+ Args:
116
+ params: The parameters.
117
+ execution: The execution object for resolving input paths.
118
+ Returns:
119
+ Command-line arguments.
120
+ """
121
+ cargs = []
122
+ cargs.append("-fslgrad")
123
+ cargs.append(execution.input_file(params.get("bvecs")))
124
+ cargs.append(execution.input_file(params.get("bvals")))
125
+ return cargs
126
+
127
+
128
+ class DwibiascorrectOutputs(typing.NamedTuple):
129
+ """
130
+ Output object returned when calling `dwibiascorrect(...)`.
131
+ """
132
+ root: OutputPathType
133
+ """Output root folder. This is the root folder for all outputs."""
134
+ output_image_file: OutputPathType
135
+ """File containing the corrected image series"""
136
+ bias_image_file: OutputPathType | None
137
+ """File containing the estimated bias field"""
138
+
139
+
140
+ def dwibiascorrect_params(
141
+ algorithm: str,
142
+ input_image: InputPathType,
143
+ output_image: str,
144
+ grad: InputPathType | None = None,
145
+ fslgrad: DwibiascorrectFslgradParameters | None = None,
146
+ mask_image: InputPathType | None = None,
147
+ bias_image: InputPathType | None = None,
148
+ nocleanup: bool = False,
149
+ scratch_dir: InputPathType | None = None,
150
+ continue_scratch_dir: list[InputPathType] | None = None,
151
+ info: bool = False,
152
+ quiet: bool = False,
153
+ debug: bool = False,
154
+ force: bool = False,
155
+ nthreads: float | None = None,
156
+ help_: bool = False,
157
+ version: bool = False,
158
+ ants_b: str | None = None,
159
+ ants_c: str | None = None,
160
+ ants_s: str | None = None,
161
+ ) -> DwibiascorrectParameters:
162
+ """
163
+ Build parameters.
164
+
165
+ Args:
166
+ algorithm: Select the algorithm to be used for bias correction. Options\
167
+ are: ants, fsl.
168
+ input_image: The input image series to be corrected.
169
+ output_image: The output corrected image series.
170
+ grad: Provide the diffusion gradient table in MRtrix format.
171
+ fslgrad: Provide the diffusion-weighted gradient scheme used in the\
172
+ acquisition in FSL bvecs/bvals format files. If a diffusion gradient\
173
+ scheme is present in the input image header, the data provided with\
174
+ this option will be instead used.
175
+ mask_image: Manually provide a mask image for bias field estimation.
176
+ bias_image: Output the estimated bias field.
177
+ nocleanup: Do not delete intermediate files during script execution,\
178
+ and do not delete scratch directory at script completion.
179
+ scratch_dir: Manually specify the path in which to generate the scratch\
180
+ directory.
181
+ continue_scratch_dir: Continue the script from a previous execution;\
182
+ must provide the scratch directory path.
183
+ info: Display information messages.
184
+ quiet: Do not display information messages or progress status.
185
+ debug: Display debugging messages.
186
+ force: Force overwrite of output files.
187
+ nthreads: Use this number of threads in multi-threaded applications\
188
+ (set to 0 to disable multi-threading).
189
+ help_: Display help information and exit.
190
+ version: Display version information and exit.
191
+ ants_b: N4BiasFieldCorrection option -b (initial mesh resolution in mm,\
192
+ spline order).
193
+ ants_c: N4BiasFieldCorrection option -c (number of iterations,\
194
+ convergence threshold).
195
+ ants_s: N4BiasFieldCorrection option -s (shrink-factor applied to\
196
+ spatial dimensions).
197
+ Returns:
198
+ Parameter dictionary
199
+ """
200
+ params = {
201
+ "__STYXTYPE__": "dwibiascorrect",
202
+ "algorithm": algorithm,
203
+ "input_image": input_image,
204
+ "output_image": output_image,
205
+ "nocleanup": nocleanup,
206
+ "info": info,
207
+ "quiet": quiet,
208
+ "debug": debug,
209
+ "force": force,
210
+ "help": help_,
211
+ "version": version,
212
+ }
213
+ if grad is not None:
214
+ params["grad"] = grad
215
+ if fslgrad is not None:
216
+ params["fslgrad"] = fslgrad
217
+ if mask_image is not None:
218
+ params["mask_image"] = mask_image
219
+ if bias_image is not None:
220
+ params["bias_image"] = bias_image
221
+ if scratch_dir is not None:
222
+ params["scratch_dir"] = scratch_dir
223
+ if continue_scratch_dir is not None:
224
+ params["continue_scratch_dir"] = continue_scratch_dir
225
+ if nthreads is not None:
226
+ params["nthreads"] = nthreads
227
+ if ants_b is not None:
228
+ params["ants_b"] = ants_b
229
+ if ants_c is not None:
230
+ params["ants_c"] = ants_c
231
+ if ants_s is not None:
232
+ params["ants_s"] = ants_s
233
+ return params
234
+
235
+
236
+ def dwibiascorrect_cargs(
237
+ params: DwibiascorrectParameters,
238
+ execution: Execution,
239
+ ) -> list[str]:
240
+ """
241
+ Build command-line arguments from parameters.
242
+
243
+ Args:
244
+ params: The parameters.
245
+ execution: The execution object for resolving input paths.
246
+ Returns:
247
+ Command-line arguments.
248
+ """
249
+ cargs = []
250
+ cargs.append("dwibiascorrect")
251
+ cargs.append(params.get("algorithm"))
252
+ cargs.append(execution.input_file(params.get("input_image")))
253
+ cargs.append(params.get("output_image"))
254
+ if params.get("grad") is not None:
255
+ cargs.extend([
256
+ "-grad",
257
+ execution.input_file(params.get("grad"))
258
+ ])
259
+ if params.get("fslgrad") is not None:
260
+ cargs.extend(dyn_cargs(params.get("fslgrad")["__STYXTYPE__"])(params.get("fslgrad"), execution))
261
+ if params.get("mask_image") is not None:
262
+ cargs.extend([
263
+ "-mask",
264
+ execution.input_file(params.get("mask_image"))
265
+ ])
266
+ if params.get("bias_image") is not None:
267
+ cargs.extend([
268
+ "-bias",
269
+ execution.input_file(params.get("bias_image"))
270
+ ])
271
+ if params.get("nocleanup"):
272
+ cargs.append("-nocleanup")
273
+ if params.get("scratch_dir") is not None:
274
+ cargs.extend([
275
+ "-scratch",
276
+ execution.input_file(params.get("scratch_dir"))
277
+ ])
278
+ if params.get("continue_scratch_dir") is not None:
279
+ cargs.extend([
280
+ "-continue",
281
+ *[execution.input_file(f) for f in params.get("continue_scratch_dir")]
282
+ ])
283
+ if params.get("info"):
284
+ cargs.append("-info")
285
+ if params.get("quiet"):
286
+ cargs.append("-quiet")
287
+ if params.get("debug"):
288
+ cargs.append("-debug")
289
+ if params.get("force"):
290
+ cargs.append("-force")
291
+ if params.get("nthreads") is not None:
292
+ cargs.extend([
293
+ "-nthreads",
294
+ str(params.get("nthreads"))
295
+ ])
296
+ cargs.append("[CONFIG]")
297
+ if params.get("help"):
298
+ cargs.append("-help")
299
+ if params.get("version"):
300
+ cargs.append("-version")
301
+ if params.get("ants_b") is not None:
302
+ cargs.extend([
303
+ "-ants.b",
304
+ params.get("ants_b")
305
+ ])
306
+ if params.get("ants_c") is not None:
307
+ cargs.extend([
308
+ "-ants.c",
309
+ params.get("ants_c")
310
+ ])
311
+ if params.get("ants_s") is not None:
312
+ cargs.extend([
313
+ "-ants.s",
314
+ params.get("ants_s")
315
+ ])
316
+ return cargs
317
+
318
+
319
+ def dwibiascorrect_outputs(
320
+ params: DwibiascorrectParameters,
321
+ execution: Execution,
322
+ ) -> DwibiascorrectOutputs:
323
+ """
324
+ Build outputs object containing output file paths and possibly stdout/stderr.
325
+
326
+ Args:
327
+ params: The parameters.
328
+ execution: The execution object for resolving input paths.
329
+ Returns:
330
+ Outputs object.
331
+ """
332
+ ret = DwibiascorrectOutputs(
333
+ root=execution.output_file("."),
334
+ output_image_file=execution.output_file(params.get("output_image")),
335
+ bias_image_file=execution.output_file(pathlib.Path(params.get("bias_image")).name) if (params.get("bias_image") is not None) else None,
336
+ )
337
+ return ret
338
+
339
+
340
+ def dwibiascorrect_execute(
341
+ params: DwibiascorrectParameters,
342
+ execution: Execution,
343
+ ) -> DwibiascorrectOutputs:
344
+ """
345
+ Perform B1 field inhomogeneity correction for a DWI volume series using either
346
+ ANTs or FSL.
347
+
348
+ Author: MRTrix3 Developers
349
+
350
+ URL: https://www.mrtrix.org/
351
+
352
+ Args:
353
+ params: The parameters.
354
+ execution: The execution object.
355
+ Returns:
356
+ NamedTuple of outputs (described in `DwibiascorrectOutputs`).
357
+ """
358
+ params = execution.params(params)
359
+ cargs = dwibiascorrect_cargs(params, execution)
360
+ ret = dwibiascorrect_outputs(params, execution)
361
+ execution.run(cargs)
362
+ return ret
363
+
364
+
365
+ def dwibiascorrect(
366
+ algorithm: str,
367
+ input_image: InputPathType,
368
+ output_image: str,
369
+ grad: InputPathType | None = None,
370
+ fslgrad: DwibiascorrectFslgradParameters | None = None,
371
+ mask_image: InputPathType | None = None,
372
+ bias_image: InputPathType | None = None,
373
+ nocleanup: bool = False,
374
+ scratch_dir: InputPathType | None = None,
375
+ continue_scratch_dir: list[InputPathType] | None = None,
376
+ info: bool = False,
377
+ quiet: bool = False,
378
+ debug: bool = False,
379
+ force: bool = False,
380
+ nthreads: float | None = None,
381
+ help_: bool = False,
382
+ version: bool = False,
383
+ ants_b: str | None = None,
384
+ ants_c: str | None = None,
385
+ ants_s: str | None = None,
386
+ runner: Runner | None = None,
387
+ ) -> DwibiascorrectOutputs:
388
+ """
389
+ Perform B1 field inhomogeneity correction for a DWI volume series using either
390
+ ANTs or FSL.
391
+
392
+ Author: MRTrix3 Developers
393
+
394
+ URL: https://www.mrtrix.org/
395
+
396
+ Args:
397
+ algorithm: Select the algorithm to be used for bias correction. Options\
398
+ are: ants, fsl.
399
+ input_image: The input image series to be corrected.
400
+ output_image: The output corrected image series.
401
+ grad: Provide the diffusion gradient table in MRtrix format.
402
+ fslgrad: Provide the diffusion-weighted gradient scheme used in the\
403
+ acquisition in FSL bvecs/bvals format files. If a diffusion gradient\
404
+ scheme is present in the input image header, the data provided with\
405
+ this option will be instead used.
406
+ mask_image: Manually provide a mask image for bias field estimation.
407
+ bias_image: Output the estimated bias field.
408
+ nocleanup: Do not delete intermediate files during script execution,\
409
+ and do not delete scratch directory at script completion.
410
+ scratch_dir: Manually specify the path in which to generate the scratch\
411
+ directory.
412
+ continue_scratch_dir: Continue the script from a previous execution;\
413
+ must provide the scratch directory path.
414
+ info: Display information messages.
415
+ quiet: Do not display information messages or progress status.
416
+ debug: Display debugging messages.
417
+ force: Force overwrite of output files.
418
+ nthreads: Use this number of threads in multi-threaded applications\
419
+ (set to 0 to disable multi-threading).
420
+ help_: Display help information and exit.
421
+ version: Display version information and exit.
422
+ ants_b: N4BiasFieldCorrection option -b (initial mesh resolution in mm,\
423
+ spline order).
424
+ ants_c: N4BiasFieldCorrection option -c (number of iterations,\
425
+ convergence threshold).
426
+ ants_s: N4BiasFieldCorrection option -s (shrink-factor applied to\
427
+ spatial dimensions).
428
+ runner: Command runner.
429
+ Returns:
430
+ NamedTuple of outputs (described in `DwibiascorrectOutputs`).
431
+ """
432
+ runner = runner or get_global_runner()
433
+ execution = runner.start_execution(DWIBIASCORRECT_METADATA)
434
+ params = dwibiascorrect_params(
435
+ algorithm=algorithm,
436
+ input_image=input_image,
437
+ output_image=output_image,
438
+ grad=grad,
439
+ fslgrad=fslgrad,
440
+ mask_image=mask_image,
441
+ bias_image=bias_image,
442
+ nocleanup=nocleanup,
443
+ scratch_dir=scratch_dir,
444
+ continue_scratch_dir=continue_scratch_dir,
445
+ info=info,
446
+ quiet=quiet,
447
+ debug=debug,
448
+ force=force,
449
+ nthreads=nthreads,
450
+ help_=help_,
451
+ version=version,
452
+ ants_b=ants_b,
453
+ ants_c=ants_c,
454
+ ants_s=ants_s,
455
+ )
456
+ return dwibiascorrect_execute(params, execution)
457
+
458
+
459
+ __all__ = [
460
+ "DWIBIASCORRECT_METADATA",
461
+ "DwibiascorrectFslgradParameters",
462
+ "DwibiascorrectOutputs",
463
+ "DwibiascorrectParameters",
464
+ "dwibiascorrect",
465
+ "dwibiascorrect_fslgrad_params",
466
+ "dwibiascorrect_params",
467
+ ]