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.
- niwrap_mrtrix/mrtrix/__init__.py +133 -0
- niwrap_mrtrix/mrtrix/afdconnectivity.py +59 -68
- niwrap_mrtrix/mrtrix/amp2response.py +72 -77
- niwrap_mrtrix/mrtrix/amp2sh.py +109 -74
- niwrap_mrtrix/mrtrix/connectome2tck.py +77 -79
- niwrap_mrtrix/mrtrix/connectomeedit.py +52 -62
- niwrap_mrtrix/mrtrix/connectomestats.py +117 -104
- niwrap_mrtrix/mrtrix/dcmedit.py +68 -73
- niwrap_mrtrix/mrtrix/dcminfo.py +67 -72
- niwrap_mrtrix/mrtrix/dirflip.py +56 -66
- niwrap_mrtrix/mrtrix/dirgen.py +68 -75
- niwrap_mrtrix/mrtrix/dirmerge.py +56 -66
- niwrap_mrtrix/mrtrix/dirorder.py +53 -64
- niwrap_mrtrix/mrtrix/dirsplit.py +56 -66
- niwrap_mrtrix/mrtrix/dirstat.py +70 -75
- niwrap_mrtrix/mrtrix/dwi2adc.py +67 -74
- niwrap_mrtrix/mrtrix/dwi2fod.py +141 -96
- niwrap_mrtrix/mrtrix/dwi2mask.py +70 -76
- niwrap_mrtrix/mrtrix/dwi2response.py +238 -157
- niwrap_mrtrix/mrtrix/dwi2tensor.py +87 -88
- niwrap_mrtrix/mrtrix/dwibiascorrect.py +97 -95
- niwrap_mrtrix/mrtrix/dwidenoise.py +67 -74
- niwrap_mrtrix/mrtrix/dwiextract.py +143 -99
- niwrap_mrtrix/mrtrix/dwigradcheck.py +89 -91
- niwrap_mrtrix/mrtrix/fixel2peaks.py +77 -51
- niwrap_mrtrix/mrtrix/fixel2sh.py +54 -65
- niwrap_mrtrix/mrtrix/fixel2tsf.py +56 -66
- niwrap_mrtrix/mrtrix/fixel2voxel.py +62 -70
- niwrap_mrtrix/mrtrix/fixelcfestats.py +145 -93
- niwrap_mrtrix/mrtrix/fixelconnectivity.py +62 -70
- niwrap_mrtrix/mrtrix/fixelconvert.py +136 -69
- niwrap_mrtrix/mrtrix/fixelcorrespondence.py +61 -69
- niwrap_mrtrix/mrtrix/fixelcrop.py +53 -64
- niwrap_mrtrix/mrtrix/fixelfilter.py +139 -71
- niwrap_mrtrix/mrtrix/fixelreorient.py +53 -64
- niwrap_mrtrix/mrtrix/fod2dec.py +70 -75
- niwrap_mrtrix/mrtrix/fod2fixel.py +84 -85
- niwrap_mrtrix/mrtrix/label2colour.py +58 -67
- niwrap_mrtrix/mrtrix/label2mesh.py +53 -64
- niwrap_mrtrix/mrtrix/labelconvert.py +58 -67
- niwrap_mrtrix/mrtrix/labelstats.py +53 -63
- niwrap_mrtrix/mrtrix/maskdump.py +52 -64
- niwrap_mrtrix/mrtrix/maskfilter.py +93 -61
- niwrap_mrtrix/mrtrix/mesh2voxel.py +53 -64
- niwrap_mrtrix/mrtrix/meshconvert.py +66 -73
- niwrap_mrtrix/mrtrix/meshfilter.py +59 -68
- niwrap_mrtrix/mrtrix/mraverageheader.py +62 -70
- niwrap_mrtrix/mrtrix/mrcalc.py +522 -397
- niwrap_mrtrix/mrtrix/mrcat.py +59 -68
- niwrap_mrtrix/mrtrix/mrcentroid.py +53 -63
- niwrap_mrtrix/mrtrix/mrcheckerboardmask.py +58 -67
- niwrap_mrtrix/mrtrix/mrclusterstats.py +119 -105
- niwrap_mrtrix/mrtrix/mrcolour.py +62 -70
- niwrap_mrtrix/mrtrix/mrconvert.py +275 -173
- niwrap_mrtrix/mrtrix/mrdegibbs.py +66 -73
- niwrap_mrtrix/mrtrix/mrdump.py +55 -66
- niwrap_mrtrix/mrtrix/mredit.py +97 -94
- niwrap_mrtrix/mrtrix/mrfilter.py +124 -81
- niwrap_mrtrix/mrtrix/mrgrid.py +131 -88
- niwrap_mrtrix/mrtrix/mrhistmatch.py +64 -71
- niwrap_mrtrix/mrtrix/mrhistogram.py +64 -71
- niwrap_mrtrix/mrtrix/mrinfo.py +160 -137
- niwrap_mrtrix/mrtrix/mrmath.py +65 -73
- niwrap_mrtrix/mrtrix/mrmetric.py +69 -73
- niwrap_mrtrix/mrtrix/mrregister.py +263 -212
- niwrap_mrtrix/mrtrix/mrstats.py +66 -72
- niwrap_mrtrix/mrtrix/mrthreshold.py +80 -81
- niwrap_mrtrix/mrtrix/mrtransform.py +162 -109
- niwrap_mrtrix/mrtrix/mtnormalise.py +85 -88
- niwrap_mrtrix/mrtrix/peaks2amp.py +51 -63
- niwrap_mrtrix/mrtrix/peaks2fixel.py +54 -65
- niwrap_mrtrix/mrtrix/responsemean.py +51 -62
- niwrap_mrtrix/mrtrix/sh2amp.py +98 -65
- niwrap_mrtrix/mrtrix/sh2peaks.py +81 -83
- niwrap_mrtrix/mrtrix/sh2power.py +53 -64
- niwrap_mrtrix/mrtrix/sh2response.py +62 -70
- niwrap_mrtrix/mrtrix/shbasis.py +51 -62
- niwrap_mrtrix/mrtrix/shconv.py +78 -52
- niwrap_mrtrix/mrtrix/tck2connectome.py +93 -88
- niwrap_mrtrix/mrtrix/tck2fixel.py +57 -65
- niwrap_mrtrix/mrtrix/tckconvert.py +99 -65
- niwrap_mrtrix/mrtrix/tckdfc.py +82 -83
- niwrap_mrtrix/mrtrix/tckedit.py +240 -122
- niwrap_mrtrix/mrtrix/tckgen.py +364 -207
- niwrap_mrtrix/mrtrix/tckglobal.py +127 -115
- niwrap_mrtrix/mrtrix/tckinfo.py +50 -61
- niwrap_mrtrix/mrtrix/tckmap.py +121 -79
- niwrap_mrtrix/mrtrix/tckresample.py +97 -93
- niwrap_mrtrix/mrtrix/tcksample.py +62 -69
- niwrap_mrtrix/mrtrix/tcksift.py +102 -97
- niwrap_mrtrix/mrtrix/tcksift2.py +119 -107
- niwrap_mrtrix/mrtrix/tckstats.py +72 -78
- niwrap_mrtrix/mrtrix/tcktransform.py +53 -64
- niwrap_mrtrix/mrtrix/tensor2metric.py +93 -94
- niwrap_mrtrix/mrtrix/transformcalc.py +53 -64
- niwrap_mrtrix/mrtrix/transformcompose.py +74 -48
- niwrap_mrtrix/mrtrix/transformconvert.py +53 -64
- niwrap_mrtrix/mrtrix/tsfdivide.py +53 -64
- niwrap_mrtrix/mrtrix/tsfinfo.py +53 -63
- niwrap_mrtrix/mrtrix/tsfmult.py +51 -63
- niwrap_mrtrix/mrtrix/tsfsmooth.py +54 -65
- niwrap_mrtrix/mrtrix/tsfthreshold.py +55 -65
- niwrap_mrtrix/mrtrix/tsfvalidate.py +50 -61
- niwrap_mrtrix/mrtrix/v_5tt2gmwmi.py +54 -65
- niwrap_mrtrix/mrtrix/v_5tt2vis.py +69 -75
- niwrap_mrtrix/mrtrix/v_5ttcheck.py +51 -62
- niwrap_mrtrix/mrtrix/v_5ttedit.py +73 -79
- niwrap_mrtrix/mrtrix/v_5ttgen.py +132 -86
- niwrap_mrtrix/mrtrix/vectorstats.py +92 -88
- niwrap_mrtrix/mrtrix/voxel2fixel.py +54 -63
- niwrap_mrtrix/mrtrix/voxel2mesh.py +56 -66
- niwrap_mrtrix/mrtrix/warp2metric.py +71 -77
- niwrap_mrtrix/mrtrix/warpconvert.py +61 -69
- niwrap_mrtrix/mrtrix/warpcorrect.py +61 -71
- niwrap_mrtrix/mrtrix/warpinit.py +51 -63
- niwrap_mrtrix/mrtrix/warpinvert.py +56 -66
- niwrap_mrtrix-0.7.0.dist-info/METADATA +8 -0
- niwrap_mrtrix-0.7.0.dist-info/RECORD +119 -0
- niwrap_mrtrix-0.7.0.dist-info/WHEEL +4 -0
- niwrap_mrtrix-0.6.3.dist-info/METADATA +0 -8
- niwrap_mrtrix-0.6.3.dist-info/RECORD +0 -119
- 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
|
FIXELFILTER_METADATA = Metadata(
|
|
9
|
-
id="
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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[
|
|
104
|
+
"input": typing.Union[FixelfilterVariousStringParametersTagged, FixelfilterVariousFileParametersTagged],
|
|
64
105
|
"filter": str,
|
|
65
|
-
"output": typing.Union[
|
|
106
|
+
"output": typing.Union[FixelfilterVariousString1ParametersTagged, FixelfilterVariousFile1ParametersTagged],
|
|
66
107
|
})
|
|
67
108
|
|
|
68
109
|
|
|
69
|
-
def
|
|
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
|
|
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
|
-
) ->
|
|
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
|
-
"
|
|
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
|
-
) ->
|
|
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
|
-
"
|
|
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
|
-
) ->
|
|
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
|
-
"
|
|
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
|
-
) ->
|
|
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
|
-
"
|
|
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
|
-
) ->
|
|
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
|
-
"
|
|
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 `
|
|
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[
|
|
369
|
+
input_: typing.Union[FixelfilterVariousStringParametersTagged, FixelfilterVariousFileParametersTagged],
|
|
301
370
|
filter_: str,
|
|
302
|
-
output: typing.Union[
|
|
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
|
-
) ->
|
|
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
|
-
"
|
|
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 [
|
|
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(
|
|
447
|
-
cargs.append(params.get("filter"))
|
|
448
|
-
cargs.extend(
|
|
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
|
-
|
|
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
|
-
|
|
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[
|
|
580
|
+
input_: typing.Union[FixelfilterVariousStringParametersTagged, FixelfilterVariousFileParametersTagged],
|
|
508
581
|
filter_: str,
|
|
509
|
-
output: typing.Union[
|
|
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,
|
|
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",
|