niwrap-mrtrix 0.6.3__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.3.dist-info/METADATA +0 -8
  121. niwrap_mrtrix-0.6.3.dist-info/RECORD +0 -119
  122. niwrap_mrtrix-0.6.3.dist-info/WHEEL +0 -4
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  DWI2RESPONSE_METADATA = Metadata(
9
- id="5d77f6a3345b62f3c24a0d777ee55aa027113b39.boutiques",
9
+ id="a5bba2228d610c2212f7a54e18b1cd513bb93b58.boutiques",
10
10
  name="dwi2response",
11
11
  package="mrtrix",
12
12
  container_image_tag="mrtrix3/mrtrix3:3.0.4",
@@ -14,7 +14,20 @@ DWI2RESPONSE_METADATA = Metadata(
14
14
 
15
15
 
16
16
  Dwi2responseDhollanderParameters = typing.TypedDict('Dwi2responseDhollanderParameters', {
17
- "__STYXTYPE__": typing.Literal["dhollander"],
17
+ "@type": typing.NotRequired[typing.Literal["dhollander"]],
18
+ "input": InputPathType,
19
+ "out_sfwm": str,
20
+ "out_gm": str,
21
+ "out_csf": str,
22
+ "erode": typing.NotRequired[int | None],
23
+ "fa": typing.NotRequired[float | None],
24
+ "sfwm": typing.NotRequired[float | None],
25
+ "gm": typing.NotRequired[float | None],
26
+ "csf": typing.NotRequired[float | None],
27
+ "wm_algo": typing.NotRequired[typing.Literal["fa", "tax", "tournier"] | None],
28
+ })
29
+ Dwi2responseDhollanderParametersTagged = typing.TypedDict('Dwi2responseDhollanderParametersTagged', {
30
+ "@type": typing.Literal["dhollander"],
18
31
  "input": InputPathType,
19
32
  "out_sfwm": str,
20
33
  "out_gm": str,
@@ -29,7 +42,15 @@ Dwi2responseDhollanderParameters = typing.TypedDict('Dwi2responseDhollanderParam
29
42
 
30
43
 
31
44
  Dwi2responseFaParameters = typing.TypedDict('Dwi2responseFaParameters', {
32
- "__STYXTYPE__": typing.Literal["fa"],
45
+ "@type": typing.NotRequired[typing.Literal["fa"]],
46
+ "input": InputPathType,
47
+ "output": str,
48
+ "erode": typing.NotRequired[int | None],
49
+ "number": typing.NotRequired[int | None],
50
+ "threshold": typing.NotRequired[float | None],
51
+ })
52
+ Dwi2responseFaParametersTagged = typing.TypedDict('Dwi2responseFaParametersTagged', {
53
+ "@type": typing.Literal["fa"],
33
54
  "input": InputPathType,
34
55
  "output": str,
35
56
  "erode": typing.NotRequired[int | None],
@@ -39,7 +60,14 @@ Dwi2responseFaParameters = typing.TypedDict('Dwi2responseFaParameters', {
39
60
 
40
61
 
41
62
  Dwi2responseManualParameters = typing.TypedDict('Dwi2responseManualParameters', {
42
- "__STYXTYPE__": typing.Literal["manual"],
63
+ "@type": typing.NotRequired[typing.Literal["manual"]],
64
+ "input": InputPathType,
65
+ "in_voxels": InputPathType,
66
+ "output": str,
67
+ "dirs": typing.NotRequired[InputPathType | None],
68
+ })
69
+ Dwi2responseManualParametersTagged = typing.TypedDict('Dwi2responseManualParametersTagged', {
70
+ "@type": typing.Literal["manual"],
43
71
  "input": InputPathType,
44
72
  "in_voxels": InputPathType,
45
73
  "output": str,
@@ -48,7 +76,20 @@ Dwi2responseManualParameters = typing.TypedDict('Dwi2responseManualParameters',
48
76
 
49
77
 
50
78
  Dwi2responseMsmt5ttParameters = typing.TypedDict('Dwi2responseMsmt5ttParameters', {
51
- "__STYXTYPE__": typing.Literal["msmt_5tt"],
79
+ "@type": typing.NotRequired[typing.Literal["msmt_5tt"]],
80
+ "input": InputPathType,
81
+ "in_5tt": InputPathType,
82
+ "out_wm": str,
83
+ "out_gm": str,
84
+ "out_csf": str,
85
+ "dirs": typing.NotRequired[InputPathType | None],
86
+ "fa": typing.NotRequired[float | None],
87
+ "pvf": typing.NotRequired[float | None],
88
+ "wm_algo": typing.NotRequired[typing.Literal["fa", "tax", "tournier"] | None],
89
+ "sfwm_fa_threshold": typing.NotRequired[float | None],
90
+ })
91
+ Dwi2responseMsmt5ttParametersTagged = typing.TypedDict('Dwi2responseMsmt5ttParametersTagged', {
92
+ "@type": typing.Literal["msmt_5tt"],
52
93
  "input": InputPathType,
53
94
  "in_5tt": InputPathType,
54
95
  "out_wm": str,
@@ -63,7 +104,15 @@ Dwi2responseMsmt5ttParameters = typing.TypedDict('Dwi2responseMsmt5ttParameters'
63
104
 
64
105
 
65
106
  Dwi2responseTaxParameters = typing.TypedDict('Dwi2responseTaxParameters', {
66
- "__STYXTYPE__": typing.Literal["tax"],
107
+ "@type": typing.NotRequired[typing.Literal["tax"]],
108
+ "input": InputPathType,
109
+ "output": str,
110
+ "peak_ratio": typing.NotRequired[float | None],
111
+ "max_iters": typing.NotRequired[int | None],
112
+ "convergence": typing.NotRequired[float | None],
113
+ })
114
+ Dwi2responseTaxParametersTagged = typing.TypedDict('Dwi2responseTaxParametersTagged', {
115
+ "@type": typing.Literal["tax"],
67
116
  "input": InputPathType,
68
117
  "output": str,
69
118
  "peak_ratio": typing.NotRequired[float | None],
@@ -73,7 +122,16 @@ Dwi2responseTaxParameters = typing.TypedDict('Dwi2responseTaxParameters', {
73
122
 
74
123
 
75
124
  Dwi2responseTournierParameters = typing.TypedDict('Dwi2responseTournierParameters', {
76
- "__STYXTYPE__": typing.Literal["tournier"],
125
+ "@type": typing.NotRequired[typing.Literal["tournier"]],
126
+ "input": InputPathType,
127
+ "output": str,
128
+ "number": typing.NotRequired[int | None],
129
+ "iter_voxels": typing.NotRequired[int | None],
130
+ "dilate": typing.NotRequired[int | None],
131
+ "max_iters": typing.NotRequired[int | None],
132
+ })
133
+ Dwi2responseTournierParametersTagged = typing.TypedDict('Dwi2responseTournierParametersTagged', {
134
+ "@type": typing.Literal["tournier"],
77
135
  "input": InputPathType,
78
136
  "output": str,
79
137
  "number": typing.NotRequired[int | None],
@@ -84,22 +142,53 @@ Dwi2responseTournierParameters = typing.TypedDict('Dwi2responseTournierParameter
84
142
 
85
143
 
86
144
  Dwi2responseFslgradParameters = typing.TypedDict('Dwi2responseFslgradParameters', {
87
- "__STYXTYPE__": typing.Literal["fslgrad"],
145
+ "@type": typing.NotRequired[typing.Literal["fslgrad"]],
146
+ "bvecs": InputPathType,
147
+ "bvals": InputPathType,
148
+ })
149
+ Dwi2responseFslgradParametersTagged = typing.TypedDict('Dwi2responseFslgradParametersTagged', {
150
+ "@type": typing.Literal["fslgrad"],
88
151
  "bvecs": InputPathType,
89
152
  "bvals": InputPathType,
90
153
  })
91
154
 
92
155
 
93
156
  Dwi2responseConfigParameters = typing.TypedDict('Dwi2responseConfigParameters', {
94
- "__STYXTYPE__": typing.Literal["config"],
157
+ "@type": typing.NotRequired[typing.Literal["config"]],
158
+ "key": str,
159
+ "value": str,
160
+ })
161
+ Dwi2responseConfigParametersTagged = typing.TypedDict('Dwi2responseConfigParametersTagged', {
162
+ "@type": typing.Literal["config"],
95
163
  "key": str,
96
164
  "value": str,
97
165
  })
98
166
 
99
167
 
100
168
  Dwi2responseParameters = typing.TypedDict('Dwi2responseParameters', {
101
- "__STYXTYPE__": typing.Literal["dwi2response"],
102
- "algorithm": typing.Union[Dwi2responseDhollanderParameters, Dwi2responseFaParameters, Dwi2responseManualParameters, Dwi2responseMsmt5ttParameters, Dwi2responseTaxParameters, Dwi2responseTournierParameters],
169
+ "@type": typing.NotRequired[typing.Literal["mrtrix/dwi2response"]],
170
+ "algorithm": typing.Union[Dwi2responseDhollanderParametersTagged, Dwi2responseFaParametersTagged, Dwi2responseManualParametersTagged, Dwi2responseMsmt5ttParametersTagged, Dwi2responseTaxParametersTagged, Dwi2responseTournierParametersTagged],
171
+ "grad": typing.NotRequired[InputPathType | None],
172
+ "fslgrad": typing.NotRequired[Dwi2responseFslgradParameters | None],
173
+ "mask": typing.NotRequired[InputPathType | None],
174
+ "voxels": typing.NotRequired[str | None],
175
+ "shells": typing.NotRequired[list[int] | None],
176
+ "lmax": typing.NotRequired[list[int] | None],
177
+ "nocleanup": bool,
178
+ "scratch": typing.NotRequired[str | None],
179
+ "continue": typing.NotRequired[str | None],
180
+ "info": bool,
181
+ "quiet": bool,
182
+ "debug": bool,
183
+ "force": bool,
184
+ "nthreads": typing.NotRequired[int | None],
185
+ "config": typing.NotRequired[list[Dwi2responseConfigParameters] | None],
186
+ "help": bool,
187
+ "version": bool,
188
+ })
189
+ Dwi2responseParametersTagged = typing.TypedDict('Dwi2responseParametersTagged', {
190
+ "@type": typing.Literal["mrtrix/dwi2response"],
191
+ "algorithm": typing.Union[Dwi2responseDhollanderParametersTagged, Dwi2responseFaParametersTagged, Dwi2responseManualParametersTagged, Dwi2responseMsmt5ttParametersTagged, Dwi2responseTaxParametersTagged, Dwi2responseTournierParametersTagged],
103
192
  "grad": typing.NotRequired[InputPathType | None],
104
193
  "fslgrad": typing.NotRequired[Dwi2responseFslgradParameters | None],
105
194
  "mask": typing.NotRequired[InputPathType | None],
@@ -120,7 +209,7 @@ Dwi2responseParameters = typing.TypedDict('Dwi2responseParameters', {
120
209
  })
121
210
 
122
211
 
123
- def dyn_cargs(
212
+ def dwi2response_algorithm_cargs_dyn_fn(
124
213
  t: str,
125
214
  ) -> typing.Any:
126
215
  """
@@ -132,19 +221,16 @@ def dyn_cargs(
132
221
  Build cargs function.
133
222
  """
134
223
  return {
135
- "dwi2response": dwi2response_cargs,
136
224
  "dhollander": dwi2response_dhollander_cargs,
137
225
  "fa": dwi2response_fa_cargs,
138
226
  "manual": dwi2response_manual_cargs,
139
227
  "msmt_5tt": dwi2response_msmt_5tt_cargs,
140
228
  "tax": dwi2response_tax_cargs,
141
229
  "tournier": dwi2response_tournier_cargs,
142
- "fslgrad": dwi2response_fslgrad_cargs,
143
- "config": dwi2response_config_cargs,
144
230
  }.get(t)
145
231
 
146
232
 
147
- def dyn_outputs(
233
+ def dwi2response_algorithm_outputs_dyn_fn(
148
234
  t: str,
149
235
  ) -> typing.Any:
150
236
  """
@@ -156,7 +242,6 @@ def dyn_outputs(
156
242
  Build outputs function.
157
243
  """
158
244
  return {
159
- "dwi2response": dwi2response_outputs,
160
245
  "dhollander": dwi2response_dhollander_outputs,
161
246
  "fa": dwi2response_fa_outputs,
162
247
  "manual": dwi2response_manual_outputs,
@@ -191,7 +276,7 @@ def dwi2response_dhollander_params(
191
276
  gm: float | None = None,
192
277
  csf: float | None = None,
193
278
  wm_algo: typing.Literal["fa", "tax", "tournier"] | None = None,
194
- ) -> Dwi2responseDhollanderParameters:
279
+ ) -> Dwi2responseDhollanderParametersTagged:
195
280
  """
196
281
  Build parameters.
197
282
 
@@ -216,7 +301,7 @@ def dwi2response_dhollander_params(
216
301
  Parameter dictionary
217
302
  """
218
303
  params = {
219
- "__STYXTYPE__": "dhollander",
304
+ "@type": "dhollander",
220
305
  "input": input_,
221
306
  "out_sfwm": out_sfwm,
222
307
  "out_gm": out_gm,
@@ -252,39 +337,39 @@ def dwi2response_dhollander_cargs(
252
337
  """
253
338
  cargs = []
254
339
  cargs.append("dhollander")
255
- cargs.append(execution.input_file(params.get("input")))
256
- cargs.append(params.get("out_sfwm"))
257
- cargs.append(params.get("out_gm"))
258
- cargs.append(params.get("out_csf"))
259
- if params.get("erode") is not None:
340
+ cargs.append(execution.input_file(params.get("input", None)))
341
+ cargs.append(params.get("out_sfwm", None))
342
+ cargs.append(params.get("out_gm", None))
343
+ cargs.append(params.get("out_csf", None))
344
+ if params.get("erode", None) is not None:
260
345
  cargs.extend([
261
346
  "-erode",
262
- str(params.get("erode"))
347
+ str(params.get("erode", None))
263
348
  ])
264
- if params.get("fa") is not None:
349
+ if params.get("fa", None) is not None:
265
350
  cargs.extend([
266
351
  "-fa",
267
- str(params.get("fa"))
352
+ str(params.get("fa", None))
268
353
  ])
269
- if params.get("sfwm") is not None:
354
+ if params.get("sfwm", None) is not None:
270
355
  cargs.extend([
271
356
  "-sfwm",
272
- str(params.get("sfwm"))
357
+ str(params.get("sfwm", None))
273
358
  ])
274
- if params.get("gm") is not None:
359
+ if params.get("gm", None) is not None:
275
360
  cargs.extend([
276
361
  "-gm",
277
- str(params.get("gm"))
362
+ str(params.get("gm", None))
278
363
  ])
279
- if params.get("csf") is not None:
364
+ if params.get("csf", None) is not None:
280
365
  cargs.extend([
281
366
  "-csf",
282
- str(params.get("csf"))
367
+ str(params.get("csf", None))
283
368
  ])
284
- if params.get("wm_algo") is not None:
369
+ if params.get("wm_algo", None) is not None:
285
370
  cargs.extend([
286
371
  "-wm_algo",
287
- params.get("wm_algo")
372
+ params.get("wm_algo", None)
288
373
  ])
289
374
  return cargs
290
375
 
@@ -304,9 +389,9 @@ def dwi2response_dhollander_outputs(
304
389
  """
305
390
  ret = Dwi2responseDhollanderOutputs(
306
391
  root=execution.output_file("."),
307
- out_sfwm=execution.output_file(params.get("out_sfwm")),
308
- out_gm=execution.output_file(params.get("out_gm")),
309
- out_csf=execution.output_file(params.get("out_csf")),
392
+ out_sfwm=execution.output_file(params.get("out_sfwm", None)),
393
+ out_gm=execution.output_file(params.get("out_gm", None)),
394
+ out_csf=execution.output_file(params.get("out_csf", None)),
310
395
  )
311
396
  return ret
312
397
 
@@ -327,7 +412,7 @@ def dwi2response_fa_params(
327
412
  erode: int | None = None,
328
413
  number: int | None = None,
329
414
  threshold: float | None = None,
330
- ) -> Dwi2responseFaParameters:
415
+ ) -> Dwi2responseFaParametersTagged:
331
416
  """
332
417
  Build parameters.
333
418
 
@@ -343,7 +428,7 @@ def dwi2response_fa_params(
343
428
  Parameter dictionary
344
429
  """
345
430
  params = {
346
- "__STYXTYPE__": "fa",
431
+ "@type": "fa",
347
432
  "input": input_,
348
433
  "output": output,
349
434
  }
@@ -371,22 +456,22 @@ def dwi2response_fa_cargs(
371
456
  """
372
457
  cargs = []
373
458
  cargs.append("fa")
374
- cargs.append(execution.input_file(params.get("input")))
375
- cargs.append(params.get("output"))
376
- if params.get("erode") is not None:
459
+ cargs.append(execution.input_file(params.get("input", None)))
460
+ cargs.append(params.get("output", None))
461
+ if params.get("erode", None) is not None:
377
462
  cargs.extend([
378
463
  "-erode",
379
- str(params.get("erode"))
464
+ str(params.get("erode", None))
380
465
  ])
381
- if params.get("number") is not None:
466
+ if params.get("number", None) is not None:
382
467
  cargs.extend([
383
468
  "-number",
384
- str(params.get("number"))
469
+ str(params.get("number", None))
385
470
  ])
386
- if params.get("threshold") is not None:
471
+ if params.get("threshold", None) is not None:
387
472
  cargs.extend([
388
473
  "-threshold",
389
- str(params.get("threshold"))
474
+ str(params.get("threshold", None))
390
475
  ])
391
476
  return cargs
392
477
 
@@ -406,7 +491,7 @@ def dwi2response_fa_outputs(
406
491
  """
407
492
  ret = Dwi2responseFaOutputs(
408
493
  root=execution.output_file("."),
409
- output=execution.output_file(params.get("output")),
494
+ output=execution.output_file(params.get("output", None)),
410
495
  )
411
496
  return ret
412
497
 
@@ -426,7 +511,7 @@ def dwi2response_manual_params(
426
511
  in_voxels: InputPathType,
427
512
  output: str,
428
513
  dirs: InputPathType | None = None,
429
- ) -> Dwi2responseManualParameters:
514
+ ) -> Dwi2responseManualParametersTagged:
430
515
  """
431
516
  Build parameters.
432
517
 
@@ -440,7 +525,7 @@ def dwi2response_manual_params(
440
525
  Parameter dictionary
441
526
  """
442
527
  params = {
443
- "__STYXTYPE__": "manual",
528
+ "@type": "manual",
444
529
  "input": input_,
445
530
  "in_voxels": in_voxels,
446
531
  "output": output,
@@ -465,13 +550,13 @@ def dwi2response_manual_cargs(
465
550
  """
466
551
  cargs = []
467
552
  cargs.append("manual")
468
- cargs.append(execution.input_file(params.get("input")))
469
- cargs.append(execution.input_file(params.get("in_voxels")))
470
- cargs.append(params.get("output"))
471
- if params.get("dirs") is not None:
553
+ cargs.append(execution.input_file(params.get("input", None)))
554
+ cargs.append(execution.input_file(params.get("in_voxels", None)))
555
+ cargs.append(params.get("output", None))
556
+ if params.get("dirs", None) is not None:
472
557
  cargs.extend([
473
558
  "-dirs",
474
- execution.input_file(params.get("dirs"))
559
+ execution.input_file(params.get("dirs", None))
475
560
  ])
476
561
  return cargs
477
562
 
@@ -491,7 +576,7 @@ def dwi2response_manual_outputs(
491
576
  """
492
577
  ret = Dwi2responseManualOutputs(
493
578
  root=execution.output_file("."),
494
- output=execution.output_file(params.get("output")),
579
+ output=execution.output_file(params.get("output", None)),
495
580
  )
496
581
  return ret
497
582
 
@@ -521,7 +606,7 @@ def dwi2response_msmt_5tt_params(
521
606
  pvf: float | None = None,
522
607
  wm_algo: typing.Literal["fa", "tax", "tournier"] | None = None,
523
608
  sfwm_fa_threshold: float | None = None,
524
- ) -> Dwi2responseMsmt5ttParameters:
609
+ ) -> Dwi2responseMsmt5ttParametersTagged:
525
610
  """
526
611
  Build parameters.
527
612
 
@@ -546,7 +631,7 @@ def dwi2response_msmt_5tt_params(
546
631
  Parameter dictionary
547
632
  """
548
633
  params = {
549
- "__STYXTYPE__": "msmt_5tt",
634
+ "@type": "msmt_5tt",
550
635
  "input": input_,
551
636
  "in_5tt": in_5tt,
552
637
  "out_wm": out_wm,
@@ -581,35 +666,35 @@ def dwi2response_msmt_5tt_cargs(
581
666
  """
582
667
  cargs = []
583
668
  cargs.append("msmt_5tt")
584
- cargs.append(execution.input_file(params.get("input")))
585
- cargs.append(execution.input_file(params.get("in_5tt")))
586
- cargs.append(params.get("out_wm"))
587
- cargs.append(params.get("out_gm"))
588
- cargs.append(params.get("out_csf"))
589
- if params.get("dirs") is not None:
669
+ cargs.append(execution.input_file(params.get("input", None)))
670
+ cargs.append(execution.input_file(params.get("in_5tt", None)))
671
+ cargs.append(params.get("out_wm", None))
672
+ cargs.append(params.get("out_gm", None))
673
+ cargs.append(params.get("out_csf", None))
674
+ if params.get("dirs", None) is not None:
590
675
  cargs.extend([
591
676
  "-dirs",
592
- execution.input_file(params.get("dirs"))
677
+ execution.input_file(params.get("dirs", None))
593
678
  ])
594
- if params.get("fa") is not None:
679
+ if params.get("fa", None) is not None:
595
680
  cargs.extend([
596
681
  "-fa",
597
- str(params.get("fa"))
682
+ str(params.get("fa", None))
598
683
  ])
599
- if params.get("pvf") is not None:
684
+ if params.get("pvf", None) is not None:
600
685
  cargs.extend([
601
686
  "-pvf",
602
- str(params.get("pvf"))
687
+ str(params.get("pvf", None))
603
688
  ])
604
- if params.get("wm_algo") is not None:
689
+ if params.get("wm_algo", None) is not None:
605
690
  cargs.extend([
606
691
  "-wm_algo",
607
- params.get("wm_algo")
692
+ params.get("wm_algo", None)
608
693
  ])
609
- if params.get("sfwm_fa_threshold") is not None:
694
+ if params.get("sfwm_fa_threshold", None) is not None:
610
695
  cargs.extend([
611
696
  "-sfwm_fa_threshold",
612
- str(params.get("sfwm_fa_threshold"))
697
+ str(params.get("sfwm_fa_threshold", None))
613
698
  ])
614
699
  return cargs
615
700
 
@@ -629,9 +714,9 @@ def dwi2response_msmt_5tt_outputs(
629
714
  """
630
715
  ret = Dwi2responseMsmt5ttOutputs(
631
716
  root=execution.output_file("."),
632
- out_wm=execution.output_file(params.get("out_wm")),
633
- out_gm=execution.output_file(params.get("out_gm")),
634
- out_csf=execution.output_file(params.get("out_csf")),
717
+ out_wm=execution.output_file(params.get("out_wm", None)),
718
+ out_gm=execution.output_file(params.get("out_gm", None)),
719
+ out_csf=execution.output_file(params.get("out_csf", None)),
635
720
  )
636
721
  return ret
637
722
 
@@ -652,7 +737,7 @@ def dwi2response_tax_params(
652
737
  peak_ratio: float | None = None,
653
738
  max_iters: int | None = None,
654
739
  convergence: float | None = None,
655
- ) -> Dwi2responseTaxParameters:
740
+ ) -> Dwi2responseTaxParametersTagged:
656
741
  """
657
742
  Build parameters.
658
743
 
@@ -667,7 +752,7 @@ def dwi2response_tax_params(
667
752
  Parameter dictionary
668
753
  """
669
754
  params = {
670
- "__STYXTYPE__": "tax",
755
+ "@type": "tax",
671
756
  "input": input_,
672
757
  "output": output,
673
758
  }
@@ -695,22 +780,22 @@ def dwi2response_tax_cargs(
695
780
  """
696
781
  cargs = []
697
782
  cargs.append("tax")
698
- cargs.append(execution.input_file(params.get("input")))
699
- cargs.append(params.get("output"))
700
- if params.get("peak_ratio") is not None:
783
+ cargs.append(execution.input_file(params.get("input", None)))
784
+ cargs.append(params.get("output", None))
785
+ if params.get("peak_ratio", None) is not None:
701
786
  cargs.extend([
702
787
  "-peak_ratio",
703
- str(params.get("peak_ratio"))
788
+ str(params.get("peak_ratio", None))
704
789
  ])
705
- if params.get("max_iters") is not None:
790
+ if params.get("max_iters", None) is not None:
706
791
  cargs.extend([
707
792
  "-max_iters",
708
- str(params.get("max_iters"))
793
+ str(params.get("max_iters", None))
709
794
  ])
710
- if params.get("convergence") is not None:
795
+ if params.get("convergence", None) is not None:
711
796
  cargs.extend([
712
797
  "-convergence",
713
- str(params.get("convergence"))
798
+ str(params.get("convergence", None))
714
799
  ])
715
800
  return cargs
716
801
 
@@ -730,7 +815,7 @@ def dwi2response_tax_outputs(
730
815
  """
731
816
  ret = Dwi2responseTaxOutputs(
732
817
  root=execution.output_file("."),
733
- output=execution.output_file(params.get("output")),
818
+ output=execution.output_file(params.get("output", None)),
734
819
  )
735
820
  return ret
736
821
 
@@ -752,7 +837,7 @@ def dwi2response_tournier_params(
752
837
  iter_voxels: int | None = None,
753
838
  dilate: int | None = None,
754
839
  max_iters: int | None = None,
755
- ) -> Dwi2responseTournierParameters:
840
+ ) -> Dwi2responseTournierParametersTagged:
756
841
  """
757
842
  Build parameters.
758
843
 
@@ -770,7 +855,7 @@ def dwi2response_tournier_params(
770
855
  Parameter dictionary
771
856
  """
772
857
  params = {
773
- "__STYXTYPE__": "tournier",
858
+ "@type": "tournier",
774
859
  "input": input_,
775
860
  "output": output,
776
861
  }
@@ -800,27 +885,27 @@ def dwi2response_tournier_cargs(
800
885
  """
801
886
  cargs = []
802
887
  cargs.append("tournier")
803
- cargs.append(execution.input_file(params.get("input")))
804
- cargs.append(params.get("output"))
805
- if params.get("number") is not None:
888
+ cargs.append(execution.input_file(params.get("input", None)))
889
+ cargs.append(params.get("output", None))
890
+ if params.get("number", None) is not None:
806
891
  cargs.extend([
807
892
  "-number",
808
- str(params.get("number"))
893
+ str(params.get("number", None))
809
894
  ])
810
- if params.get("iter_voxels") is not None:
895
+ if params.get("iter_voxels", None) is not None:
811
896
  cargs.extend([
812
897
  "-iter_voxels",
813
- str(params.get("iter_voxels"))
898
+ str(params.get("iter_voxels", None))
814
899
  ])
815
- if params.get("dilate") is not None:
900
+ if params.get("dilate", None) is not None:
816
901
  cargs.extend([
817
902
  "-dilate",
818
- str(params.get("dilate"))
903
+ str(params.get("dilate", None))
819
904
  ])
820
- if params.get("max_iters") is not None:
905
+ if params.get("max_iters", None) is not None:
821
906
  cargs.extend([
822
907
  "-max_iters",
823
- str(params.get("max_iters"))
908
+ str(params.get("max_iters", None))
824
909
  ])
825
910
  return cargs
826
911
 
@@ -840,7 +925,7 @@ def dwi2response_tournier_outputs(
840
925
  """
841
926
  ret = Dwi2responseTournierOutputs(
842
927
  root=execution.output_file("."),
843
- output=execution.output_file(params.get("output")),
928
+ output=execution.output_file(params.get("output", None)),
844
929
  )
845
930
  return ret
846
931
 
@@ -848,7 +933,7 @@ def dwi2response_tournier_outputs(
848
933
  def dwi2response_fslgrad_params(
849
934
  bvecs: InputPathType,
850
935
  bvals: InputPathType,
851
- ) -> Dwi2responseFslgradParameters:
936
+ ) -> Dwi2responseFslgradParametersTagged:
852
937
  """
853
938
  Build parameters.
854
939
 
@@ -865,7 +950,7 @@ def dwi2response_fslgrad_params(
865
950
  Parameter dictionary
866
951
  """
867
952
  params = {
868
- "__STYXTYPE__": "fslgrad",
953
+ "@type": "fslgrad",
869
954
  "bvecs": bvecs,
870
955
  "bvals": bvals,
871
956
  }
@@ -887,15 +972,15 @@ def dwi2response_fslgrad_cargs(
887
972
  """
888
973
  cargs = []
889
974
  cargs.append("-fslgrad")
890
- cargs.append(execution.input_file(params.get("bvecs")))
891
- cargs.append(execution.input_file(params.get("bvals")))
975
+ cargs.append(execution.input_file(params.get("bvecs", None)))
976
+ cargs.append(execution.input_file(params.get("bvals", None)))
892
977
  return cargs
893
978
 
894
979
 
895
980
  def dwi2response_config_params(
896
981
  key: str,
897
982
  value: str,
898
- ) -> Dwi2responseConfigParameters:
983
+ ) -> Dwi2responseConfigParametersTagged:
899
984
  """
900
985
  Build parameters.
901
986
 
@@ -906,7 +991,7 @@ def dwi2response_config_params(
906
991
  Parameter dictionary
907
992
  """
908
993
  params = {
909
- "__STYXTYPE__": "config",
994
+ "@type": "config",
910
995
  "key": key,
911
996
  "value": value,
912
997
  }
@@ -928,14 +1013,14 @@ def dwi2response_config_cargs(
928
1013
  """
929
1014
  cargs = []
930
1015
  cargs.append("-config")
931
- cargs.append(params.get("key"))
932
- cargs.append(params.get("value"))
1016
+ cargs.append(params.get("key", None))
1017
+ cargs.append(params.get("value", None))
933
1018
  return cargs
934
1019
 
935
1020
 
936
1021
  class Dwi2responseOutputs(typing.NamedTuple):
937
1022
  """
938
- Output object returned when calling `dwi2response(...)`.
1023
+ Output object returned when calling `Dwi2responseParameters(...)`.
939
1024
  """
940
1025
  root: OutputPathType
941
1026
  """Output root folder. This is the root folder for all outputs."""
@@ -947,7 +1032,7 @@ class Dwi2responseOutputs(typing.NamedTuple):
947
1032
 
948
1033
 
949
1034
  def dwi2response_params(
950
- algorithm: typing.Union[Dwi2responseDhollanderParameters, Dwi2responseFaParameters, Dwi2responseManualParameters, Dwi2responseMsmt5ttParameters, Dwi2responseTaxParameters, Dwi2responseTournierParameters],
1035
+ algorithm: typing.Union[Dwi2responseDhollanderParametersTagged, Dwi2responseFaParametersTagged, Dwi2responseManualParametersTagged, Dwi2responseMsmt5ttParametersTagged, Dwi2responseTaxParametersTagged, Dwi2responseTournierParametersTagged],
951
1036
  grad: InputPathType | None = None,
952
1037
  fslgrad: Dwi2responseFslgradParameters | None = None,
953
1038
  mask: InputPathType | None = None,
@@ -965,7 +1050,7 @@ def dwi2response_params(
965
1050
  config: list[Dwi2responseConfigParameters] | None = None,
966
1051
  help_: bool = False,
967
1052
  version: bool = False,
968
- ) -> Dwi2responseParameters:
1053
+ ) -> Dwi2responseParametersTagged:
969
1054
  """
970
1055
  Build parameters.
971
1056
 
@@ -1006,7 +1091,7 @@ def dwi2response_params(
1006
1091
  Parameter dictionary
1007
1092
  """
1008
1093
  params = {
1009
- "__STYXTYPE__": "dwi2response",
1094
+ "@type": "mrtrix/dwi2response",
1010
1095
  "algorithm": algorithm,
1011
1096
  "nocleanup": nocleanup,
1012
1097
  "info": info,
@@ -1054,64 +1139,64 @@ def dwi2response_cargs(
1054
1139
  """
1055
1140
  cargs = []
1056
1141
  cargs.append("dwi2response")
1057
- cargs.extend(dyn_cargs(params.get("algorithm")["__STYXTYPE__"])(params.get("algorithm"), execution))
1058
- if params.get("grad") is not None:
1142
+ cargs.extend(dwi2response_algorithm_cargs_dyn_fn(params.get("algorithm", None)["@type"])(params.get("algorithm", None), execution))
1143
+ if params.get("grad", None) is not None:
1059
1144
  cargs.extend([
1060
1145
  "-grad",
1061
- execution.input_file(params.get("grad"))
1146
+ execution.input_file(params.get("grad", None))
1062
1147
  ])
1063
- if params.get("fslgrad") is not None:
1064
- cargs.extend(dyn_cargs(params.get("fslgrad")["__STYXTYPE__"])(params.get("fslgrad"), execution))
1065
- if params.get("mask") is not None:
1148
+ if params.get("fslgrad", None) is not None:
1149
+ cargs.extend(dwi2response_fslgrad_cargs(params.get("fslgrad", None), execution))
1150
+ if params.get("mask", None) is not None:
1066
1151
  cargs.extend([
1067
1152
  "-mask",
1068
- execution.input_file(params.get("mask"))
1153
+ execution.input_file(params.get("mask", None))
1069
1154
  ])
1070
- if params.get("voxels") is not None:
1155
+ if params.get("voxels", None) is not None:
1071
1156
  cargs.extend([
1072
1157
  "-voxels",
1073
- params.get("voxels")
1158
+ params.get("voxels", None)
1074
1159
  ])
1075
- if params.get("shells") is not None:
1160
+ if params.get("shells", None) is not None:
1076
1161
  cargs.extend([
1077
1162
  "-shells",
1078
- ",".join(map(str, params.get("shells")))
1163
+ ",".join(map(str, params.get("shells", None)))
1079
1164
  ])
1080
- if params.get("lmax") is not None:
1165
+ if params.get("lmax", None) is not None:
1081
1166
  cargs.extend([
1082
1167
  "-lmax",
1083
- ",".join(map(str, params.get("lmax")))
1168
+ ",".join(map(str, params.get("lmax", None)))
1084
1169
  ])
1085
- if params.get("nocleanup"):
1170
+ if params.get("nocleanup", False):
1086
1171
  cargs.append("-nocleanup")
1087
- if params.get("scratch") is not None:
1172
+ if params.get("scratch", None) is not None:
1088
1173
  cargs.extend([
1089
1174
  "-scratch",
1090
- params.get("scratch")
1175
+ params.get("scratch", None)
1091
1176
  ])
1092
- if params.get("continue") is not None:
1177
+ if params.get("continue", None) is not None:
1093
1178
  cargs.extend([
1094
1179
  "-continue",
1095
- params.get("continue")
1180
+ params.get("continue", None)
1096
1181
  ])
1097
- if params.get("info"):
1182
+ if params.get("info", False):
1098
1183
  cargs.append("-info")
1099
- if params.get("quiet"):
1184
+ if params.get("quiet", False):
1100
1185
  cargs.append("-quiet")
1101
- if params.get("debug"):
1186
+ if params.get("debug", False):
1102
1187
  cargs.append("-debug")
1103
- if params.get("force"):
1188
+ if params.get("force", False):
1104
1189
  cargs.append("-force")
1105
- if params.get("nthreads") is not None:
1190
+ if params.get("nthreads", None) is not None:
1106
1191
  cargs.extend([
1107
1192
  "-nthreads",
1108
- str(params.get("nthreads"))
1193
+ str(params.get("nthreads", None))
1109
1194
  ])
1110
- if params.get("config") is not None:
1111
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
1112
- if params.get("help"):
1195
+ if params.get("config", None) is not None:
1196
+ cargs.extend([a for c in [dwi2response_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
1197
+ if params.get("help", False):
1113
1198
  cargs.append("-help")
1114
- if params.get("version"):
1199
+ if params.get("version", False):
1115
1200
  cargs.append("-version")
1116
1201
  return cargs
1117
1202
 
@@ -1131,16 +1216,18 @@ def dwi2response_outputs(
1131
1216
  """
1132
1217
  ret = Dwi2responseOutputs(
1133
1218
  root=execution.output_file("."),
1134
- algorithm=dyn_outputs(params.get("algorithm")["__STYXTYPE__"])(params.get("algorithm"), execution),
1219
+ algorithm=dwi2response_algorithm_outputs_dyn_fn(params.get("algorithm")["@type"])(params.get("algorithm"), execution),
1135
1220
  )
1136
1221
  return ret
1137
1222
 
1138
1223
 
1139
1224
  def dwi2response_execute(
1140
1225
  params: Dwi2responseParameters,
1141
- execution: Execution,
1226
+ runner: Runner | None = None,
1142
1227
  ) -> Dwi2responseOutputs:
1143
1228
  """
1229
+ dwi2response
1230
+
1144
1231
  Estimate response function(s) for spherical deconvolution.
1145
1232
  dwi2response offers different algorithms for performing various types of
1146
1233
  response function estimation. The name of the algorithm must appear as the
@@ -1156,10 +1243,12 @@ def dwi2response_execute(
1156
1243
 
1157
1244
  Args:
1158
1245
  params: The parameters.
1159
- execution: The execution object.
1246
+ runner: Command runner.
1160
1247
  Returns:
1161
1248
  NamedTuple of outputs (described in `Dwi2responseOutputs`).
1162
1249
  """
1250
+ runner = runner or get_global_runner()
1251
+ execution = runner.start_execution(DWI2RESPONSE_METADATA)
1163
1252
  params = execution.params(params)
1164
1253
  cargs = dwi2response_cargs(params, execution)
1165
1254
  ret = dwi2response_outputs(params, execution)
@@ -1168,7 +1257,7 @@ def dwi2response_execute(
1168
1257
 
1169
1258
 
1170
1259
  def dwi2response(
1171
- algorithm: typing.Union[Dwi2responseDhollanderParameters, Dwi2responseFaParameters, Dwi2responseManualParameters, Dwi2responseMsmt5ttParameters, Dwi2responseTaxParameters, Dwi2responseTournierParameters],
1260
+ algorithm: typing.Union[Dwi2responseDhollanderParametersTagged, Dwi2responseFaParametersTagged, Dwi2responseManualParametersTagged, Dwi2responseMsmt5ttParametersTagged, Dwi2responseTaxParametersTagged, Dwi2responseTournierParametersTagged],
1172
1261
  grad: InputPathType | None = None,
1173
1262
  fslgrad: Dwi2responseFslgradParameters | None = None,
1174
1263
  mask: InputPathType | None = None,
@@ -1189,6 +1278,8 @@ def dwi2response(
1189
1278
  runner: Runner | None = None,
1190
1279
  ) -> Dwi2responseOutputs:
1191
1280
  """
1281
+ dwi2response
1282
+
1192
1283
  Estimate response function(s) for spherical deconvolution.
1193
1284
  dwi2response offers different algorithms for performing various types of
1194
1285
  response function estimation. The name of the algorithm must appear as the
@@ -1239,8 +1330,6 @@ def dwi2response(
1239
1330
  Returns:
1240
1331
  NamedTuple of outputs (described in `Dwi2responseOutputs`).
1241
1332
  """
1242
- runner = runner or get_global_runner()
1243
- execution = runner.start_execution(DWI2RESPONSE_METADATA)
1244
1333
  params = dwi2response_params(
1245
1334
  algorithm=algorithm,
1246
1335
  grad=grad,
@@ -1261,30 +1350,22 @@ def dwi2response(
1261
1350
  help_=help_,
1262
1351
  version=version,
1263
1352
  )
1264
- return dwi2response_execute(params, execution)
1353
+ return dwi2response_execute(params, runner)
1265
1354
 
1266
1355
 
1267
1356
  __all__ = [
1268
1357
  "DWI2RESPONSE_METADATA",
1269
- "Dwi2responseConfigParameters",
1270
1358
  "Dwi2responseDhollanderOutputs",
1271
- "Dwi2responseDhollanderParameters",
1272
1359
  "Dwi2responseFaOutputs",
1273
- "Dwi2responseFaParameters",
1274
- "Dwi2responseFslgradParameters",
1275
1360
  "Dwi2responseManualOutputs",
1276
- "Dwi2responseManualParameters",
1277
1361
  "Dwi2responseMsmt5ttOutputs",
1278
- "Dwi2responseMsmt5ttParameters",
1279
1362
  "Dwi2responseOutputs",
1280
- "Dwi2responseParameters",
1281
1363
  "Dwi2responseTaxOutputs",
1282
- "Dwi2responseTaxParameters",
1283
1364
  "Dwi2responseTournierOutputs",
1284
- "Dwi2responseTournierParameters",
1285
1365
  "dwi2response",
1286
1366
  "dwi2response_config_params",
1287
1367
  "dwi2response_dhollander_params",
1368
+ "dwi2response_execute",
1288
1369
  "dwi2response_fa_params",
1289
1370
  "dwi2response_fslgrad_params",
1290
1371
  "dwi2response_manual_params",