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
|
CONNECTOMESTATS_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="607b512a43f94c7e5deeb72046391536e66cc167.boutiques",
|
|
10
10
|
name="connectomestats",
|
|
11
11
|
package="mrtrix",
|
|
12
12
|
container_image_tag="mrtrix3/mrtrix3:3.0.4",
|
|
@@ -14,20 +14,64 @@ CONNECTOMESTATS_METADATA = Metadata(
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
ConnectomestatsColumnParameters = typing.TypedDict('ConnectomestatsColumnParameters', {
|
|
17
|
-
"
|
|
17
|
+
"@type": typing.NotRequired[typing.Literal["column"]],
|
|
18
|
+
"path": InputPathType,
|
|
19
|
+
})
|
|
20
|
+
ConnectomestatsColumnParametersTagged = typing.TypedDict('ConnectomestatsColumnParametersTagged', {
|
|
21
|
+
"@type": typing.Literal["column"],
|
|
18
22
|
"path": InputPathType,
|
|
19
23
|
})
|
|
20
24
|
|
|
21
25
|
|
|
22
26
|
ConnectomestatsConfigParameters = typing.TypedDict('ConnectomestatsConfigParameters', {
|
|
23
|
-
"
|
|
27
|
+
"@type": typing.NotRequired[typing.Literal["config"]],
|
|
28
|
+
"key": str,
|
|
29
|
+
"value": str,
|
|
30
|
+
})
|
|
31
|
+
ConnectomestatsConfigParametersTagged = typing.TypedDict('ConnectomestatsConfigParametersTagged', {
|
|
32
|
+
"@type": typing.Literal["config"],
|
|
24
33
|
"key": str,
|
|
25
34
|
"value": str,
|
|
26
35
|
})
|
|
27
36
|
|
|
28
37
|
|
|
29
38
|
ConnectomestatsParameters = typing.TypedDict('ConnectomestatsParameters', {
|
|
30
|
-
"
|
|
39
|
+
"@type": typing.NotRequired[typing.Literal["mrtrix/connectomestats"]],
|
|
40
|
+
"notest": bool,
|
|
41
|
+
"errors": typing.NotRequired[str | None],
|
|
42
|
+
"exchange_within": typing.NotRequired[InputPathType | None],
|
|
43
|
+
"exchange_whole": typing.NotRequired[InputPathType | None],
|
|
44
|
+
"strong": bool,
|
|
45
|
+
"nshuffles": typing.NotRequired[int | None],
|
|
46
|
+
"permutations": typing.NotRequired[InputPathType | None],
|
|
47
|
+
"nonstationarity": bool,
|
|
48
|
+
"skew_nonstationarity": typing.NotRequired[float | None],
|
|
49
|
+
"nshuffles_nonstationarity": typing.NotRequired[int | None],
|
|
50
|
+
"permutations_nonstationarity": typing.NotRequired[InputPathType | None],
|
|
51
|
+
"tfce_dh": typing.NotRequired[float | None],
|
|
52
|
+
"tfce_e": typing.NotRequired[float | None],
|
|
53
|
+
"tfce_h": typing.NotRequired[float | None],
|
|
54
|
+
"variance": typing.NotRequired[InputPathType | None],
|
|
55
|
+
"ftests": typing.NotRequired[InputPathType | None],
|
|
56
|
+
"fonly": bool,
|
|
57
|
+
"column": typing.NotRequired[list[ConnectomestatsColumnParameters] | None],
|
|
58
|
+
"threshold": typing.NotRequired[float | None],
|
|
59
|
+
"info": bool,
|
|
60
|
+
"quiet": bool,
|
|
61
|
+
"debug": bool,
|
|
62
|
+
"force": bool,
|
|
63
|
+
"nthreads": typing.NotRequired[int | None],
|
|
64
|
+
"config": typing.NotRequired[list[ConnectomestatsConfigParameters] | None],
|
|
65
|
+
"help": bool,
|
|
66
|
+
"version": bool,
|
|
67
|
+
"input": InputPathType,
|
|
68
|
+
"algorithm": str,
|
|
69
|
+
"design": InputPathType,
|
|
70
|
+
"contrast": InputPathType,
|
|
71
|
+
"output": str,
|
|
72
|
+
})
|
|
73
|
+
ConnectomestatsParametersTagged = typing.TypedDict('ConnectomestatsParametersTagged', {
|
|
74
|
+
"@type": typing.Literal["mrtrix/connectomestats"],
|
|
31
75
|
"notest": bool,
|
|
32
76
|
"errors": typing.NotRequired[str | None],
|
|
33
77
|
"exchange_within": typing.NotRequired[InputPathType | None],
|
|
@@ -61,44 +105,11 @@ ConnectomestatsParameters = typing.TypedDict('ConnectomestatsParameters', {
|
|
|
61
105
|
"contrast": InputPathType,
|
|
62
106
|
"output": str,
|
|
63
107
|
})
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
def dyn_cargs(
|
|
67
|
-
t: str,
|
|
68
|
-
) -> typing.Any:
|
|
69
|
-
"""
|
|
70
|
-
Get build cargs function by command type.
|
|
71
|
-
|
|
72
|
-
Args:
|
|
73
|
-
t: Command type.
|
|
74
|
-
Returns:
|
|
75
|
-
Build cargs function.
|
|
76
|
-
"""
|
|
77
|
-
return {
|
|
78
|
-
"connectomestats": connectomestats_cargs,
|
|
79
|
-
"column": connectomestats_column_cargs,
|
|
80
|
-
"config": connectomestats_config_cargs,
|
|
81
|
-
}.get(t)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
def dyn_outputs(
|
|
85
|
-
t: str,
|
|
86
|
-
) -> typing.Any:
|
|
87
|
-
"""
|
|
88
|
-
Get build outputs function by command type.
|
|
89
|
-
|
|
90
|
-
Args:
|
|
91
|
-
t: Command type.
|
|
92
|
-
Returns:
|
|
93
|
-
Build outputs function.
|
|
94
|
-
"""
|
|
95
|
-
return {
|
|
96
|
-
}.get(t)
|
|
97
108
|
|
|
98
109
|
|
|
99
110
|
def connectomestats_column_params(
|
|
100
111
|
path: InputPathType,
|
|
101
|
-
) ->
|
|
112
|
+
) -> ConnectomestatsColumnParametersTagged:
|
|
102
113
|
"""
|
|
103
114
|
Build parameters.
|
|
104
115
|
|
|
@@ -111,7 +122,7 @@ def connectomestats_column_params(
|
|
|
111
122
|
Parameter dictionary
|
|
112
123
|
"""
|
|
113
124
|
params = {
|
|
114
|
-
"
|
|
125
|
+
"@type": "column",
|
|
115
126
|
"path": path,
|
|
116
127
|
}
|
|
117
128
|
return params
|
|
@@ -132,14 +143,14 @@ def connectomestats_column_cargs(
|
|
|
132
143
|
"""
|
|
133
144
|
cargs = []
|
|
134
145
|
cargs.append("-column")
|
|
135
|
-
cargs.append(execution.input_file(params.get("path")))
|
|
146
|
+
cargs.append(execution.input_file(params.get("path", None)))
|
|
136
147
|
return cargs
|
|
137
148
|
|
|
138
149
|
|
|
139
150
|
def connectomestats_config_params(
|
|
140
151
|
key: str,
|
|
141
152
|
value: str,
|
|
142
|
-
) ->
|
|
153
|
+
) -> ConnectomestatsConfigParametersTagged:
|
|
143
154
|
"""
|
|
144
155
|
Build parameters.
|
|
145
156
|
|
|
@@ -150,7 +161,7 @@ def connectomestats_config_params(
|
|
|
150
161
|
Parameter dictionary
|
|
151
162
|
"""
|
|
152
163
|
params = {
|
|
153
|
-
"
|
|
164
|
+
"@type": "config",
|
|
154
165
|
"key": key,
|
|
155
166
|
"value": value,
|
|
156
167
|
}
|
|
@@ -172,14 +183,14 @@ def connectomestats_config_cargs(
|
|
|
172
183
|
"""
|
|
173
184
|
cargs = []
|
|
174
185
|
cargs.append("-config")
|
|
175
|
-
cargs.append(params.get("key"))
|
|
176
|
-
cargs.append(params.get("value"))
|
|
186
|
+
cargs.append(params.get("key", None))
|
|
187
|
+
cargs.append(params.get("value", None))
|
|
177
188
|
return cargs
|
|
178
189
|
|
|
179
190
|
|
|
180
191
|
class ConnectomestatsOutputs(typing.NamedTuple):
|
|
181
192
|
"""
|
|
182
|
-
Output object returned when calling `
|
|
193
|
+
Output object returned when calling `ConnectomestatsParameters(...)`.
|
|
183
194
|
"""
|
|
184
195
|
root: OutputPathType
|
|
185
196
|
"""Output root folder. This is the root folder for all outputs."""
|
|
@@ -218,7 +229,7 @@ def connectomestats_params(
|
|
|
218
229
|
config: list[ConnectomestatsConfigParameters] | None = None,
|
|
219
230
|
help_: bool = False,
|
|
220
231
|
version: bool = False,
|
|
221
|
-
) ->
|
|
232
|
+
) -> ConnectomestatsParametersTagged:
|
|
222
233
|
"""
|
|
223
234
|
Build parameters.
|
|
224
235
|
|
|
@@ -294,7 +305,7 @@ def connectomestats_params(
|
|
|
294
305
|
Parameter dictionary
|
|
295
306
|
"""
|
|
296
307
|
params = {
|
|
297
|
-
"
|
|
308
|
+
"@type": "mrtrix/connectomestats",
|
|
298
309
|
"notest": notest,
|
|
299
310
|
"strong": strong,
|
|
300
311
|
"nonstationarity": nonstationarity,
|
|
@@ -363,110 +374,110 @@ def connectomestats_cargs(
|
|
|
363
374
|
"""
|
|
364
375
|
cargs = []
|
|
365
376
|
cargs.append("connectomestats")
|
|
366
|
-
if params.get("notest"):
|
|
377
|
+
if params.get("notest", False):
|
|
367
378
|
cargs.append("-notest")
|
|
368
|
-
if params.get("errors") is not None:
|
|
379
|
+
if params.get("errors", None) is not None:
|
|
369
380
|
cargs.extend([
|
|
370
381
|
"-errors",
|
|
371
|
-
params.get("errors")
|
|
382
|
+
params.get("errors", None)
|
|
372
383
|
])
|
|
373
|
-
if params.get("exchange_within") is not None:
|
|
384
|
+
if params.get("exchange_within", None) is not None:
|
|
374
385
|
cargs.extend([
|
|
375
386
|
"-exchange_within",
|
|
376
|
-
execution.input_file(params.get("exchange_within"))
|
|
387
|
+
execution.input_file(params.get("exchange_within", None))
|
|
377
388
|
])
|
|
378
|
-
if params.get("exchange_whole") is not None:
|
|
389
|
+
if params.get("exchange_whole", None) is not None:
|
|
379
390
|
cargs.extend([
|
|
380
391
|
"-exchange_whole",
|
|
381
|
-
execution.input_file(params.get("exchange_whole"))
|
|
392
|
+
execution.input_file(params.get("exchange_whole", None))
|
|
382
393
|
])
|
|
383
|
-
if params.get("strong"):
|
|
394
|
+
if params.get("strong", False):
|
|
384
395
|
cargs.append("-strong")
|
|
385
|
-
if params.get("nshuffles") is not None:
|
|
396
|
+
if params.get("nshuffles", None) is not None:
|
|
386
397
|
cargs.extend([
|
|
387
398
|
"-nshuffles",
|
|
388
|
-
str(params.get("nshuffles"))
|
|
399
|
+
str(params.get("nshuffles", None))
|
|
389
400
|
])
|
|
390
|
-
if params.get("permutations") is not None:
|
|
401
|
+
if params.get("permutations", None) is not None:
|
|
391
402
|
cargs.extend([
|
|
392
403
|
"-permutations",
|
|
393
|
-
execution.input_file(params.get("permutations"))
|
|
404
|
+
execution.input_file(params.get("permutations", None))
|
|
394
405
|
])
|
|
395
|
-
if params.get("nonstationarity"):
|
|
406
|
+
if params.get("nonstationarity", False):
|
|
396
407
|
cargs.append("-nonstationarity")
|
|
397
|
-
if params.get("skew_nonstationarity") is not None:
|
|
408
|
+
if params.get("skew_nonstationarity", None) is not None:
|
|
398
409
|
cargs.extend([
|
|
399
410
|
"-skew_nonstationarity",
|
|
400
|
-
str(params.get("skew_nonstationarity"))
|
|
411
|
+
str(params.get("skew_nonstationarity", None))
|
|
401
412
|
])
|
|
402
|
-
if params.get("nshuffles_nonstationarity") is not None:
|
|
413
|
+
if params.get("nshuffles_nonstationarity", None) is not None:
|
|
403
414
|
cargs.extend([
|
|
404
415
|
"-nshuffles_nonstationarity",
|
|
405
|
-
str(params.get("nshuffles_nonstationarity"))
|
|
416
|
+
str(params.get("nshuffles_nonstationarity", None))
|
|
406
417
|
])
|
|
407
|
-
if params.get("permutations_nonstationarity") is not None:
|
|
418
|
+
if params.get("permutations_nonstationarity", None) is not None:
|
|
408
419
|
cargs.extend([
|
|
409
420
|
"-permutations_nonstationarity",
|
|
410
|
-
execution.input_file(params.get("permutations_nonstationarity"))
|
|
421
|
+
execution.input_file(params.get("permutations_nonstationarity", None))
|
|
411
422
|
])
|
|
412
|
-
if params.get("tfce_dh") is not None:
|
|
423
|
+
if params.get("tfce_dh", None) is not None:
|
|
413
424
|
cargs.extend([
|
|
414
425
|
"-tfce_dh",
|
|
415
|
-
str(params.get("tfce_dh"))
|
|
426
|
+
str(params.get("tfce_dh", None))
|
|
416
427
|
])
|
|
417
|
-
if params.get("tfce_e") is not None:
|
|
428
|
+
if params.get("tfce_e", None) is not None:
|
|
418
429
|
cargs.extend([
|
|
419
430
|
"-tfce_e",
|
|
420
|
-
str(params.get("tfce_e"))
|
|
431
|
+
str(params.get("tfce_e", None))
|
|
421
432
|
])
|
|
422
|
-
if params.get("tfce_h") is not None:
|
|
433
|
+
if params.get("tfce_h", None) is not None:
|
|
423
434
|
cargs.extend([
|
|
424
435
|
"-tfce_h",
|
|
425
|
-
str(params.get("tfce_h"))
|
|
436
|
+
str(params.get("tfce_h", None))
|
|
426
437
|
])
|
|
427
|
-
if params.get("variance") is not None:
|
|
438
|
+
if params.get("variance", None) is not None:
|
|
428
439
|
cargs.extend([
|
|
429
440
|
"-variance",
|
|
430
|
-
execution.input_file(params.get("variance"))
|
|
441
|
+
execution.input_file(params.get("variance", None))
|
|
431
442
|
])
|
|
432
|
-
if params.get("ftests") is not None:
|
|
443
|
+
if params.get("ftests", None) is not None:
|
|
433
444
|
cargs.extend([
|
|
434
445
|
"-ftests",
|
|
435
|
-
execution.input_file(params.get("ftests"))
|
|
446
|
+
execution.input_file(params.get("ftests", None))
|
|
436
447
|
])
|
|
437
|
-
if params.get("fonly"):
|
|
448
|
+
if params.get("fonly", False):
|
|
438
449
|
cargs.append("-fonly")
|
|
439
|
-
if params.get("column") is not None:
|
|
440
|
-
cargs.extend([a for c in [
|
|
441
|
-
if params.get("threshold") is not None:
|
|
450
|
+
if params.get("column", None) is not None:
|
|
451
|
+
cargs.extend([a for c in [connectomestats_column_cargs(s, execution) for s in params.get("column", None)] for a in c])
|
|
452
|
+
if params.get("threshold", None) is not None:
|
|
442
453
|
cargs.extend([
|
|
443
454
|
"-threshold",
|
|
444
|
-
str(params.get("threshold"))
|
|
455
|
+
str(params.get("threshold", None))
|
|
445
456
|
])
|
|
446
|
-
if params.get("info"):
|
|
457
|
+
if params.get("info", False):
|
|
447
458
|
cargs.append("-info")
|
|
448
|
-
if params.get("quiet"):
|
|
459
|
+
if params.get("quiet", False):
|
|
449
460
|
cargs.append("-quiet")
|
|
450
|
-
if params.get("debug"):
|
|
461
|
+
if params.get("debug", False):
|
|
451
462
|
cargs.append("-debug")
|
|
452
|
-
if params.get("force"):
|
|
463
|
+
if params.get("force", False):
|
|
453
464
|
cargs.append("-force")
|
|
454
|
-
if params.get("nthreads") is not None:
|
|
465
|
+
if params.get("nthreads", None) is not None:
|
|
455
466
|
cargs.extend([
|
|
456
467
|
"-nthreads",
|
|
457
|
-
str(params.get("nthreads"))
|
|
468
|
+
str(params.get("nthreads", None))
|
|
458
469
|
])
|
|
459
|
-
if params.get("config") is not None:
|
|
460
|
-
cargs.extend([a for c in [
|
|
461
|
-
if params.get("help"):
|
|
470
|
+
if params.get("config", None) is not None:
|
|
471
|
+
cargs.extend([a for c in [connectomestats_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
|
|
472
|
+
if params.get("help", False):
|
|
462
473
|
cargs.append("-help")
|
|
463
|
-
if params.get("version"):
|
|
474
|
+
if params.get("version", False):
|
|
464
475
|
cargs.append("-version")
|
|
465
|
-
cargs.append(execution.input_file(params.get("input")))
|
|
466
|
-
cargs.append(params.get("algorithm"))
|
|
467
|
-
cargs.append(execution.input_file(params.get("design")))
|
|
468
|
-
cargs.append(execution.input_file(params.get("contrast")))
|
|
469
|
-
cargs.append(params.get("output"))
|
|
476
|
+
cargs.append(execution.input_file(params.get("input", None)))
|
|
477
|
+
cargs.append(params.get("algorithm", None))
|
|
478
|
+
cargs.append(execution.input_file(params.get("design", None)))
|
|
479
|
+
cargs.append(execution.input_file(params.get("contrast", None)))
|
|
480
|
+
cargs.append(params.get("output", None))
|
|
470
481
|
return cargs
|
|
471
482
|
|
|
472
483
|
|
|
@@ -491,9 +502,11 @@ def connectomestats_outputs(
|
|
|
491
502
|
|
|
492
503
|
def connectomestats_execute(
|
|
493
504
|
params: ConnectomestatsParameters,
|
|
494
|
-
|
|
505
|
+
runner: Runner | None = None,
|
|
495
506
|
) -> ConnectomestatsOutputs:
|
|
496
507
|
"""
|
|
508
|
+
connectomestats
|
|
509
|
+
|
|
497
510
|
Connectome group-wise statistics at the edge level using non-parametric
|
|
498
511
|
permutation testing.
|
|
499
512
|
|
|
@@ -546,10 +559,12 @@ def connectomestats_execute(
|
|
|
546
559
|
|
|
547
560
|
Args:
|
|
548
561
|
params: The parameters.
|
|
549
|
-
|
|
562
|
+
runner: Command runner.
|
|
550
563
|
Returns:
|
|
551
564
|
NamedTuple of outputs (described in `ConnectomestatsOutputs`).
|
|
552
565
|
"""
|
|
566
|
+
runner = runner or get_global_runner()
|
|
567
|
+
execution = runner.start_execution(CONNECTOMESTATS_METADATA)
|
|
553
568
|
params = execution.params(params)
|
|
554
569
|
cargs = connectomestats_cargs(params, execution)
|
|
555
570
|
ret = connectomestats_outputs(params, execution)
|
|
@@ -593,6 +608,8 @@ def connectomestats(
|
|
|
593
608
|
runner: Runner | None = None,
|
|
594
609
|
) -> ConnectomestatsOutputs:
|
|
595
610
|
"""
|
|
611
|
+
connectomestats
|
|
612
|
+
|
|
596
613
|
Connectome group-wise statistics at the edge level using non-parametric
|
|
597
614
|
permutation testing.
|
|
598
615
|
|
|
@@ -715,8 +732,6 @@ def connectomestats(
|
|
|
715
732
|
Returns:
|
|
716
733
|
NamedTuple of outputs (described in `ConnectomestatsOutputs`).
|
|
717
734
|
"""
|
|
718
|
-
runner = runner or get_global_runner()
|
|
719
|
-
execution = runner.start_execution(CONNECTOMESTATS_METADATA)
|
|
720
735
|
params = connectomestats_params(
|
|
721
736
|
notest=notest,
|
|
722
737
|
errors=errors,
|
|
@@ -751,17 +766,15 @@ def connectomestats(
|
|
|
751
766
|
contrast=contrast,
|
|
752
767
|
output=output,
|
|
753
768
|
)
|
|
754
|
-
return connectomestats_execute(params,
|
|
769
|
+
return connectomestats_execute(params, runner)
|
|
755
770
|
|
|
756
771
|
|
|
757
772
|
__all__ = [
|
|
758
773
|
"CONNECTOMESTATS_METADATA",
|
|
759
|
-
"ConnectomestatsColumnParameters",
|
|
760
|
-
"ConnectomestatsConfigParameters",
|
|
761
774
|
"ConnectomestatsOutputs",
|
|
762
|
-
"ConnectomestatsParameters",
|
|
763
775
|
"connectomestats",
|
|
764
776
|
"connectomestats_column_params",
|
|
765
777
|
"connectomestats_config_params",
|
|
778
|
+
"connectomestats_execute",
|
|
766
779
|
"connectomestats_params",
|
|
767
780
|
]
|