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.
- 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.2.dist-info/METADATA +0 -8
- niwrap_mrtrix-0.6.2.dist-info/RECORD +0 -119
- 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
|
FIXELCFESTATS_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="977582ec85abc36abca54062935b4e3d34f0c9f9.boutiques",
|
|
10
10
|
name="fixelcfestats",
|
|
11
11
|
package="mrtrix",
|
|
12
12
|
container_image_tag="mrtrix3/mrtrix3:3.0.4",
|
|
@@ -14,32 +14,49 @@ FIXELCFESTATS_METADATA = Metadata(
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
FixelcfestatsColumnParameters = typing.TypedDict('FixelcfestatsColumnParameters', {
|
|
17
|
-
"
|
|
17
|
+
"@type": typing.NotRequired[typing.Literal["column"]],
|
|
18
|
+
"path": InputPathType,
|
|
19
|
+
})
|
|
20
|
+
FixelcfestatsColumnParametersTagged = typing.TypedDict('FixelcfestatsColumnParametersTagged', {
|
|
21
|
+
"@type": typing.Literal["column"],
|
|
18
22
|
"path": InputPathType,
|
|
19
23
|
})
|
|
20
24
|
|
|
21
25
|
|
|
22
26
|
FixelcfestatsConfigParameters = typing.TypedDict('FixelcfestatsConfigParameters', {
|
|
23
|
-
"
|
|
27
|
+
"@type": typing.NotRequired[typing.Literal["config"]],
|
|
28
|
+
"key": str,
|
|
29
|
+
"value": str,
|
|
30
|
+
})
|
|
31
|
+
FixelcfestatsConfigParametersTagged = typing.TypedDict('FixelcfestatsConfigParametersTagged', {
|
|
32
|
+
"@type": typing.Literal["config"],
|
|
24
33
|
"key": str,
|
|
25
34
|
"value": str,
|
|
26
35
|
})
|
|
27
36
|
|
|
28
37
|
|
|
29
38
|
FixelcfestatsVariousStringParameters = typing.TypedDict('FixelcfestatsVariousStringParameters', {
|
|
30
|
-
"
|
|
39
|
+
"@type": typing.NotRequired[typing.Literal["VariousString"]],
|
|
40
|
+
"obj": str,
|
|
41
|
+
})
|
|
42
|
+
FixelcfestatsVariousStringParametersTagged = typing.TypedDict('FixelcfestatsVariousStringParametersTagged', {
|
|
43
|
+
"@type": typing.Literal["VariousString"],
|
|
31
44
|
"obj": str,
|
|
32
45
|
})
|
|
33
46
|
|
|
34
47
|
|
|
35
48
|
FixelcfestatsVariousFileParameters = typing.TypedDict('FixelcfestatsVariousFileParameters', {
|
|
36
|
-
"
|
|
49
|
+
"@type": typing.NotRequired[typing.Literal["VariousFile"]],
|
|
50
|
+
"obj": InputPathType,
|
|
51
|
+
})
|
|
52
|
+
FixelcfestatsVariousFileParametersTagged = typing.TypedDict('FixelcfestatsVariousFileParametersTagged', {
|
|
53
|
+
"@type": typing.Literal["VariousFile"],
|
|
37
54
|
"obj": InputPathType,
|
|
38
55
|
})
|
|
39
56
|
|
|
40
57
|
|
|
41
58
|
FixelcfestatsParameters = typing.TypedDict('FixelcfestatsParameters', {
|
|
42
|
-
"
|
|
59
|
+
"@type": typing.NotRequired[typing.Literal["mrtrix/fixelcfestats"]],
|
|
43
60
|
"mask": typing.NotRequired[InputPathType | None],
|
|
44
61
|
"notest": bool,
|
|
45
62
|
"errors": typing.NotRequired[str | None],
|
|
@@ -73,12 +90,50 @@ FixelcfestatsParameters = typing.TypedDict('FixelcfestatsParameters', {
|
|
|
73
90
|
"subjects": InputPathType,
|
|
74
91
|
"design": InputPathType,
|
|
75
92
|
"contrast": InputPathType,
|
|
76
|
-
"connectivity": typing.Union[
|
|
93
|
+
"connectivity": typing.Union[FixelcfestatsVariousStringParametersTagged, FixelcfestatsVariousFileParametersTagged],
|
|
94
|
+
"out_fixel_directory": str,
|
|
95
|
+
})
|
|
96
|
+
FixelcfestatsParametersTagged = typing.TypedDict('FixelcfestatsParametersTagged', {
|
|
97
|
+
"@type": typing.Literal["mrtrix/fixelcfestats"],
|
|
98
|
+
"mask": typing.NotRequired[InputPathType | None],
|
|
99
|
+
"notest": bool,
|
|
100
|
+
"errors": typing.NotRequired[str | None],
|
|
101
|
+
"exchange_within": typing.NotRequired[InputPathType | None],
|
|
102
|
+
"exchange_whole": typing.NotRequired[InputPathType | None],
|
|
103
|
+
"strong": bool,
|
|
104
|
+
"nshuffles": typing.NotRequired[int | None],
|
|
105
|
+
"permutations": typing.NotRequired[InputPathType | None],
|
|
106
|
+
"nonstationarity": bool,
|
|
107
|
+
"skew_nonstationarity": typing.NotRequired[float | None],
|
|
108
|
+
"nshuffles_nonstationarity": typing.NotRequired[int | None],
|
|
109
|
+
"permutations_nonstationarity": typing.NotRequired[InputPathType | None],
|
|
110
|
+
"cfe_dh": typing.NotRequired[float | None],
|
|
111
|
+
"cfe_e": typing.NotRequired[float | None],
|
|
112
|
+
"cfe_h": typing.NotRequired[float | None],
|
|
113
|
+
"cfe_c": typing.NotRequired[float | None],
|
|
114
|
+
"cfe_legacy": bool,
|
|
115
|
+
"variance": typing.NotRequired[InputPathType | None],
|
|
116
|
+
"ftests": typing.NotRequired[InputPathType | None],
|
|
117
|
+
"fonly": bool,
|
|
118
|
+
"column": typing.NotRequired[list[FixelcfestatsColumnParameters] | None],
|
|
119
|
+
"info": bool,
|
|
120
|
+
"quiet": bool,
|
|
121
|
+
"debug": bool,
|
|
122
|
+
"force": bool,
|
|
123
|
+
"nthreads": typing.NotRequired[int | None],
|
|
124
|
+
"config": typing.NotRequired[list[FixelcfestatsConfigParameters] | None],
|
|
125
|
+
"help": bool,
|
|
126
|
+
"version": bool,
|
|
127
|
+
"in_fixel_directory": InputPathType,
|
|
128
|
+
"subjects": InputPathType,
|
|
129
|
+
"design": InputPathType,
|
|
130
|
+
"contrast": InputPathType,
|
|
131
|
+
"connectivity": typing.Union[FixelcfestatsVariousStringParametersTagged, FixelcfestatsVariousFileParametersTagged],
|
|
77
132
|
"out_fixel_directory": str,
|
|
78
133
|
})
|
|
79
134
|
|
|
80
135
|
|
|
81
|
-
def
|
|
136
|
+
def fixelcfestats_connectivity_cargs_dyn_fn(
|
|
82
137
|
t: str,
|
|
83
138
|
) -> typing.Any:
|
|
84
139
|
"""
|
|
@@ -90,15 +145,12 @@ def dyn_cargs(
|
|
|
90
145
|
Build cargs function.
|
|
91
146
|
"""
|
|
92
147
|
return {
|
|
93
|
-
"fixelcfestats": fixelcfestats_cargs,
|
|
94
|
-
"column": fixelcfestats_column_cargs,
|
|
95
|
-
"config": fixelcfestats_config_cargs,
|
|
96
148
|
"VariousString": fixelcfestats_various_string_cargs,
|
|
97
149
|
"VariousFile": fixelcfestats_various_file_cargs,
|
|
98
150
|
}.get(t)
|
|
99
151
|
|
|
100
152
|
|
|
101
|
-
def
|
|
153
|
+
def fixelcfestats_connectivity_outputs_dyn_fn(
|
|
102
154
|
t: str,
|
|
103
155
|
) -> typing.Any:
|
|
104
156
|
"""
|
|
@@ -115,7 +167,7 @@ def dyn_outputs(
|
|
|
115
167
|
|
|
116
168
|
def fixelcfestats_column_params(
|
|
117
169
|
path: InputPathType,
|
|
118
|
-
) ->
|
|
170
|
+
) -> FixelcfestatsColumnParametersTagged:
|
|
119
171
|
"""
|
|
120
172
|
Build parameters.
|
|
121
173
|
|
|
@@ -128,7 +180,7 @@ def fixelcfestats_column_params(
|
|
|
128
180
|
Parameter dictionary
|
|
129
181
|
"""
|
|
130
182
|
params = {
|
|
131
|
-
"
|
|
183
|
+
"@type": "column",
|
|
132
184
|
"path": path,
|
|
133
185
|
}
|
|
134
186
|
return params
|
|
@@ -149,14 +201,14 @@ def fixelcfestats_column_cargs(
|
|
|
149
201
|
"""
|
|
150
202
|
cargs = []
|
|
151
203
|
cargs.append("-column")
|
|
152
|
-
cargs.append(execution.input_file(params.get("path")))
|
|
204
|
+
cargs.append(execution.input_file(params.get("path", None)))
|
|
153
205
|
return cargs
|
|
154
206
|
|
|
155
207
|
|
|
156
208
|
def fixelcfestats_config_params(
|
|
157
209
|
key: str,
|
|
158
210
|
value: str,
|
|
159
|
-
) ->
|
|
211
|
+
) -> FixelcfestatsConfigParametersTagged:
|
|
160
212
|
"""
|
|
161
213
|
Build parameters.
|
|
162
214
|
|
|
@@ -167,7 +219,7 @@ def fixelcfestats_config_params(
|
|
|
167
219
|
Parameter dictionary
|
|
168
220
|
"""
|
|
169
221
|
params = {
|
|
170
|
-
"
|
|
222
|
+
"@type": "config",
|
|
171
223
|
"key": key,
|
|
172
224
|
"value": value,
|
|
173
225
|
}
|
|
@@ -189,14 +241,14 @@ def fixelcfestats_config_cargs(
|
|
|
189
241
|
"""
|
|
190
242
|
cargs = []
|
|
191
243
|
cargs.append("-config")
|
|
192
|
-
cargs.append(params.get("key"))
|
|
193
|
-
cargs.append(params.get("value"))
|
|
244
|
+
cargs.append(params.get("key", None))
|
|
245
|
+
cargs.append(params.get("value", None))
|
|
194
246
|
return cargs
|
|
195
247
|
|
|
196
248
|
|
|
197
249
|
def fixelcfestats_various_string_params(
|
|
198
250
|
obj: str,
|
|
199
|
-
) ->
|
|
251
|
+
) -> FixelcfestatsVariousStringParametersTagged:
|
|
200
252
|
"""
|
|
201
253
|
Build parameters.
|
|
202
254
|
|
|
@@ -206,7 +258,7 @@ def fixelcfestats_various_string_params(
|
|
|
206
258
|
Parameter dictionary
|
|
207
259
|
"""
|
|
208
260
|
params = {
|
|
209
|
-
"
|
|
261
|
+
"@type": "VariousString",
|
|
210
262
|
"obj": obj,
|
|
211
263
|
}
|
|
212
264
|
return params
|
|
@@ -226,13 +278,13 @@ def fixelcfestats_various_string_cargs(
|
|
|
226
278
|
Command-line arguments.
|
|
227
279
|
"""
|
|
228
280
|
cargs = []
|
|
229
|
-
cargs.append(params.get("obj"))
|
|
281
|
+
cargs.append(params.get("obj", None))
|
|
230
282
|
return cargs
|
|
231
283
|
|
|
232
284
|
|
|
233
285
|
def fixelcfestats_various_file_params(
|
|
234
286
|
obj: InputPathType,
|
|
235
|
-
) ->
|
|
287
|
+
) -> FixelcfestatsVariousFileParametersTagged:
|
|
236
288
|
"""
|
|
237
289
|
Build parameters.
|
|
238
290
|
|
|
@@ -242,7 +294,7 @@ def fixelcfestats_various_file_params(
|
|
|
242
294
|
Parameter dictionary
|
|
243
295
|
"""
|
|
244
296
|
params = {
|
|
245
|
-
"
|
|
297
|
+
"@type": "VariousFile",
|
|
246
298
|
"obj": obj,
|
|
247
299
|
}
|
|
248
300
|
return params
|
|
@@ -262,13 +314,13 @@ def fixelcfestats_various_file_cargs(
|
|
|
262
314
|
Command-line arguments.
|
|
263
315
|
"""
|
|
264
316
|
cargs = []
|
|
265
|
-
cargs.append(execution.input_file(params.get("obj")))
|
|
317
|
+
cargs.append(execution.input_file(params.get("obj", None)))
|
|
266
318
|
return cargs
|
|
267
319
|
|
|
268
320
|
|
|
269
321
|
class FixelcfestatsOutputs(typing.NamedTuple):
|
|
270
322
|
"""
|
|
271
|
-
Output object returned when calling `
|
|
323
|
+
Output object returned when calling `FixelcfestatsParameters(...)`.
|
|
272
324
|
"""
|
|
273
325
|
root: OutputPathType
|
|
274
326
|
"""Output root folder. This is the root folder for all outputs."""
|
|
@@ -279,7 +331,7 @@ def fixelcfestats_params(
|
|
|
279
331
|
subjects: InputPathType,
|
|
280
332
|
design: InputPathType,
|
|
281
333
|
contrast: InputPathType,
|
|
282
|
-
connectivity: typing.Union[
|
|
334
|
+
connectivity: typing.Union[FixelcfestatsVariousStringParametersTagged, FixelcfestatsVariousFileParametersTagged],
|
|
283
335
|
out_fixel_directory: str,
|
|
284
336
|
mask: InputPathType | None = None,
|
|
285
337
|
notest: bool = False,
|
|
@@ -310,7 +362,7 @@ def fixelcfestats_params(
|
|
|
310
362
|
config: list[FixelcfestatsConfigParameters] | None = None,
|
|
311
363
|
help_: bool = False,
|
|
312
364
|
version: bool = False,
|
|
313
|
-
) ->
|
|
365
|
+
) -> FixelcfestatsParametersTagged:
|
|
314
366
|
"""
|
|
315
367
|
Build parameters.
|
|
316
368
|
|
|
@@ -392,7 +444,7 @@ def fixelcfestats_params(
|
|
|
392
444
|
Parameter dictionary
|
|
393
445
|
"""
|
|
394
446
|
params = {
|
|
395
|
-
"
|
|
447
|
+
"@type": "mrtrix/fixelcfestats",
|
|
396
448
|
"notest": notest,
|
|
397
449
|
"strong": strong,
|
|
398
450
|
"nonstationarity": nonstationarity,
|
|
@@ -465,118 +517,118 @@ def fixelcfestats_cargs(
|
|
|
465
517
|
"""
|
|
466
518
|
cargs = []
|
|
467
519
|
cargs.append("fixelcfestats")
|
|
468
|
-
if params.get("mask") is not None:
|
|
520
|
+
if params.get("mask", None) is not None:
|
|
469
521
|
cargs.extend([
|
|
470
522
|
"-mask",
|
|
471
|
-
execution.input_file(params.get("mask"))
|
|
523
|
+
execution.input_file(params.get("mask", None))
|
|
472
524
|
])
|
|
473
|
-
if params.get("notest"):
|
|
525
|
+
if params.get("notest", False):
|
|
474
526
|
cargs.append("-notest")
|
|
475
|
-
if params.get("errors") is not None:
|
|
527
|
+
if params.get("errors", None) is not None:
|
|
476
528
|
cargs.extend([
|
|
477
529
|
"-errors",
|
|
478
|
-
params.get("errors")
|
|
530
|
+
params.get("errors", None)
|
|
479
531
|
])
|
|
480
|
-
if params.get("exchange_within") is not None:
|
|
532
|
+
if params.get("exchange_within", None) is not None:
|
|
481
533
|
cargs.extend([
|
|
482
534
|
"-exchange_within",
|
|
483
|
-
execution.input_file(params.get("exchange_within"))
|
|
535
|
+
execution.input_file(params.get("exchange_within", None))
|
|
484
536
|
])
|
|
485
|
-
if params.get("exchange_whole") is not None:
|
|
537
|
+
if params.get("exchange_whole", None) is not None:
|
|
486
538
|
cargs.extend([
|
|
487
539
|
"-exchange_whole",
|
|
488
|
-
execution.input_file(params.get("exchange_whole"))
|
|
540
|
+
execution.input_file(params.get("exchange_whole", None))
|
|
489
541
|
])
|
|
490
|
-
if params.get("strong"):
|
|
542
|
+
if params.get("strong", False):
|
|
491
543
|
cargs.append("-strong")
|
|
492
|
-
if params.get("nshuffles") is not None:
|
|
544
|
+
if params.get("nshuffles", None) is not None:
|
|
493
545
|
cargs.extend([
|
|
494
546
|
"-nshuffles",
|
|
495
|
-
str(params.get("nshuffles"))
|
|
547
|
+
str(params.get("nshuffles", None))
|
|
496
548
|
])
|
|
497
|
-
if params.get("permutations") is not None:
|
|
549
|
+
if params.get("permutations", None) is not None:
|
|
498
550
|
cargs.extend([
|
|
499
551
|
"-permutations",
|
|
500
|
-
execution.input_file(params.get("permutations"))
|
|
552
|
+
execution.input_file(params.get("permutations", None))
|
|
501
553
|
])
|
|
502
|
-
if params.get("nonstationarity"):
|
|
554
|
+
if params.get("nonstationarity", False):
|
|
503
555
|
cargs.append("-nonstationarity")
|
|
504
|
-
if params.get("skew_nonstationarity") is not None:
|
|
556
|
+
if params.get("skew_nonstationarity", None) is not None:
|
|
505
557
|
cargs.extend([
|
|
506
558
|
"-skew_nonstationarity",
|
|
507
|
-
str(params.get("skew_nonstationarity"))
|
|
559
|
+
str(params.get("skew_nonstationarity", None))
|
|
508
560
|
])
|
|
509
|
-
if params.get("nshuffles_nonstationarity") is not None:
|
|
561
|
+
if params.get("nshuffles_nonstationarity", None) is not None:
|
|
510
562
|
cargs.extend([
|
|
511
563
|
"-nshuffles_nonstationarity",
|
|
512
|
-
str(params.get("nshuffles_nonstationarity"))
|
|
564
|
+
str(params.get("nshuffles_nonstationarity", None))
|
|
513
565
|
])
|
|
514
|
-
if params.get("permutations_nonstationarity") is not None:
|
|
566
|
+
if params.get("permutations_nonstationarity", None) is not None:
|
|
515
567
|
cargs.extend([
|
|
516
568
|
"-permutations_nonstationarity",
|
|
517
|
-
execution.input_file(params.get("permutations_nonstationarity"))
|
|
569
|
+
execution.input_file(params.get("permutations_nonstationarity", None))
|
|
518
570
|
])
|
|
519
|
-
if params.get("cfe_dh") is not None:
|
|
571
|
+
if params.get("cfe_dh", None) is not None:
|
|
520
572
|
cargs.extend([
|
|
521
573
|
"-cfe_dh",
|
|
522
|
-
str(params.get("cfe_dh"))
|
|
574
|
+
str(params.get("cfe_dh", None))
|
|
523
575
|
])
|
|
524
|
-
if params.get("cfe_e") is not None:
|
|
576
|
+
if params.get("cfe_e", None) is not None:
|
|
525
577
|
cargs.extend([
|
|
526
578
|
"-cfe_e",
|
|
527
|
-
str(params.get("cfe_e"))
|
|
579
|
+
str(params.get("cfe_e", None))
|
|
528
580
|
])
|
|
529
|
-
if params.get("cfe_h") is not None:
|
|
581
|
+
if params.get("cfe_h", None) is not None:
|
|
530
582
|
cargs.extend([
|
|
531
583
|
"-cfe_h",
|
|
532
|
-
str(params.get("cfe_h"))
|
|
584
|
+
str(params.get("cfe_h", None))
|
|
533
585
|
])
|
|
534
|
-
if params.get("cfe_c") is not None:
|
|
586
|
+
if params.get("cfe_c", None) is not None:
|
|
535
587
|
cargs.extend([
|
|
536
588
|
"-cfe_c",
|
|
537
|
-
str(params.get("cfe_c"))
|
|
589
|
+
str(params.get("cfe_c", None))
|
|
538
590
|
])
|
|
539
|
-
if params.get("cfe_legacy"):
|
|
591
|
+
if params.get("cfe_legacy", False):
|
|
540
592
|
cargs.append("-cfe_legacy")
|
|
541
|
-
if params.get("variance") is not None:
|
|
593
|
+
if params.get("variance", None) is not None:
|
|
542
594
|
cargs.extend([
|
|
543
595
|
"-variance",
|
|
544
|
-
execution.input_file(params.get("variance"))
|
|
596
|
+
execution.input_file(params.get("variance", None))
|
|
545
597
|
])
|
|
546
|
-
if params.get("ftests") is not None:
|
|
598
|
+
if params.get("ftests", None) is not None:
|
|
547
599
|
cargs.extend([
|
|
548
600
|
"-ftests",
|
|
549
|
-
execution.input_file(params.get("ftests"))
|
|
601
|
+
execution.input_file(params.get("ftests", None))
|
|
550
602
|
])
|
|
551
|
-
if params.get("fonly"):
|
|
603
|
+
if params.get("fonly", False):
|
|
552
604
|
cargs.append("-fonly")
|
|
553
|
-
if params.get("column") is not None:
|
|
554
|
-
cargs.extend([a for c in [
|
|
555
|
-
if params.get("info"):
|
|
605
|
+
if params.get("column", None) is not None:
|
|
606
|
+
cargs.extend([a for c in [fixelcfestats_column_cargs(s, execution) for s in params.get("column", None)] for a in c])
|
|
607
|
+
if params.get("info", False):
|
|
556
608
|
cargs.append("-info")
|
|
557
|
-
if params.get("quiet"):
|
|
609
|
+
if params.get("quiet", False):
|
|
558
610
|
cargs.append("-quiet")
|
|
559
|
-
if params.get("debug"):
|
|
611
|
+
if params.get("debug", False):
|
|
560
612
|
cargs.append("-debug")
|
|
561
|
-
if params.get("force"):
|
|
613
|
+
if params.get("force", False):
|
|
562
614
|
cargs.append("-force")
|
|
563
|
-
if params.get("nthreads") is not None:
|
|
615
|
+
if params.get("nthreads", None) is not None:
|
|
564
616
|
cargs.extend([
|
|
565
617
|
"-nthreads",
|
|
566
|
-
str(params.get("nthreads"))
|
|
618
|
+
str(params.get("nthreads", None))
|
|
567
619
|
])
|
|
568
|
-
if params.get("config") is not None:
|
|
569
|
-
cargs.extend([a for c in [
|
|
570
|
-
if params.get("help"):
|
|
620
|
+
if params.get("config", None) is not None:
|
|
621
|
+
cargs.extend([a for c in [fixelcfestats_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
|
|
622
|
+
if params.get("help", False):
|
|
571
623
|
cargs.append("-help")
|
|
572
|
-
if params.get("version"):
|
|
624
|
+
if params.get("version", False):
|
|
573
625
|
cargs.append("-version")
|
|
574
|
-
cargs.append(execution.input_file(params.get("in_fixel_directory")))
|
|
575
|
-
cargs.append(execution.input_file(params.get("subjects")))
|
|
576
|
-
cargs.append(execution.input_file(params.get("design")))
|
|
577
|
-
cargs.append(execution.input_file(params.get("contrast")))
|
|
578
|
-
cargs.extend(
|
|
579
|
-
cargs.append(params.get("out_fixel_directory"))
|
|
626
|
+
cargs.append(execution.input_file(params.get("in_fixel_directory", None)))
|
|
627
|
+
cargs.append(execution.input_file(params.get("subjects", None)))
|
|
628
|
+
cargs.append(execution.input_file(params.get("design", None)))
|
|
629
|
+
cargs.append(execution.input_file(params.get("contrast", None)))
|
|
630
|
+
cargs.extend(fixelcfestats_connectivity_cargs_dyn_fn(params.get("connectivity", None)["@type"])(params.get("connectivity", None), execution))
|
|
631
|
+
cargs.append(params.get("out_fixel_directory", None))
|
|
580
632
|
return cargs
|
|
581
633
|
|
|
582
634
|
|
|
@@ -601,9 +653,11 @@ def fixelcfestats_outputs(
|
|
|
601
653
|
|
|
602
654
|
def fixelcfestats_execute(
|
|
603
655
|
params: FixelcfestatsParameters,
|
|
604
|
-
|
|
656
|
+
runner: Runner | None = None,
|
|
605
657
|
) -> FixelcfestatsOutputs:
|
|
606
658
|
"""
|
|
659
|
+
fixelcfestats
|
|
660
|
+
|
|
607
661
|
Fixel-based analysis using connectivity-based fixel enhancement and
|
|
608
662
|
non-parametric permutation testing.
|
|
609
663
|
|
|
@@ -656,10 +710,12 @@ def fixelcfestats_execute(
|
|
|
656
710
|
|
|
657
711
|
Args:
|
|
658
712
|
params: The parameters.
|
|
659
|
-
|
|
713
|
+
runner: Command runner.
|
|
660
714
|
Returns:
|
|
661
715
|
NamedTuple of outputs (described in `FixelcfestatsOutputs`).
|
|
662
716
|
"""
|
|
717
|
+
runner = runner or get_global_runner()
|
|
718
|
+
execution = runner.start_execution(FIXELCFESTATS_METADATA)
|
|
663
719
|
params = execution.params(params)
|
|
664
720
|
cargs = fixelcfestats_cargs(params, execution)
|
|
665
721
|
ret = fixelcfestats_outputs(params, execution)
|
|
@@ -672,7 +728,7 @@ def fixelcfestats(
|
|
|
672
728
|
subjects: InputPathType,
|
|
673
729
|
design: InputPathType,
|
|
674
730
|
contrast: InputPathType,
|
|
675
|
-
connectivity: typing.Union[
|
|
731
|
+
connectivity: typing.Union[FixelcfestatsVariousStringParametersTagged, FixelcfestatsVariousFileParametersTagged],
|
|
676
732
|
out_fixel_directory: str,
|
|
677
733
|
mask: InputPathType | None = None,
|
|
678
734
|
notest: bool = False,
|
|
@@ -706,6 +762,8 @@ def fixelcfestats(
|
|
|
706
762
|
runner: Runner | None = None,
|
|
707
763
|
) -> FixelcfestatsOutputs:
|
|
708
764
|
"""
|
|
765
|
+
fixelcfestats
|
|
766
|
+
|
|
709
767
|
Fixel-based analysis using connectivity-based fixel enhancement and
|
|
710
768
|
non-parametric permutation testing.
|
|
711
769
|
|
|
@@ -834,8 +892,6 @@ def fixelcfestats(
|
|
|
834
892
|
Returns:
|
|
835
893
|
NamedTuple of outputs (described in `FixelcfestatsOutputs`).
|
|
836
894
|
"""
|
|
837
|
-
runner = runner or get_global_runner()
|
|
838
|
-
execution = runner.start_execution(FIXELCFESTATS_METADATA)
|
|
839
895
|
params = fixelcfestats_params(
|
|
840
896
|
mask=mask,
|
|
841
897
|
notest=notest,
|
|
@@ -873,20 +929,16 @@ def fixelcfestats(
|
|
|
873
929
|
connectivity=connectivity,
|
|
874
930
|
out_fixel_directory=out_fixel_directory,
|
|
875
931
|
)
|
|
876
|
-
return fixelcfestats_execute(params,
|
|
932
|
+
return fixelcfestats_execute(params, runner)
|
|
877
933
|
|
|
878
934
|
|
|
879
935
|
__all__ = [
|
|
880
936
|
"FIXELCFESTATS_METADATA",
|
|
881
|
-
"FixelcfestatsColumnParameters",
|
|
882
|
-
"FixelcfestatsConfigParameters",
|
|
883
937
|
"FixelcfestatsOutputs",
|
|
884
|
-
"FixelcfestatsParameters",
|
|
885
|
-
"FixelcfestatsVariousFileParameters",
|
|
886
|
-
"FixelcfestatsVariousStringParameters",
|
|
887
938
|
"fixelcfestats",
|
|
888
939
|
"fixelcfestats_column_params",
|
|
889
940
|
"fixelcfestats_config_params",
|
|
941
|
+
"fixelcfestats_execute",
|
|
890
942
|
"fixelcfestats_params",
|
|
891
943
|
"fixelcfestats_various_file_params",
|
|
892
944
|
"fixelcfestats_various_string_params",
|