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
  FIXELFILTER_METADATA = Metadata(
9
- id="7740c3daac540db34d0b5cf2ca567029c3529f83.boutiques",
9
+ id="b5e8a361d7de5f948949260328ab5131eb18a9b7.boutiques",
10
10
  name="fixelfilter",
11
11
  package="mrtrix",
12
12
  container_image_tag="mrtrix3/mrtrix3:3.0.4",
@@ -14,38 +14,79 @@ FIXELFILTER_METADATA = Metadata(
14
14
 
15
15
 
16
16
  FixelfilterConfigParameters = typing.TypedDict('FixelfilterConfigParameters', {
17
- "__STYXTYPE__": typing.Literal["config"],
17
+ "@type": typing.NotRequired[typing.Literal["config"]],
18
+ "key": str,
19
+ "value": str,
20
+ })
21
+ FixelfilterConfigParametersTagged = typing.TypedDict('FixelfilterConfigParametersTagged', {
22
+ "@type": typing.Literal["config"],
18
23
  "key": str,
19
24
  "value": str,
20
25
  })
21
26
 
22
27
 
23
28
  FixelfilterVariousStringParameters = typing.TypedDict('FixelfilterVariousStringParameters', {
24
- "__STYXTYPE__": typing.Literal["VariousString"],
29
+ "@type": typing.NotRequired[typing.Literal["VariousString"]],
30
+ "obj": str,
31
+ })
32
+ FixelfilterVariousStringParametersTagged = typing.TypedDict('FixelfilterVariousStringParametersTagged', {
33
+ "@type": typing.Literal["VariousString"],
25
34
  "obj": str,
26
35
  })
27
36
 
28
37
 
29
38
  FixelfilterVariousFileParameters = typing.TypedDict('FixelfilterVariousFileParameters', {
30
- "__STYXTYPE__": typing.Literal["VariousFile"],
39
+ "@type": typing.NotRequired[typing.Literal["VariousFile"]],
40
+ "obj": InputPathType,
41
+ })
42
+ FixelfilterVariousFileParametersTagged = typing.TypedDict('FixelfilterVariousFileParametersTagged', {
43
+ "@type": typing.Literal["VariousFile"],
31
44
  "obj": InputPathType,
32
45
  })
33
46
 
34
47
 
35
48
  FixelfilterVariousString1Parameters = typing.TypedDict('FixelfilterVariousString1Parameters', {
36
- "__STYXTYPE__": typing.Literal["VariousString_1"],
49
+ "@type": typing.NotRequired[typing.Literal["VariousString_1"]],
50
+ "obj": str,
51
+ })
52
+ FixelfilterVariousString1ParametersTagged = typing.TypedDict('FixelfilterVariousString1ParametersTagged', {
53
+ "@type": typing.Literal["VariousString_1"],
37
54
  "obj": str,
38
55
  })
39
56
 
40
57
 
41
58
  FixelfilterVariousFile1Parameters = typing.TypedDict('FixelfilterVariousFile1Parameters', {
42
- "__STYXTYPE__": typing.Literal["VariousFile_1"],
59
+ "@type": typing.NotRequired[typing.Literal["VariousFile_1"]],
60
+ "obj": InputPathType,
61
+ })
62
+ FixelfilterVariousFile1ParametersTagged = typing.TypedDict('FixelfilterVariousFile1ParametersTagged', {
63
+ "@type": typing.Literal["VariousFile_1"],
43
64
  "obj": InputPathType,
44
65
  })
45
66
 
46
67
 
47
68
  FixelfilterParameters = typing.TypedDict('FixelfilterParameters', {
48
- "__STYXTYPE__": typing.Literal["fixelfilter"],
69
+ "@type": typing.NotRequired[typing.Literal["mrtrix/fixelfilter"]],
70
+ "matrix": InputPathType,
71
+ "threshold_value": typing.NotRequired[float | None],
72
+ "threshold_connectivity": typing.NotRequired[float | None],
73
+ "fwhm": typing.NotRequired[float | None],
74
+ "minweight": typing.NotRequired[float | None],
75
+ "mask": typing.NotRequired[InputPathType | None],
76
+ "info": bool,
77
+ "quiet": bool,
78
+ "debug": bool,
79
+ "force": bool,
80
+ "nthreads": typing.NotRequired[int | None],
81
+ "config": typing.NotRequired[list[FixelfilterConfigParameters] | None],
82
+ "help": bool,
83
+ "version": bool,
84
+ "input": typing.Union[FixelfilterVariousStringParametersTagged, FixelfilterVariousFileParametersTagged],
85
+ "filter": str,
86
+ "output": typing.Union[FixelfilterVariousString1ParametersTagged, FixelfilterVariousFile1ParametersTagged],
87
+ })
88
+ FixelfilterParametersTagged = typing.TypedDict('FixelfilterParametersTagged', {
89
+ "@type": typing.Literal["mrtrix/fixelfilter"],
49
90
  "matrix": InputPathType,
50
91
  "threshold_value": typing.NotRequired[float | None],
51
92
  "threshold_connectivity": typing.NotRequired[float | None],
@@ -60,13 +101,13 @@ FixelfilterParameters = typing.TypedDict('FixelfilterParameters', {
60
101
  "config": typing.NotRequired[list[FixelfilterConfigParameters] | None],
61
102
  "help": bool,
62
103
  "version": bool,
63
- "input": typing.Union[FixelfilterVariousStringParameters, FixelfilterVariousFileParameters],
104
+ "input": typing.Union[FixelfilterVariousStringParametersTagged, FixelfilterVariousFileParametersTagged],
64
105
  "filter": str,
65
- "output": typing.Union[FixelfilterVariousString1Parameters, FixelfilterVariousFile1Parameters],
106
+ "output": typing.Union[FixelfilterVariousString1ParametersTagged, FixelfilterVariousFile1ParametersTagged],
66
107
  })
67
108
 
68
109
 
69
- def dyn_cargs(
110
+ def fixelfilter_input_cargs_dyn_fn(
70
111
  t: str,
71
112
  ) -> typing.Any:
72
113
  """
@@ -78,16 +119,44 @@ def dyn_cargs(
78
119
  Build cargs function.
79
120
  """
80
121
  return {
81
- "fixelfilter": fixelfilter_cargs,
82
- "config": fixelfilter_config_cargs,
83
122
  "VariousString": fixelfilter_various_string_cargs,
84
123
  "VariousFile": fixelfilter_various_file_cargs,
124
+ }.get(t)
125
+
126
+
127
+ def fixelfilter_input_outputs_dyn_fn(
128
+ t: str,
129
+ ) -> typing.Any:
130
+ """
131
+ Get build outputs function by command type.
132
+
133
+ Args:
134
+ t: Command type.
135
+ Returns:
136
+ Build outputs function.
137
+ """
138
+ return {
139
+ }.get(t)
140
+
141
+
142
+ def fixelfilter_output_cargs_dyn_fn(
143
+ t: str,
144
+ ) -> typing.Any:
145
+ """
146
+ Get build cargs function by command type.
147
+
148
+ Args:
149
+ t: Command type.
150
+ Returns:
151
+ Build cargs function.
152
+ """
153
+ return {
85
154
  "VariousString_1": fixelfilter_various_string_1_cargs,
86
155
  "VariousFile_1": fixelfilter_various_file_1_cargs,
87
156
  }.get(t)
88
157
 
89
158
 
90
- def dyn_outputs(
159
+ def fixelfilter_output_outputs_dyn_fn(
91
160
  t: str,
92
161
  ) -> typing.Any:
93
162
  """
@@ -105,7 +174,7 @@ def dyn_outputs(
105
174
  def fixelfilter_config_params(
106
175
  key: str,
107
176
  value: str,
108
- ) -> FixelfilterConfigParameters:
177
+ ) -> FixelfilterConfigParametersTagged:
109
178
  """
110
179
  Build parameters.
111
180
 
@@ -116,7 +185,7 @@ def fixelfilter_config_params(
116
185
  Parameter dictionary
117
186
  """
118
187
  params = {
119
- "__STYXTYPE__": "config",
188
+ "@type": "config",
120
189
  "key": key,
121
190
  "value": value,
122
191
  }
@@ -138,14 +207,14 @@ def fixelfilter_config_cargs(
138
207
  """
139
208
  cargs = []
140
209
  cargs.append("-config")
141
- cargs.append(params.get("key"))
142
- cargs.append(params.get("value"))
210
+ cargs.append(params.get("key", None))
211
+ cargs.append(params.get("value", None))
143
212
  return cargs
144
213
 
145
214
 
146
215
  def fixelfilter_various_string_params(
147
216
  obj: str,
148
- ) -> FixelfilterVariousStringParameters:
217
+ ) -> FixelfilterVariousStringParametersTagged:
149
218
  """
150
219
  Build parameters.
151
220
 
@@ -155,7 +224,7 @@ def fixelfilter_various_string_params(
155
224
  Parameter dictionary
156
225
  """
157
226
  params = {
158
- "__STYXTYPE__": "VariousString",
227
+ "@type": "VariousString",
159
228
  "obj": obj,
160
229
  }
161
230
  return params
@@ -175,13 +244,13 @@ def fixelfilter_various_string_cargs(
175
244
  Command-line arguments.
176
245
  """
177
246
  cargs = []
178
- cargs.append(params.get("obj"))
247
+ cargs.append(params.get("obj", None))
179
248
  return cargs
180
249
 
181
250
 
182
251
  def fixelfilter_various_file_params(
183
252
  obj: InputPathType,
184
- ) -> FixelfilterVariousFileParameters:
253
+ ) -> FixelfilterVariousFileParametersTagged:
185
254
  """
186
255
  Build parameters.
187
256
 
@@ -191,7 +260,7 @@ def fixelfilter_various_file_params(
191
260
  Parameter dictionary
192
261
  """
193
262
  params = {
194
- "__STYXTYPE__": "VariousFile",
263
+ "@type": "VariousFile",
195
264
  "obj": obj,
196
265
  }
197
266
  return params
@@ -211,13 +280,13 @@ def fixelfilter_various_file_cargs(
211
280
  Command-line arguments.
212
281
  """
213
282
  cargs = []
214
- cargs.append(execution.input_file(params.get("obj")))
283
+ cargs.append(execution.input_file(params.get("obj", None)))
215
284
  return cargs
216
285
 
217
286
 
218
287
  def fixelfilter_various_string_1_params(
219
288
  obj: str,
220
- ) -> FixelfilterVariousString1Parameters:
289
+ ) -> FixelfilterVariousString1ParametersTagged:
221
290
  """
222
291
  Build parameters.
223
292
 
@@ -227,7 +296,7 @@ def fixelfilter_various_string_1_params(
227
296
  Parameter dictionary
228
297
  """
229
298
  params = {
230
- "__STYXTYPE__": "VariousString_1",
299
+ "@type": "VariousString_1",
231
300
  "obj": obj,
232
301
  }
233
302
  return params
@@ -247,13 +316,13 @@ def fixelfilter_various_string_1_cargs(
247
316
  Command-line arguments.
248
317
  """
249
318
  cargs = []
250
- cargs.append(params.get("obj"))
319
+ cargs.append(params.get("obj", None))
251
320
  return cargs
252
321
 
253
322
 
254
323
  def fixelfilter_various_file_1_params(
255
324
  obj: InputPathType,
256
- ) -> FixelfilterVariousFile1Parameters:
325
+ ) -> FixelfilterVariousFile1ParametersTagged:
257
326
  """
258
327
  Build parameters.
259
328
 
@@ -263,7 +332,7 @@ def fixelfilter_various_file_1_params(
263
332
  Parameter dictionary
264
333
  """
265
334
  params = {
266
- "__STYXTYPE__": "VariousFile_1",
335
+ "@type": "VariousFile_1",
267
336
  "obj": obj,
268
337
  }
269
338
  return params
@@ -283,13 +352,13 @@ def fixelfilter_various_file_1_cargs(
283
352
  Command-line arguments.
284
353
  """
285
354
  cargs = []
286
- cargs.append(execution.input_file(params.get("obj")))
355
+ cargs.append(execution.input_file(params.get("obj", None)))
287
356
  return cargs
288
357
 
289
358
 
290
359
  class FixelfilterOutputs(typing.NamedTuple):
291
360
  """
292
- Output object returned when calling `fixelfilter(...)`.
361
+ Output object returned when calling `FixelfilterParameters(...)`.
293
362
  """
294
363
  root: OutputPathType
295
364
  """Output root folder. This is the root folder for all outputs."""
@@ -297,9 +366,9 @@ class FixelfilterOutputs(typing.NamedTuple):
297
366
 
298
367
  def fixelfilter_params(
299
368
  matrix: InputPathType,
300
- input_: typing.Union[FixelfilterVariousStringParameters, FixelfilterVariousFileParameters],
369
+ input_: typing.Union[FixelfilterVariousStringParametersTagged, FixelfilterVariousFileParametersTagged],
301
370
  filter_: str,
302
- output: typing.Union[FixelfilterVariousString1Parameters, FixelfilterVariousFile1Parameters],
371
+ output: typing.Union[FixelfilterVariousString1ParametersTagged, FixelfilterVariousFile1ParametersTagged],
303
372
  threshold_value: float | None = None,
304
373
  threshold_connectivity: float | None = None,
305
374
  fwhm: float | None = None,
@@ -313,7 +382,7 @@ def fixelfilter_params(
313
382
  config: list[FixelfilterConfigParameters] | None = None,
314
383
  help_: bool = False,
315
384
  version: bool = False,
316
- ) -> FixelfilterParameters:
385
+ ) -> FixelfilterParametersTagged:
317
386
  """
318
387
  Build parameters.
319
388
 
@@ -351,7 +420,7 @@ def fixelfilter_params(
351
420
  Parameter dictionary
352
421
  """
353
422
  params = {
354
- "__STYXTYPE__": "fixelfilter",
423
+ "@type": "mrtrix/fixelfilter",
355
424
  "matrix": matrix,
356
425
  "info": info,
357
426
  "quiet": quiet,
@@ -397,55 +466,55 @@ def fixelfilter_cargs(
397
466
  cargs.append("fixelfilter")
398
467
  cargs.extend([
399
468
  "-matrix",
400
- execution.input_file(params.get("matrix"))
469
+ execution.input_file(params.get("matrix", None))
401
470
  ])
402
- if params.get("threshold_value") is not None:
471
+ if params.get("threshold_value", None) is not None:
403
472
  cargs.extend([
404
473
  "-threshold_value",
405
- str(params.get("threshold_value"))
474
+ str(params.get("threshold_value", None))
406
475
  ])
407
- if params.get("threshold_connectivity") is not None:
476
+ if params.get("threshold_connectivity", None) is not None:
408
477
  cargs.extend([
409
478
  "-threshold_connectivity",
410
- str(params.get("threshold_connectivity"))
479
+ str(params.get("threshold_connectivity", None))
411
480
  ])
412
- if params.get("fwhm") is not None:
481
+ if params.get("fwhm", None) is not None:
413
482
  cargs.extend([
414
483
  "-fwhm",
415
- str(params.get("fwhm"))
484
+ str(params.get("fwhm", None))
416
485
  ])
417
- if params.get("minweight") is not None:
486
+ if params.get("minweight", None) is not None:
418
487
  cargs.extend([
419
488
  "-minweight",
420
- str(params.get("minweight"))
489
+ str(params.get("minweight", None))
421
490
  ])
422
- if params.get("mask") is not None:
491
+ if params.get("mask", None) is not None:
423
492
  cargs.extend([
424
493
  "-mask",
425
- execution.input_file(params.get("mask"))
494
+ execution.input_file(params.get("mask", None))
426
495
  ])
427
- if params.get("info"):
496
+ if params.get("info", False):
428
497
  cargs.append("-info")
429
- if params.get("quiet"):
498
+ if params.get("quiet", False):
430
499
  cargs.append("-quiet")
431
- if params.get("debug"):
500
+ if params.get("debug", False):
432
501
  cargs.append("-debug")
433
- if params.get("force"):
502
+ if params.get("force", False):
434
503
  cargs.append("-force")
435
- if params.get("nthreads") is not None:
504
+ if params.get("nthreads", None) is not None:
436
505
  cargs.extend([
437
506
  "-nthreads",
438
- str(params.get("nthreads"))
507
+ str(params.get("nthreads", None))
439
508
  ])
440
- if params.get("config") is not None:
441
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
442
- if params.get("help"):
509
+ if params.get("config", None) is not None:
510
+ cargs.extend([a for c in [fixelfilter_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
511
+ if params.get("help", False):
443
512
  cargs.append("-help")
444
- if params.get("version"):
513
+ if params.get("version", False):
445
514
  cargs.append("-version")
446
- cargs.extend(dyn_cargs(params.get("input")["__STYXTYPE__"])(params.get("input"), execution))
447
- cargs.append(params.get("filter"))
448
- cargs.extend(dyn_cargs(params.get("output")["__STYXTYPE__"])(params.get("output"), execution))
515
+ cargs.extend(fixelfilter_input_cargs_dyn_fn(params.get("input", None)["@type"])(params.get("input", None), execution))
516
+ cargs.append(params.get("filter", None))
517
+ cargs.extend(fixelfilter_output_cargs_dyn_fn(params.get("output", None)["@type"])(params.get("output", None), execution))
449
518
  return cargs
450
519
 
451
520
 
@@ -470,9 +539,11 @@ def fixelfilter_outputs(
470
539
 
471
540
  def fixelfilter_execute(
472
541
  params: FixelfilterParameters,
473
- execution: Execution,
542
+ runner: Runner | None = None,
474
543
  ) -> FixelfilterOutputs:
475
544
  """
545
+ fixelfilter
546
+
476
547
  Perform filtering operations on fixel-based data.
477
548
 
478
549
  If the first input to the command is a specific fixel data file, then a
@@ -491,10 +562,12 @@ def fixelfilter_execute(
491
562
 
492
563
  Args:
493
564
  params: The parameters.
494
- execution: The execution object.
565
+ runner: Command runner.
495
566
  Returns:
496
567
  NamedTuple of outputs (described in `FixelfilterOutputs`).
497
568
  """
569
+ runner = runner or get_global_runner()
570
+ execution = runner.start_execution(FIXELFILTER_METADATA)
498
571
  params = execution.params(params)
499
572
  cargs = fixelfilter_cargs(params, execution)
500
573
  ret = fixelfilter_outputs(params, execution)
@@ -504,9 +577,9 @@ def fixelfilter_execute(
504
577
 
505
578
  def fixelfilter(
506
579
  matrix: InputPathType,
507
- input_: typing.Union[FixelfilterVariousStringParameters, FixelfilterVariousFileParameters],
580
+ input_: typing.Union[FixelfilterVariousStringParametersTagged, FixelfilterVariousFileParametersTagged],
508
581
  filter_: str,
509
- output: typing.Union[FixelfilterVariousString1Parameters, FixelfilterVariousFile1Parameters],
582
+ output: typing.Union[FixelfilterVariousString1ParametersTagged, FixelfilterVariousFile1ParametersTagged],
510
583
  threshold_value: float | None = None,
511
584
  threshold_connectivity: float | None = None,
512
585
  fwhm: float | None = None,
@@ -523,6 +596,8 @@ def fixelfilter(
523
596
  runner: Runner | None = None,
524
597
  ) -> FixelfilterOutputs:
525
598
  """
599
+ fixelfilter
600
+
526
601
  Perform filtering operations on fixel-based data.
527
602
 
528
603
  If the first input to the command is a specific fixel data file, then a
@@ -573,8 +648,6 @@ def fixelfilter(
573
648
  Returns:
574
649
  NamedTuple of outputs (described in `FixelfilterOutputs`).
575
650
  """
576
- runner = runner or get_global_runner()
577
- execution = runner.start_execution(FIXELFILTER_METADATA)
578
651
  params = fixelfilter_params(
579
652
  matrix=matrix,
580
653
  threshold_value=threshold_value,
@@ -594,20 +667,15 @@ def fixelfilter(
594
667
  filter_=filter_,
595
668
  output=output,
596
669
  )
597
- return fixelfilter_execute(params, execution)
670
+ return fixelfilter_execute(params, runner)
598
671
 
599
672
 
600
673
  __all__ = [
601
674
  "FIXELFILTER_METADATA",
602
- "FixelfilterConfigParameters",
603
675
  "FixelfilterOutputs",
604
- "FixelfilterParameters",
605
- "FixelfilterVariousFile1Parameters",
606
- "FixelfilterVariousFileParameters",
607
- "FixelfilterVariousString1Parameters",
608
- "FixelfilterVariousStringParameters",
609
676
  "fixelfilter",
610
677
  "fixelfilter_config_params",
678
+ "fixelfilter_execute",
611
679
  "fixelfilter_params",
612
680
  "fixelfilter_various_file_1_params",
613
681
  "fixelfilter_various_file_params",