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
  V_5TTCHECK_METADATA = Metadata(
9
- id="173240c50f533553ebf03ac04f99f00671f6b2e7.boutiques",
9
+ id="c70075c5b07c488757393893376d9b30506df78c.boutiques",
10
10
  name="5ttcheck",
11
11
  package="mrtrix",
12
12
  container_image_tag="mrtrix3/mrtrix3:3.0.4",
@@ -14,14 +14,32 @@ V_5TTCHECK_METADATA = Metadata(
14
14
 
15
15
 
16
16
  V5ttcheckConfigParameters = typing.TypedDict('V5ttcheckConfigParameters', {
17
- "__STYXTYPE__": typing.Literal["config"],
17
+ "@type": typing.NotRequired[typing.Literal["config"]],
18
+ "key": str,
19
+ "value": str,
20
+ })
21
+ V5ttcheckConfigParametersTagged = typing.TypedDict('V5ttcheckConfigParametersTagged', {
22
+ "@type": typing.Literal["config"],
18
23
  "key": str,
19
24
  "value": str,
20
25
  })
21
26
 
22
27
 
23
28
  V5ttcheckParameters = typing.TypedDict('V5ttcheckParameters', {
24
- "__STYXTYPE__": typing.Literal["5ttcheck"],
29
+ "@type": typing.NotRequired[typing.Literal["mrtrix/5ttcheck"]],
30
+ "voxels": typing.NotRequired[str | None],
31
+ "info": bool,
32
+ "quiet": bool,
33
+ "debug": bool,
34
+ "force": bool,
35
+ "nthreads": typing.NotRequired[int | None],
36
+ "config": typing.NotRequired[list[V5ttcheckConfigParameters] | None],
37
+ "help": bool,
38
+ "version": bool,
39
+ "input": list[InputPathType],
40
+ })
41
+ V5ttcheckParametersTagged = typing.TypedDict('V5ttcheckParametersTagged', {
42
+ "@type": typing.Literal["mrtrix/5ttcheck"],
25
43
  "voxels": typing.NotRequired[str | None],
26
44
  "info": bool,
27
45
  "quiet": bool,
@@ -33,44 +51,12 @@ V5ttcheckParameters = typing.TypedDict('V5ttcheckParameters', {
33
51
  "version": bool,
34
52
  "input": list[InputPathType],
35
53
  })
36
-
37
-
38
- def dyn_cargs(
39
- t: str,
40
- ) -> typing.Any:
41
- """
42
- Get build cargs function by command type.
43
-
44
- Args:
45
- t: Command type.
46
- Returns:
47
- Build cargs function.
48
- """
49
- return {
50
- "5ttcheck": v_5ttcheck_cargs,
51
- "config": v_5ttcheck_config_cargs,
52
- }.get(t)
53
-
54
-
55
- def dyn_outputs(
56
- t: str,
57
- ) -> typing.Any:
58
- """
59
- Get build outputs function by command type.
60
-
61
- Args:
62
- t: Command type.
63
- Returns:
64
- Build outputs function.
65
- """
66
- return {
67
- }.get(t)
68
54
 
69
55
 
70
56
  def v_5ttcheck_config_params(
71
57
  key: str,
72
58
  value: str,
73
- ) -> V5ttcheckConfigParameters:
59
+ ) -> V5ttcheckConfigParametersTagged:
74
60
  """
75
61
  Build parameters.
76
62
 
@@ -81,7 +67,7 @@ def v_5ttcheck_config_params(
81
67
  Parameter dictionary
82
68
  """
83
69
  params = {
84
- "__STYXTYPE__": "config",
70
+ "@type": "config",
85
71
  "key": key,
86
72
  "value": value,
87
73
  }
@@ -103,14 +89,14 @@ def v_5ttcheck_config_cargs(
103
89
  """
104
90
  cargs = []
105
91
  cargs.append("-config")
106
- cargs.append(params.get("key"))
107
- cargs.append(params.get("value"))
92
+ cargs.append(params.get("key", None))
93
+ cargs.append(params.get("value", None))
108
94
  return cargs
109
95
 
110
96
 
111
97
  class V5ttcheckOutputs(typing.NamedTuple):
112
98
  """
113
- Output object returned when calling `v_5ttcheck(...)`.
99
+ Output object returned when calling `V5ttcheckParameters(...)`.
114
100
  """
115
101
  root: OutputPathType
116
102
  """Output root folder. This is the root folder for all outputs."""
@@ -127,7 +113,7 @@ def v_5ttcheck_params(
127
113
  config: list[V5ttcheckConfigParameters] | None = None,
128
114
  help_: bool = False,
129
115
  version: bool = False,
130
- ) -> V5ttcheckParameters:
116
+ ) -> V5ttcheckParametersTagged:
131
117
  """
132
118
  Build parameters.
133
119
 
@@ -151,7 +137,7 @@ def v_5ttcheck_params(
151
137
  Parameter dictionary
152
138
  """
153
139
  params = {
154
- "__STYXTYPE__": "5ttcheck",
140
+ "@type": "mrtrix/5ttcheck",
155
141
  "info": info,
156
142
  "quiet": quiet,
157
143
  "debug": debug,
@@ -184,31 +170,31 @@ def v_5ttcheck_cargs(
184
170
  """
185
171
  cargs = []
186
172
  cargs.append("5ttcheck")
187
- if params.get("voxels") is not None:
173
+ if params.get("voxels", None) is not None:
188
174
  cargs.extend([
189
175
  "-voxels",
190
- params.get("voxels")
176
+ params.get("voxels", None)
191
177
  ])
192
- if params.get("info"):
178
+ if params.get("info", False):
193
179
  cargs.append("-info")
194
- if params.get("quiet"):
180
+ if params.get("quiet", False):
195
181
  cargs.append("-quiet")
196
- if params.get("debug"):
182
+ if params.get("debug", False):
197
183
  cargs.append("-debug")
198
- if params.get("force"):
184
+ if params.get("force", False):
199
185
  cargs.append("-force")
200
- if params.get("nthreads") is not None:
186
+ if params.get("nthreads", None) is not None:
201
187
  cargs.extend([
202
188
  "-nthreads",
203
- str(params.get("nthreads"))
189
+ str(params.get("nthreads", None))
204
190
  ])
205
- if params.get("config") is not None:
206
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
207
- if params.get("help"):
191
+ if params.get("config", None) is not None:
192
+ cargs.extend([a for c in [v_5ttcheck_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
193
+ if params.get("help", False):
208
194
  cargs.append("-help")
209
- if params.get("version"):
195
+ if params.get("version", False):
210
196
  cargs.append("-version")
211
- cargs.extend([execution.input_file(f) for f in params.get("input")])
197
+ cargs.extend([execution.input_file(f) for f in params.get("input", None)])
212
198
  return cargs
213
199
 
214
200
 
@@ -233,9 +219,11 @@ def v_5ttcheck_outputs(
233
219
 
234
220
  def v_5ttcheck_execute(
235
221
  params: V5ttcheckParameters,
236
- execution: Execution,
222
+ runner: Runner | None = None,
237
223
  ) -> V5ttcheckOutputs:
238
224
  """
225
+ 5ttcheck
226
+
239
227
  Thoroughly check that one or more images conform to the expected ACT
240
228
  five-tissue-type (5TT) format.
241
229
 
@@ -251,10 +239,12 @@ def v_5ttcheck_execute(
251
239
 
252
240
  Args:
253
241
  params: The parameters.
254
- execution: The execution object.
242
+ runner: Command runner.
255
243
  Returns:
256
244
  NamedTuple of outputs (described in `V5ttcheckOutputs`).
257
245
  """
246
+ runner = runner or get_global_runner()
247
+ execution = runner.start_execution(V_5TTCHECK_METADATA)
258
248
  params = execution.params(params)
259
249
  cargs = v_5ttcheck_cargs(params, execution)
260
250
  ret = v_5ttcheck_outputs(params, execution)
@@ -276,6 +266,8 @@ def v_5ttcheck(
276
266
  runner: Runner | None = None,
277
267
  ) -> V5ttcheckOutputs:
278
268
  """
269
+ 5ttcheck
270
+
279
271
  Thoroughly check that one or more images conform to the expected ACT
280
272
  five-tissue-type (5TT) format.
281
273
 
@@ -309,8 +301,6 @@ def v_5ttcheck(
309
301
  Returns:
310
302
  NamedTuple of outputs (described in `V5ttcheckOutputs`).
311
303
  """
312
- runner = runner or get_global_runner()
313
- execution = runner.start_execution(V_5TTCHECK_METADATA)
314
304
  params = v_5ttcheck_params(
315
305
  voxels=voxels,
316
306
  info=info,
@@ -323,15 +313,14 @@ def v_5ttcheck(
323
313
  version=version,
324
314
  input_=input_,
325
315
  )
326
- return v_5ttcheck_execute(params, execution)
316
+ return v_5ttcheck_execute(params, runner)
327
317
 
328
318
 
329
319
  __all__ = [
330
- "V5ttcheckConfigParameters",
331
320
  "V5ttcheckOutputs",
332
- "V5ttcheckParameters",
333
321
  "V_5TTCHECK_METADATA",
334
322
  "v_5ttcheck",
335
323
  "v_5ttcheck_config_params",
324
+ "v_5ttcheck_execute",
336
325
  "v_5ttcheck_params",
337
326
  ]
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  V_5TTEDIT_METADATA = Metadata(
9
- id="2f89d4273f8dafe192690c3eb53a171d1d583a82.boutiques",
9
+ id="600cbbcfcf2cf74592c61897ae8adbd5df0e6fdd.boutiques",
10
10
  name="5ttedit",
11
11
  package="mrtrix",
12
12
  container_image_tag="mrtrix3/mrtrix3:3.0.4",
@@ -14,14 +14,38 @@ V_5TTEDIT_METADATA = Metadata(
14
14
 
15
15
 
16
16
  V5tteditConfigParameters = typing.TypedDict('V5tteditConfigParameters', {
17
- "__STYXTYPE__": typing.Literal["config"],
17
+ "@type": typing.NotRequired[typing.Literal["config"]],
18
+ "key": str,
19
+ "value": str,
20
+ })
21
+ V5tteditConfigParametersTagged = typing.TypedDict('V5tteditConfigParametersTagged', {
22
+ "@type": typing.Literal["config"],
18
23
  "key": str,
19
24
  "value": str,
20
25
  })
21
26
 
22
27
 
23
28
  V5tteditParameters = typing.TypedDict('V5tteditParameters', {
24
- "__STYXTYPE__": typing.Literal["5ttedit"],
29
+ "@type": typing.NotRequired[typing.Literal["mrtrix/5ttedit"]],
30
+ "cgm": typing.NotRequired[InputPathType | None],
31
+ "sgm": typing.NotRequired[InputPathType | None],
32
+ "wm": typing.NotRequired[InputPathType | None],
33
+ "csf": typing.NotRequired[InputPathType | None],
34
+ "path": typing.NotRequired[InputPathType | None],
35
+ "none": typing.NotRequired[InputPathType | None],
36
+ "info": bool,
37
+ "quiet": bool,
38
+ "debug": bool,
39
+ "force": bool,
40
+ "nthreads": typing.NotRequired[int | None],
41
+ "config": typing.NotRequired[list[V5tteditConfigParameters] | None],
42
+ "help": bool,
43
+ "version": bool,
44
+ "input": InputPathType,
45
+ "output": str,
46
+ })
47
+ V5tteditParametersTagged = typing.TypedDict('V5tteditParametersTagged', {
48
+ "@type": typing.Literal["mrtrix/5ttedit"],
25
49
  "cgm": typing.NotRequired[InputPathType | None],
26
50
  "sgm": typing.NotRequired[InputPathType | None],
27
51
  "wm": typing.NotRequired[InputPathType | None],
@@ -39,45 +63,12 @@ V5tteditParameters = typing.TypedDict('V5tteditParameters', {
39
63
  "input": InputPathType,
40
64
  "output": str,
41
65
  })
42
-
43
-
44
- def dyn_cargs(
45
- t: str,
46
- ) -> typing.Any:
47
- """
48
- Get build cargs function by command type.
49
-
50
- Args:
51
- t: Command type.
52
- Returns:
53
- Build cargs function.
54
- """
55
- return {
56
- "5ttedit": v_5ttedit_cargs,
57
- "config": v_5ttedit_config_cargs,
58
- }.get(t)
59
-
60
-
61
- def dyn_outputs(
62
- t: str,
63
- ) -> typing.Any:
64
- """
65
- Get build outputs function by command type.
66
-
67
- Args:
68
- t: Command type.
69
- Returns:
70
- Build outputs function.
71
- """
72
- return {
73
- "5ttedit": v_5ttedit_outputs,
74
- }.get(t)
75
66
 
76
67
 
77
68
  def v_5ttedit_config_params(
78
69
  key: str,
79
70
  value: str,
80
- ) -> V5tteditConfigParameters:
71
+ ) -> V5tteditConfigParametersTagged:
81
72
  """
82
73
  Build parameters.
83
74
 
@@ -88,7 +79,7 @@ def v_5ttedit_config_params(
88
79
  Parameter dictionary
89
80
  """
90
81
  params = {
91
- "__STYXTYPE__": "config",
82
+ "@type": "config",
92
83
  "key": key,
93
84
  "value": value,
94
85
  }
@@ -110,14 +101,14 @@ def v_5ttedit_config_cargs(
110
101
  """
111
102
  cargs = []
112
103
  cargs.append("-config")
113
- cargs.append(params.get("key"))
114
- cargs.append(params.get("value"))
104
+ cargs.append(params.get("key", None))
105
+ cargs.append(params.get("value", None))
115
106
  return cargs
116
107
 
117
108
 
118
109
  class V5tteditOutputs(typing.NamedTuple):
119
110
  """
120
- Output object returned when calling `v_5ttedit(...)`.
111
+ Output object returned when calling `V5tteditParameters(...)`.
121
112
  """
122
113
  root: OutputPathType
123
114
  """Output root folder. This is the root folder for all outputs."""
@@ -142,7 +133,7 @@ def v_5ttedit_params(
142
133
  config: list[V5tteditConfigParameters] | None = None,
143
134
  help_: bool = False,
144
135
  version: bool = False,
145
- ) -> V5tteditParameters:
136
+ ) -> V5tteditParametersTagged:
146
137
  """
147
138
  Build parameters.
148
139
 
@@ -175,7 +166,7 @@ def v_5ttedit_params(
175
166
  Parameter dictionary
176
167
  """
177
168
  params = {
178
- "__STYXTYPE__": "5ttedit",
169
+ "@type": "mrtrix/5ttedit",
179
170
  "info": info,
180
171
  "quiet": quiet,
181
172
  "debug": debug,
@@ -219,57 +210,57 @@ def v_5ttedit_cargs(
219
210
  """
220
211
  cargs = []
221
212
  cargs.append("5ttedit")
222
- if params.get("cgm") is not None:
213
+ if params.get("cgm", None) is not None:
223
214
  cargs.extend([
224
215
  "-cgm",
225
- execution.input_file(params.get("cgm"))
216
+ execution.input_file(params.get("cgm", None))
226
217
  ])
227
- if params.get("sgm") is not None:
218
+ if params.get("sgm", None) is not None:
228
219
  cargs.extend([
229
220
  "-sgm",
230
- execution.input_file(params.get("sgm"))
221
+ execution.input_file(params.get("sgm", None))
231
222
  ])
232
- if params.get("wm") is not None:
223
+ if params.get("wm", None) is not None:
233
224
  cargs.extend([
234
225
  "-wm",
235
- execution.input_file(params.get("wm"))
226
+ execution.input_file(params.get("wm", None))
236
227
  ])
237
- if params.get("csf") is not None:
228
+ if params.get("csf", None) is not None:
238
229
  cargs.extend([
239
230
  "-csf",
240
- execution.input_file(params.get("csf"))
231
+ execution.input_file(params.get("csf", None))
241
232
  ])
242
- if params.get("path") is not None:
233
+ if params.get("path", None) is not None:
243
234
  cargs.extend([
244
235
  "-path",
245
- execution.input_file(params.get("path"))
236
+ execution.input_file(params.get("path", None))
246
237
  ])
247
- if params.get("none") is not None:
238
+ if params.get("none", None) is not None:
248
239
  cargs.extend([
249
240
  "-none",
250
- execution.input_file(params.get("none"))
241
+ execution.input_file(params.get("none", None))
251
242
  ])
252
- if params.get("info"):
243
+ if params.get("info", False):
253
244
  cargs.append("-info")
254
- if params.get("quiet"):
245
+ if params.get("quiet", False):
255
246
  cargs.append("-quiet")
256
- if params.get("debug"):
247
+ if params.get("debug", False):
257
248
  cargs.append("-debug")
258
- if params.get("force"):
249
+ if params.get("force", False):
259
250
  cargs.append("-force")
260
- if params.get("nthreads") is not None:
251
+ if params.get("nthreads", None) is not None:
261
252
  cargs.extend([
262
253
  "-nthreads",
263
- str(params.get("nthreads"))
254
+ str(params.get("nthreads", None))
264
255
  ])
265
- if params.get("config") is not None:
266
- cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
267
- if params.get("help"):
256
+ if params.get("config", None) is not None:
257
+ cargs.extend([a for c in [v_5ttedit_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
258
+ if params.get("help", False):
268
259
  cargs.append("-help")
269
- if params.get("version"):
260
+ if params.get("version", False):
270
261
  cargs.append("-version")
271
- cargs.append(execution.input_file(params.get("input")))
272
- cargs.append(params.get("output"))
262
+ cargs.append(execution.input_file(params.get("input", None)))
263
+ cargs.append(params.get("output", None))
273
264
  return cargs
274
265
 
275
266
 
@@ -288,18 +279,20 @@ def v_5ttedit_outputs(
288
279
  """
289
280
  ret = V5tteditOutputs(
290
281
  root=execution.output_file("."),
291
- output=execution.output_file(params.get("output")),
282
+ output=execution.output_file(params.get("output", None)),
292
283
  )
293
284
  return ret
294
285
 
295
286
 
296
287
  def v_5ttedit_execute(
297
288
  params: V5tteditParameters,
298
- execution: Execution,
289
+ runner: Runner | None = None,
299
290
  ) -> V5tteditOutputs:
300
291
  """
301
- Manually set the partial volume fractions in an ACT five-tissue-type (5TT) image
302
- using mask images.
292
+ 5ttedit
293
+
294
+ Manually set the partial volume fractions in an ACT five-tissue-type (5TT)
295
+ image using mask images.
303
296
 
304
297
 
305
298
 
@@ -313,10 +306,12 @@ def v_5ttedit_execute(
313
306
 
314
307
  Args:
315
308
  params: The parameters.
316
- execution: The execution object.
309
+ runner: Command runner.
317
310
  Returns:
318
311
  NamedTuple of outputs (described in `V5tteditOutputs`).
319
312
  """
313
+ runner = runner or get_global_runner()
314
+ execution = runner.start_execution(V_5TTEDIT_METADATA)
320
315
  params = execution.params(params)
321
316
  cargs = v_5ttedit_cargs(params, execution)
322
317
  ret = v_5ttedit_outputs(params, execution)
@@ -344,8 +339,10 @@ def v_5ttedit(
344
339
  runner: Runner | None = None,
345
340
  ) -> V5tteditOutputs:
346
341
  """
347
- Manually set the partial volume fractions in an ACT five-tissue-type (5TT) image
348
- using mask images.
342
+ 5ttedit
343
+
344
+ Manually set the partial volume fractions in an ACT five-tissue-type (5TT)
345
+ image using mask images.
349
346
 
350
347
 
351
348
 
@@ -386,8 +383,6 @@ def v_5ttedit(
386
383
  Returns:
387
384
  NamedTuple of outputs (described in `V5tteditOutputs`).
388
385
  """
389
- runner = runner or get_global_runner()
390
- execution = runner.start_execution(V_5TTEDIT_METADATA)
391
386
  params = v_5ttedit_params(
392
387
  cgm=cgm,
393
388
  sgm=sgm,
@@ -406,15 +401,14 @@ def v_5ttedit(
406
401
  input_=input_,
407
402
  output=output,
408
403
  )
409
- return v_5ttedit_execute(params, execution)
404
+ return v_5ttedit_execute(params, runner)
410
405
 
411
406
 
412
407
  __all__ = [
413
- "V5tteditConfigParameters",
414
408
  "V5tteditOutputs",
415
- "V5tteditParameters",
416
409
  "V_5TTEDIT_METADATA",
417
410
  "v_5ttedit",
418
411
  "v_5ttedit_config_params",
412
+ "v_5ttedit_execute",
419
413
  "v_5ttedit_params",
420
414
  ]