niwrap-mrtrix 0.6.2__py3-none-any.whl → 0.7.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 (122) hide show
  1. niwrap_mrtrix/mrtrix/__init__.py +133 -0
  2. niwrap_mrtrix/mrtrix/afdconnectivity.py +59 -68
  3. niwrap_mrtrix/mrtrix/amp2response.py +72 -77
  4. niwrap_mrtrix/mrtrix/amp2sh.py +109 -74
  5. niwrap_mrtrix/mrtrix/connectome2tck.py +77 -79
  6. niwrap_mrtrix/mrtrix/connectomeedit.py +52 -62
  7. niwrap_mrtrix/mrtrix/connectomestats.py +117 -104
  8. niwrap_mrtrix/mrtrix/dcmedit.py +68 -73
  9. niwrap_mrtrix/mrtrix/dcminfo.py +67 -72
  10. niwrap_mrtrix/mrtrix/dirflip.py +56 -66
  11. niwrap_mrtrix/mrtrix/dirgen.py +68 -75
  12. niwrap_mrtrix/mrtrix/dirmerge.py +56 -66
  13. niwrap_mrtrix/mrtrix/dirorder.py +53 -64
  14. niwrap_mrtrix/mrtrix/dirsplit.py +56 -66
  15. niwrap_mrtrix/mrtrix/dirstat.py +70 -75
  16. niwrap_mrtrix/mrtrix/dwi2adc.py +67 -74
  17. niwrap_mrtrix/mrtrix/dwi2fod.py +141 -96
  18. niwrap_mrtrix/mrtrix/dwi2mask.py +70 -76
  19. niwrap_mrtrix/mrtrix/dwi2response.py +238 -157
  20. niwrap_mrtrix/mrtrix/dwi2tensor.py +87 -88
  21. niwrap_mrtrix/mrtrix/dwibiascorrect.py +97 -95
  22. niwrap_mrtrix/mrtrix/dwidenoise.py +67 -74
  23. niwrap_mrtrix/mrtrix/dwiextract.py +143 -99
  24. niwrap_mrtrix/mrtrix/dwigradcheck.py +89 -91
  25. niwrap_mrtrix/mrtrix/fixel2peaks.py +77 -51
  26. niwrap_mrtrix/mrtrix/fixel2sh.py +54 -65
  27. niwrap_mrtrix/mrtrix/fixel2tsf.py +56 -66
  28. niwrap_mrtrix/mrtrix/fixel2voxel.py +62 -70
  29. niwrap_mrtrix/mrtrix/fixelcfestats.py +145 -93
  30. niwrap_mrtrix/mrtrix/fixelconnectivity.py +62 -70
  31. niwrap_mrtrix/mrtrix/fixelconvert.py +136 -69
  32. niwrap_mrtrix/mrtrix/fixelcorrespondence.py +61 -69
  33. niwrap_mrtrix/mrtrix/fixelcrop.py +53 -64
  34. niwrap_mrtrix/mrtrix/fixelfilter.py +139 -71
  35. niwrap_mrtrix/mrtrix/fixelreorient.py +53 -64
  36. niwrap_mrtrix/mrtrix/fod2dec.py +70 -75
  37. niwrap_mrtrix/mrtrix/fod2fixel.py +84 -85
  38. niwrap_mrtrix/mrtrix/label2colour.py +58 -67
  39. niwrap_mrtrix/mrtrix/label2mesh.py +53 -64
  40. niwrap_mrtrix/mrtrix/labelconvert.py +58 -67
  41. niwrap_mrtrix/mrtrix/labelstats.py +53 -63
  42. niwrap_mrtrix/mrtrix/maskdump.py +52 -64
  43. niwrap_mrtrix/mrtrix/maskfilter.py +93 -61
  44. niwrap_mrtrix/mrtrix/mesh2voxel.py +53 -64
  45. niwrap_mrtrix/mrtrix/meshconvert.py +66 -73
  46. niwrap_mrtrix/mrtrix/meshfilter.py +59 -68
  47. niwrap_mrtrix/mrtrix/mraverageheader.py +62 -70
  48. niwrap_mrtrix/mrtrix/mrcalc.py +522 -397
  49. niwrap_mrtrix/mrtrix/mrcat.py +59 -68
  50. niwrap_mrtrix/mrtrix/mrcentroid.py +53 -63
  51. niwrap_mrtrix/mrtrix/mrcheckerboardmask.py +58 -67
  52. niwrap_mrtrix/mrtrix/mrclusterstats.py +119 -105
  53. niwrap_mrtrix/mrtrix/mrcolour.py +62 -70
  54. niwrap_mrtrix/mrtrix/mrconvert.py +275 -173
  55. niwrap_mrtrix/mrtrix/mrdegibbs.py +66 -73
  56. niwrap_mrtrix/mrtrix/mrdump.py +55 -66
  57. niwrap_mrtrix/mrtrix/mredit.py +97 -94
  58. niwrap_mrtrix/mrtrix/mrfilter.py +124 -81
  59. niwrap_mrtrix/mrtrix/mrgrid.py +131 -88
  60. niwrap_mrtrix/mrtrix/mrhistmatch.py +64 -71
  61. niwrap_mrtrix/mrtrix/mrhistogram.py +64 -71
  62. niwrap_mrtrix/mrtrix/mrinfo.py +160 -137
  63. niwrap_mrtrix/mrtrix/mrmath.py +65 -73
  64. niwrap_mrtrix/mrtrix/mrmetric.py +69 -73
  65. niwrap_mrtrix/mrtrix/mrregister.py +263 -212
  66. niwrap_mrtrix/mrtrix/mrstats.py +66 -72
  67. niwrap_mrtrix/mrtrix/mrthreshold.py +80 -81
  68. niwrap_mrtrix/mrtrix/mrtransform.py +162 -109
  69. niwrap_mrtrix/mrtrix/mtnormalise.py +85 -88
  70. niwrap_mrtrix/mrtrix/peaks2amp.py +51 -63
  71. niwrap_mrtrix/mrtrix/peaks2fixel.py +54 -65
  72. niwrap_mrtrix/mrtrix/responsemean.py +51 -62
  73. niwrap_mrtrix/mrtrix/sh2amp.py +98 -65
  74. niwrap_mrtrix/mrtrix/sh2peaks.py +81 -83
  75. niwrap_mrtrix/mrtrix/sh2power.py +53 -64
  76. niwrap_mrtrix/mrtrix/sh2response.py +62 -70
  77. niwrap_mrtrix/mrtrix/shbasis.py +51 -62
  78. niwrap_mrtrix/mrtrix/shconv.py +78 -52
  79. niwrap_mrtrix/mrtrix/tck2connectome.py +93 -88
  80. niwrap_mrtrix/mrtrix/tck2fixel.py +57 -65
  81. niwrap_mrtrix/mrtrix/tckconvert.py +99 -65
  82. niwrap_mrtrix/mrtrix/tckdfc.py +82 -83
  83. niwrap_mrtrix/mrtrix/tckedit.py +240 -122
  84. niwrap_mrtrix/mrtrix/tckgen.py +364 -207
  85. niwrap_mrtrix/mrtrix/tckglobal.py +127 -115
  86. niwrap_mrtrix/mrtrix/tckinfo.py +50 -61
  87. niwrap_mrtrix/mrtrix/tckmap.py +121 -79
  88. niwrap_mrtrix/mrtrix/tckresample.py +97 -93
  89. niwrap_mrtrix/mrtrix/tcksample.py +62 -69
  90. niwrap_mrtrix/mrtrix/tcksift.py +102 -97
  91. niwrap_mrtrix/mrtrix/tcksift2.py +119 -107
  92. niwrap_mrtrix/mrtrix/tckstats.py +72 -78
  93. niwrap_mrtrix/mrtrix/tcktransform.py +53 -64
  94. niwrap_mrtrix/mrtrix/tensor2metric.py +93 -94
  95. niwrap_mrtrix/mrtrix/transformcalc.py +53 -64
  96. niwrap_mrtrix/mrtrix/transformcompose.py +74 -48
  97. niwrap_mrtrix/mrtrix/transformconvert.py +53 -64
  98. niwrap_mrtrix/mrtrix/tsfdivide.py +53 -64
  99. niwrap_mrtrix/mrtrix/tsfinfo.py +53 -63
  100. niwrap_mrtrix/mrtrix/tsfmult.py +51 -63
  101. niwrap_mrtrix/mrtrix/tsfsmooth.py +54 -65
  102. niwrap_mrtrix/mrtrix/tsfthreshold.py +55 -65
  103. niwrap_mrtrix/mrtrix/tsfvalidate.py +50 -61
  104. niwrap_mrtrix/mrtrix/v_5tt2gmwmi.py +54 -65
  105. niwrap_mrtrix/mrtrix/v_5tt2vis.py +69 -75
  106. niwrap_mrtrix/mrtrix/v_5ttcheck.py +51 -62
  107. niwrap_mrtrix/mrtrix/v_5ttedit.py +73 -79
  108. niwrap_mrtrix/mrtrix/v_5ttgen.py +132 -86
  109. niwrap_mrtrix/mrtrix/vectorstats.py +92 -88
  110. niwrap_mrtrix/mrtrix/voxel2fixel.py +54 -63
  111. niwrap_mrtrix/mrtrix/voxel2mesh.py +56 -66
  112. niwrap_mrtrix/mrtrix/warp2metric.py +71 -77
  113. niwrap_mrtrix/mrtrix/warpconvert.py +61 -69
  114. niwrap_mrtrix/mrtrix/warpcorrect.py +61 -71
  115. niwrap_mrtrix/mrtrix/warpinit.py +51 -63
  116. niwrap_mrtrix/mrtrix/warpinvert.py +56 -66
  117. niwrap_mrtrix-0.7.0.dist-info/METADATA +8 -0
  118. niwrap_mrtrix-0.7.0.dist-info/RECORD +119 -0
  119. niwrap_mrtrix-0.7.0.dist-info/WHEEL +4 -0
  120. niwrap_mrtrix-0.6.2.dist-info/METADATA +0 -8
  121. niwrap_mrtrix-0.6.2.dist-info/RECORD +0 -119
  122. niwrap_mrtrix-0.6.2.dist-info/WHEEL +0 -4
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  DWIGRADCHECK_METADATA = Metadata(
9
- id="b63fbe847bb47d08242042634d2e24c551124586.boutiques",
9
+ id="da91c0d77a46dd23fc98bad56497487a81e19371.boutiques",
10
10
  name="dwigradcheck",
11
11
  package="mrtrix",
12
12
  container_image_tag="mrtrix3/mrtrix3:3.0.4",
@@ -14,21 +14,52 @@ DWIGRADCHECK_METADATA = Metadata(
14
14
 
15
15
 
16
16
  DwigradcheckFslgradParameters = typing.TypedDict('DwigradcheckFslgradParameters', {
17
- "__STYXTYPE__": typing.Literal["fslgrad"],
17
+ "@type": typing.NotRequired[typing.Literal["fslgrad"]],
18
+ "bvecs": InputPathType,
19
+ "bvals": InputPathType,
20
+ })
21
+ DwigradcheckFslgradParametersTagged = typing.TypedDict('DwigradcheckFslgradParametersTagged', {
22
+ "@type": typing.Literal["fslgrad"],
18
23
  "bvecs": InputPathType,
19
24
  "bvals": InputPathType,
20
25
  })
21
26
 
22
27
 
23
28
  DwigradcheckExportGradFslParameters = typing.TypedDict('DwigradcheckExportGradFslParameters', {
24
- "__STYXTYPE__": typing.Literal["export_grad_fsl"],
29
+ "@type": typing.NotRequired[typing.Literal["export_grad_fsl"]],
30
+ "bvecs_path": str,
31
+ "bvals_path": str,
32
+ })
33
+ DwigradcheckExportGradFslParametersTagged = typing.TypedDict('DwigradcheckExportGradFslParametersTagged', {
34
+ "@type": typing.Literal["export_grad_fsl"],
25
35
  "bvecs_path": str,
26
36
  "bvals_path": str,
27
37
  })
28
38
 
29
39
 
30
40
  DwigradcheckParameters = typing.TypedDict('DwigradcheckParameters', {
31
- "__STYXTYPE__": typing.Literal["dwigradcheck"],
41
+ "@type": typing.NotRequired[typing.Literal["mrtrix/dwigradcheck"]],
42
+ "input_image": InputPathType,
43
+ "grad": typing.NotRequired[InputPathType | None],
44
+ "fslgrad": typing.NotRequired[DwigradcheckFslgradParameters | None],
45
+ "mask_image": typing.NotRequired[InputPathType | None],
46
+ "number": typing.NotRequired[int | None],
47
+ "export_grad_mrtrix": typing.NotRequired[str | None],
48
+ "export_grad_fsl": typing.NotRequired[DwigradcheckExportGradFslParameters | None],
49
+ "nocleanup": bool,
50
+ "scratch_dir": typing.NotRequired[InputPathType | None],
51
+ "continue_scratch_dir": typing.NotRequired[list[InputPathType] | None],
52
+ "info": bool,
53
+ "quiet": bool,
54
+ "debug": bool,
55
+ "force": bool,
56
+ "nthreads": typing.NotRequired[float | None],
57
+ "config": typing.NotRequired[list[str] | None],
58
+ "help": bool,
59
+ "version": bool,
60
+ })
61
+ DwigradcheckParametersTagged = typing.TypedDict('DwigradcheckParametersTagged', {
62
+ "@type": typing.Literal["mrtrix/dwigradcheck"],
32
63
  "input_image": InputPathType,
33
64
  "grad": typing.NotRequired[InputPathType | None],
34
65
  "fslgrad": typing.NotRequired[DwigradcheckFslgradParameters | None],
@@ -48,47 +79,12 @@ DwigradcheckParameters = typing.TypedDict('DwigradcheckParameters', {
48
79
  "help": bool,
49
80
  "version": bool,
50
81
  })
51
-
52
-
53
- def dyn_cargs(
54
- t: str,
55
- ) -> typing.Any:
56
- """
57
- Get build cargs function by command type.
58
-
59
- Args:
60
- t: Command type.
61
- Returns:
62
- Build cargs function.
63
- """
64
- return {
65
- "dwigradcheck": dwigradcheck_cargs,
66
- "fslgrad": dwigradcheck_fslgrad_cargs,
67
- "export_grad_fsl": dwigradcheck_export_grad_fsl_cargs,
68
- }.get(t)
69
-
70
-
71
- def dyn_outputs(
72
- t: str,
73
- ) -> typing.Any:
74
- """
75
- Get build outputs function by command type.
76
-
77
- Args:
78
- t: Command type.
79
- Returns:
80
- Build outputs function.
81
- """
82
- return {
83
- "dwigradcheck": dwigradcheck_outputs,
84
- "export_grad_fsl": dwigradcheck_export_grad_fsl_outputs,
85
- }.get(t)
86
82
 
87
83
 
88
84
  def dwigradcheck_fslgrad_params(
89
85
  bvecs: InputPathType,
90
86
  bvals: InputPathType,
91
- ) -> DwigradcheckFslgradParameters:
87
+ ) -> DwigradcheckFslgradParametersTagged:
92
88
  """
93
89
  Build parameters.
94
90
 
@@ -105,7 +101,7 @@ def dwigradcheck_fslgrad_params(
105
101
  Parameter dictionary
106
102
  """
107
103
  params = {
108
- "__STYXTYPE__": "fslgrad",
104
+ "@type": "fslgrad",
109
105
  "bvecs": bvecs,
110
106
  "bvals": bvals,
111
107
  }
@@ -127,8 +123,8 @@ def dwigradcheck_fslgrad_cargs(
127
123
  """
128
124
  cargs = []
129
125
  cargs.append("-fslgrad")
130
- cargs.append(execution.input_file(params.get("bvecs")))
131
- cargs.append(execution.input_file(params.get("bvals")))
126
+ cargs.append(execution.input_file(params.get("bvecs", None)))
127
+ cargs.append(execution.input_file(params.get("bvals", None)))
132
128
  return cargs
133
129
 
134
130
 
@@ -149,7 +145,7 @@ class DwigradcheckExportGradFslOutputs(typing.NamedTuple):
149
145
  def dwigradcheck_export_grad_fsl_params(
150
146
  bvecs_path: str,
151
147
  bvals_path: str,
152
- ) -> DwigradcheckExportGradFslParameters:
148
+ ) -> DwigradcheckExportGradFslParametersTagged:
153
149
  """
154
150
  Build parameters.
155
151
 
@@ -162,7 +158,7 @@ def dwigradcheck_export_grad_fsl_params(
162
158
  Parameter dictionary
163
159
  """
164
160
  params = {
165
- "__STYXTYPE__": "export_grad_fsl",
161
+ "@type": "export_grad_fsl",
166
162
  "bvecs_path": bvecs_path,
167
163
  "bvals_path": bvals_path,
168
164
  }
@@ -184,8 +180,8 @@ def dwigradcheck_export_grad_fsl_cargs(
184
180
  """
185
181
  cargs = []
186
182
  cargs.append("-export_grad_fsl")
187
- cargs.append(params.get("bvecs_path"))
188
- cargs.append(params.get("bvals_path"))
183
+ cargs.append(params.get("bvecs_path", None))
184
+ cargs.append(params.get("bvals_path", None))
189
185
  return cargs
190
186
 
191
187
 
@@ -204,15 +200,15 @@ def dwigradcheck_export_grad_fsl_outputs(
204
200
  """
205
201
  ret = DwigradcheckExportGradFslOutputs(
206
202
  root=execution.output_file("."),
207
- bvecs_path=execution.output_file(params.get("bvecs_path")),
208
- bvals_path=execution.output_file(params.get("bvals_path")),
203
+ bvecs_path=execution.output_file(params.get("bvecs_path", None)),
204
+ bvals_path=execution.output_file(params.get("bvals_path", None)),
209
205
  )
210
206
  return ret
211
207
 
212
208
 
213
209
  class DwigradcheckOutputs(typing.NamedTuple):
214
210
  """
215
- Output object returned when calling `dwigradcheck(...)`.
211
+ Output object returned when calling `DwigradcheckParameters(...)`.
216
212
  """
217
213
  root: OutputPathType
218
214
  """Output root folder. This is the root folder for all outputs."""
@@ -243,7 +239,7 @@ def dwigradcheck_params(
243
239
  config: list[str] | None = None,
244
240
  help_: bool = False,
245
241
  version: bool = False,
246
- ) -> DwigradcheckParameters:
242
+ ) -> DwigradcheckParametersTagged:
247
243
  """
248
244
  Build parameters.
249
245
 
@@ -279,7 +275,7 @@ def dwigradcheck_params(
279
275
  Parameter dictionary
280
276
  """
281
277
  params = {
282
- "__STYXTYPE__": "dwigradcheck",
278
+ "@type": "mrtrix/dwigradcheck",
283
279
  "input_image": input_image,
284
280
  "nocleanup": nocleanup,
285
281
  "info": info,
@@ -327,64 +323,64 @@ def dwigradcheck_cargs(
327
323
  """
328
324
  cargs = []
329
325
  cargs.append("dwigradcheck")
330
- cargs.append(execution.input_file(params.get("input_image")))
331
- if params.get("grad") is not None:
326
+ cargs.append(execution.input_file(params.get("input_image", None)))
327
+ if params.get("grad", None) is not None:
332
328
  cargs.extend([
333
329
  "-grad",
334
- execution.input_file(params.get("grad"))
330
+ execution.input_file(params.get("grad", None))
335
331
  ])
336
- if params.get("fslgrad") is not None:
337
- cargs.extend(dyn_cargs(params.get("fslgrad")["__STYXTYPE__"])(params.get("fslgrad"), execution))
338
- if params.get("mask_image") is not None:
332
+ if params.get("fslgrad", None) is not None:
333
+ cargs.extend(dwigradcheck_fslgrad_cargs(params.get("fslgrad", None), execution))
334
+ if params.get("mask_image", None) is not None:
339
335
  cargs.extend([
340
336
  "-mask",
341
- execution.input_file(params.get("mask_image"))
337
+ execution.input_file(params.get("mask_image", None))
342
338
  ])
343
- if params.get("number") is not None:
339
+ if params.get("number", None) is not None:
344
340
  cargs.extend([
345
341
  "-number",
346
- str(params.get("number"))
342
+ str(params.get("number", None))
347
343
  ])
348
- if params.get("export_grad_mrtrix") is not None:
344
+ if params.get("export_grad_mrtrix", None) is not None:
349
345
  cargs.extend([
350
346
  "-export_grad_mrtrix",
351
- params.get("export_grad_mrtrix")
347
+ params.get("export_grad_mrtrix", None)
352
348
  ])
353
- if params.get("export_grad_fsl") is not None:
354
- cargs.extend(dyn_cargs(params.get("export_grad_fsl")["__STYXTYPE__"])(params.get("export_grad_fsl"), execution))
355
- if params.get("nocleanup"):
349
+ if params.get("export_grad_fsl", None) is not None:
350
+ cargs.extend(dwigradcheck_export_grad_fsl_cargs(params.get("export_grad_fsl", None), execution))
351
+ if params.get("nocleanup", False):
356
352
  cargs.append("-nocleanup")
357
- if params.get("scratch_dir") is not None:
353
+ if params.get("scratch_dir", None) is not None:
358
354
  cargs.extend([
359
355
  "-scratch",
360
- execution.input_file(params.get("scratch_dir"))
356
+ execution.input_file(params.get("scratch_dir", None))
361
357
  ])
362
- if params.get("continue_scratch_dir") is not None:
358
+ if params.get("continue_scratch_dir", None) is not None:
363
359
  cargs.extend([
364
360
  "-continue",
365
- *[execution.input_file(f) for f in params.get("continue_scratch_dir")]
361
+ *[execution.input_file(f) for f in params.get("continue_scratch_dir", None)]
366
362
  ])
367
- if params.get("info"):
363
+ if params.get("info", False):
368
364
  cargs.append("-info")
369
- if params.get("quiet"):
365
+ if params.get("quiet", False):
370
366
  cargs.append("-quiet")
371
- if params.get("debug"):
367
+ if params.get("debug", False):
372
368
  cargs.append("-debug")
373
- if params.get("force"):
369
+ if params.get("force", False):
374
370
  cargs.append("-force")
375
- if params.get("nthreads") is not None:
371
+ if params.get("nthreads", None) is not None:
376
372
  cargs.extend([
377
373
  "-nthreads",
378
- str(params.get("nthreads"))
374
+ str(params.get("nthreads", None))
379
375
  ])
380
- if params.get("config") is not None:
376
+ if params.get("config", None) is not None:
381
377
  cargs.extend([
382
378
  "-config",
383
- *params.get("config")
379
+ *params.get("config", None)
384
380
  ])
385
- if params.get("help"):
381
+ if params.get("help", False):
386
382
  cargs.append("-help")
387
- if params.get("version"):
383
+ if params.get("version", False):
388
384
  cargs.append("-version")
389
385
  return cargs
390
386
 
@@ -404,18 +400,20 @@ def dwigradcheck_outputs(
404
400
  """
405
401
  ret = DwigradcheckOutputs(
406
402
  root=execution.output_file("."),
407
- export_grad_mrtrix=execution.output_file(params.get("export_grad_mrtrix")) if (params.get("export_grad_mrtrix") is not None) else None,
408
- export_grad_fsl=execution.output_file(params.get("export_grad_mrtrix")) if (params.get("export_grad_mrtrix") is not None) else None,
409
- export_grad_fsl_=dyn_outputs(params.get("export_grad_fsl")["__STYXTYPE__"])(params.get("export_grad_fsl"), execution) if params.get("export_grad_fsl") else None,
403
+ export_grad_mrtrix=execution.output_file(params.get("export_grad_mrtrix", None)) if (params.get("export_grad_mrtrix") is not None) else None,
404
+ export_grad_fsl=execution.output_file(params.get("export_grad_mrtrix", None)) if (params.get("export_grad_mrtrix") is not None) else None,
405
+ export_grad_fsl_=dwigradcheck_export_grad_fsl_outputs(params.get("export_grad_fsl"), execution) if params.get("export_grad_fsl") else None,
410
406
  )
411
407
  return ret
412
408
 
413
409
 
414
410
  def dwigradcheck_execute(
415
411
  params: DwigradcheckParameters,
416
- execution: Execution,
412
+ runner: Runner | None = None,
417
413
  ) -> DwigradcheckOutputs:
418
414
  """
415
+ dwigradcheck
416
+
419
417
  Check the orientation of the diffusion gradient table.
420
418
 
421
419
  Author: MRTrix3 Developers
@@ -424,10 +422,12 @@ def dwigradcheck_execute(
424
422
 
425
423
  Args:
426
424
  params: The parameters.
427
- execution: The execution object.
425
+ runner: Command runner.
428
426
  Returns:
429
427
  NamedTuple of outputs (described in `DwigradcheckOutputs`).
430
428
  """
429
+ runner = runner or get_global_runner()
430
+ execution = runner.start_execution(DWIGRADCHECK_METADATA)
431
431
  params = execution.params(params)
432
432
  cargs = dwigradcheck_cargs(params, execution)
433
433
  ret = dwigradcheck_outputs(params, execution)
@@ -457,6 +457,8 @@ def dwigradcheck(
457
457
  runner: Runner | None = None,
458
458
  ) -> DwigradcheckOutputs:
459
459
  """
460
+ dwigradcheck
461
+
460
462
  Check the orientation of the diffusion gradient table.
461
463
 
462
464
  Author: MRTrix3 Developers
@@ -495,8 +497,6 @@ def dwigradcheck(
495
497
  Returns:
496
498
  NamedTuple of outputs (described in `DwigradcheckOutputs`).
497
499
  """
498
- runner = runner or get_global_runner()
499
- execution = runner.start_execution(DWIGRADCHECK_METADATA)
500
500
  params = dwigradcheck_params(
501
501
  input_image=input_image,
502
502
  grad=grad,
@@ -517,17 +517,15 @@ def dwigradcheck(
517
517
  help_=help_,
518
518
  version=version,
519
519
  )
520
- return dwigradcheck_execute(params, execution)
520
+ return dwigradcheck_execute(params, runner)
521
521
 
522
522
 
523
523
  __all__ = [
524
524
  "DWIGRADCHECK_METADATA",
525
525
  "DwigradcheckExportGradFslOutputs",
526
- "DwigradcheckExportGradFslParameters",
527
- "DwigradcheckFslgradParameters",
528
526
  "DwigradcheckOutputs",
529
- "DwigradcheckParameters",
530
527
  "dwigradcheck",
528
+ "dwigradcheck_execute",
531
529
  "dwigradcheck_export_grad_fsl_params",
532
530
  "dwigradcheck_fslgrad_params",
533
531
  "dwigradcheck_params",