niwrap-mrtrix 0.8.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.
- niwrap_mrtrix/mrtrix/__init__.py +263 -0
- niwrap_mrtrix/mrtrix/afdconnectivity.py +527 -0
- niwrap_mrtrix/mrtrix/amp2response.py +560 -0
- niwrap_mrtrix/mrtrix/amp2sh.py +870 -0
- niwrap_mrtrix/mrtrix/connectome2tck.py +583 -0
- niwrap_mrtrix/mrtrix/connectomeedit.py +413 -0
- niwrap_mrtrix/mrtrix/connectomestats.py +956 -0
- niwrap_mrtrix/mrtrix/dcmedit.py +552 -0
- niwrap_mrtrix/mrtrix/dcminfo.py +529 -0
- niwrap_mrtrix/mrtrix/dirflip.py +440 -0
- niwrap_mrtrix/mrtrix/dirgen.py +514 -0
- niwrap_mrtrix/mrtrix/dirmerge.py +446 -0
- niwrap_mrtrix/mrtrix/dirorder.py +421 -0
- niwrap_mrtrix/mrtrix/dirsplit.py +436 -0
- niwrap_mrtrix/mrtrix/dirstat.py +640 -0
- niwrap_mrtrix/mrtrix/dwi2adc.py +531 -0
- niwrap_mrtrix/mrtrix/dwi2fod.py +1156 -0
- niwrap_mrtrix/mrtrix/dwi2mask.py +570 -0
- niwrap_mrtrix/mrtrix/dwi2response.py +1774 -0
- niwrap_mrtrix/mrtrix/dwi2tensor.py +715 -0
- niwrap_mrtrix/mrtrix/dwibiascorrect.py +673 -0
- niwrap_mrtrix/mrtrix/dwidenoise.py +570 -0
- niwrap_mrtrix/mrtrix/dwiextract.py +1111 -0
- niwrap_mrtrix/mrtrix/dwigradcheck.py +665 -0
- niwrap_mrtrix/mrtrix/fixel2peaks.py +613 -0
- niwrap_mrtrix/mrtrix/fixel2sh.py +430 -0
- niwrap_mrtrix/mrtrix/fixel2tsf.py +435 -0
- niwrap_mrtrix/mrtrix/fixel2voxel.py +523 -0
- niwrap_mrtrix/mrtrix/fixelcfestats.py +1179 -0
- niwrap_mrtrix/mrtrix/fixelconnectivity.py +477 -0
- niwrap_mrtrix/mrtrix/fixelconvert.py +850 -0
- niwrap_mrtrix/mrtrix/fixelcorrespondence.py +455 -0
- niwrap_mrtrix/mrtrix/fixelcrop.py +422 -0
- niwrap_mrtrix/mrtrix/fixelfilter.py +882 -0
- niwrap_mrtrix/mrtrix/fixelreorient.py +435 -0
- niwrap_mrtrix/mrtrix/fod2dec.py +571 -0
- niwrap_mrtrix/mrtrix/fod2fixel.py +646 -0
- niwrap_mrtrix/mrtrix/label2colour.py +426 -0
- niwrap_mrtrix/mrtrix/label2mesh.py +417 -0
- niwrap_mrtrix/mrtrix/labelconvert.py +460 -0
- niwrap_mrtrix/mrtrix/labelstats.py +418 -0
- niwrap_mrtrix/mrtrix/maskdump.py +404 -0
- niwrap_mrtrix/mrtrix/maskfilter.py +730 -0
- niwrap_mrtrix/mrtrix/mesh2voxel.py +422 -0
- niwrap_mrtrix/mrtrix/meshconvert.py +514 -0
- niwrap_mrtrix/mrtrix/meshfilter.py +452 -0
- niwrap_mrtrix/mrtrix/mraverageheader.py +485 -0
- niwrap_mrtrix/mrtrix/mrcalc.py +4302 -0
- niwrap_mrtrix/mrtrix/mrcat.py +467 -0
- niwrap_mrtrix/mrtrix/mrcentroid.py +418 -0
- niwrap_mrtrix/mrtrix/mrcheckerboardmask.py +446 -0
- niwrap_mrtrix/mrtrix/mrclusterstats.py +930 -0
- niwrap_mrtrix/mrtrix/mrcolour.py +490 -0
- niwrap_mrtrix/mrtrix/mrconvert.py +1967 -0
- niwrap_mrtrix/mrtrix/mrdegibbs.py +535 -0
- niwrap_mrtrix/mrtrix/mrdump.py +423 -0
- niwrap_mrtrix/mrtrix/mredit.py +737 -0
- niwrap_mrtrix/mrtrix/mrfilter.py +971 -0
- niwrap_mrtrix/mrtrix/mrgrid.py +1079 -0
- niwrap_mrtrix/mrtrix/mrhistmatch.py +494 -0
- niwrap_mrtrix/mrtrix/mrhistogram.py +484 -0
- niwrap_mrtrix/mrtrix/mrinfo.py +1282 -0
- niwrap_mrtrix/mrtrix/mrmath.py +503 -0
- niwrap_mrtrix/mrtrix/mrmetric.py +525 -0
- niwrap_mrtrix/mrtrix/mrregister.py +2098 -0
- niwrap_mrtrix/mrtrix/mrstats.py +534 -0
- niwrap_mrtrix/mrtrix/mrthreshold.py +666 -0
- niwrap_mrtrix/mrtrix/mrtransform.py +1372 -0
- niwrap_mrtrix/mrtrix/mtnormalise.py +725 -0
- niwrap_mrtrix/mrtrix/peaks2amp.py +403 -0
- niwrap_mrtrix/mrtrix/peaks2fixel.py +422 -0
- niwrap_mrtrix/mrtrix/responsemean.py +385 -0
- niwrap_mrtrix/mrtrix/sh2amp.py +844 -0
- niwrap_mrtrix/mrtrix/sh2peaks.py +632 -0
- niwrap_mrtrix/mrtrix/sh2power.py +427 -0
- niwrap_mrtrix/mrtrix/sh2response.py +481 -0
- niwrap_mrtrix/mrtrix/shbasis.py +445 -0
- niwrap_mrtrix/mrtrix/shconv.py +661 -0
- niwrap_mrtrix/mrtrix/tck2connectome.py +727 -0
- niwrap_mrtrix/mrtrix/tck2fixel.py +447 -0
- niwrap_mrtrix/mrtrix/tckconvert.py +775 -0
- niwrap_mrtrix/mrtrix/tckdfc.py +684 -0
- niwrap_mrtrix/mrtrix/tckedit.py +1478 -0
- niwrap_mrtrix/mrtrix/tckgen.py +2733 -0
- niwrap_mrtrix/mrtrix/tckglobal.py +944 -0
- niwrap_mrtrix/mrtrix/tckinfo.py +402 -0
- niwrap_mrtrix/mrtrix/tckmap.py +1004 -0
- niwrap_mrtrix/mrtrix/tckresample.py +760 -0
- niwrap_mrtrix/mrtrix/tcksample.py +497 -0
- niwrap_mrtrix/mrtrix/tcksift.py +739 -0
- niwrap_mrtrix/mrtrix/tcksift2.py +902 -0
- niwrap_mrtrix/mrtrix/tckstats.py +550 -0
- niwrap_mrtrix/mrtrix/tcktransform.py +414 -0
- niwrap_mrtrix/mrtrix/tensor2metric.py +659 -0
- niwrap_mrtrix/mrtrix/transformcalc.py +421 -0
- niwrap_mrtrix/mrtrix/transformcompose.py +625 -0
- niwrap_mrtrix/mrtrix/transformconvert.py +423 -0
- niwrap_mrtrix/mrtrix/tsfdivide.py +414 -0
- niwrap_mrtrix/mrtrix/tsfinfo.py +421 -0
- niwrap_mrtrix/mrtrix/tsfmult.py +401 -0
- niwrap_mrtrix/mrtrix/tsfsmooth.py +420 -0
- niwrap_mrtrix/mrtrix/tsfthreshold.py +428 -0
- niwrap_mrtrix/mrtrix/tsfvalidate.py +398 -0
- niwrap_mrtrix/mrtrix/v_5tt2gmwmi.py +432 -0
- niwrap_mrtrix/mrtrix/v_5tt2vis.py +505 -0
- niwrap_mrtrix/mrtrix/v_5ttcheck.py +409 -0
- niwrap_mrtrix/mrtrix/v_5ttedit.py +513 -0
- niwrap_mrtrix/mrtrix/v_5ttgen.py +1107 -0
- niwrap_mrtrix/mrtrix/vectorstats.py +736 -0
- niwrap_mrtrix/mrtrix/voxel2fixel.py +430 -0
- niwrap_mrtrix/mrtrix/voxel2mesh.py +454 -0
- niwrap_mrtrix/mrtrix/warp2metric.py +556 -0
- niwrap_mrtrix/mrtrix/warpconvert.py +498 -0
- niwrap_mrtrix/mrtrix/warpcorrect.py +448 -0
- niwrap_mrtrix/mrtrix/warpinit.py +425 -0
- niwrap_mrtrix/mrtrix/warpinvert.py +448 -0
- niwrap_mrtrix-0.8.0.dist-info/METADATA +8 -0
- niwrap_mrtrix-0.8.0.dist-info/RECORD +119 -0
- niwrap_mrtrix-0.8.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
# This file was auto generated by Styx.
|
|
2
|
+
# Do not edit this file directly.
|
|
3
|
+
|
|
4
|
+
import typing
|
|
5
|
+
import pathlib
|
|
6
|
+
from styxdefs import *
|
|
7
|
+
|
|
8
|
+
TSFVALIDATE_METADATA = Metadata(
|
|
9
|
+
id="113b8eae68aafc8fc670ca2774bb8cf075bd6e47.boutiques",
|
|
10
|
+
name="tsfvalidate",
|
|
11
|
+
package="mrtrix",
|
|
12
|
+
container_image_tag="mrtrix3/mrtrix3:3.0.4",
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
_TsfvalidateConfigParamsDictNoTag = typing.TypedDict('_TsfvalidateConfigParamsDictNoTag', {
|
|
17
|
+
"key": str,
|
|
18
|
+
"value": str,
|
|
19
|
+
})
|
|
20
|
+
TsfvalidateConfigParamsDictTagged = typing.TypedDict('TsfvalidateConfigParamsDictTagged', {
|
|
21
|
+
"@type": typing.Literal["config"],
|
|
22
|
+
"key": str,
|
|
23
|
+
"value": str,
|
|
24
|
+
})
|
|
25
|
+
TsfvalidateConfigParamsDict = _TsfvalidateConfigParamsDictNoTag | TsfvalidateConfigParamsDictTagged
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
_TsfvalidateParamsDictNoTag = typing.TypedDict('_TsfvalidateParamsDictNoTag', {
|
|
29
|
+
"info": bool,
|
|
30
|
+
"quiet": bool,
|
|
31
|
+
"debug": bool,
|
|
32
|
+
"force": bool,
|
|
33
|
+
"nthreads": typing.NotRequired[int | None],
|
|
34
|
+
"config": typing.NotRequired[list[TsfvalidateConfigParamsDict] | None],
|
|
35
|
+
"help": bool,
|
|
36
|
+
"version": bool,
|
|
37
|
+
"tsf": InputPathType,
|
|
38
|
+
"tracks": InputPathType,
|
|
39
|
+
})
|
|
40
|
+
TsfvalidateParamsDictTagged = typing.TypedDict('TsfvalidateParamsDictTagged', {
|
|
41
|
+
"@type": typing.Literal["mrtrix/tsfvalidate"],
|
|
42
|
+
"info": bool,
|
|
43
|
+
"quiet": bool,
|
|
44
|
+
"debug": bool,
|
|
45
|
+
"force": bool,
|
|
46
|
+
"nthreads": typing.NotRequired[int | None],
|
|
47
|
+
"config": typing.NotRequired[list[TsfvalidateConfigParamsDict] | None],
|
|
48
|
+
"help": bool,
|
|
49
|
+
"version": bool,
|
|
50
|
+
"tsf": InputPathType,
|
|
51
|
+
"tracks": InputPathType,
|
|
52
|
+
})
|
|
53
|
+
TsfvalidateParamsDict = _TsfvalidateParamsDictNoTag | TsfvalidateParamsDictTagged
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def tsfvalidate_config(
|
|
57
|
+
key: str,
|
|
58
|
+
value: str,
|
|
59
|
+
) -> TsfvalidateConfigParamsDictTagged:
|
|
60
|
+
"""
|
|
61
|
+
Build parameters.
|
|
62
|
+
|
|
63
|
+
Args:
|
|
64
|
+
key: temporarily set the value of an MRtrix config file entry.
|
|
65
|
+
value: temporarily set the value of an MRtrix config file entry.
|
|
66
|
+
Returns:
|
|
67
|
+
Parameter dictionary
|
|
68
|
+
"""
|
|
69
|
+
params = {
|
|
70
|
+
"@type": "config",
|
|
71
|
+
"key": key,
|
|
72
|
+
"value": value,
|
|
73
|
+
}
|
|
74
|
+
return params
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def tsfvalidate_config_validate(
|
|
78
|
+
params: typing.Any,
|
|
79
|
+
) -> None:
|
|
80
|
+
"""
|
|
81
|
+
Validate parameters. Throws an error if `params` is not a valid
|
|
82
|
+
`TsfvalidateConfigParamsDict` object.
|
|
83
|
+
|
|
84
|
+
Args:
|
|
85
|
+
params: The parameters object to validate.
|
|
86
|
+
"""
|
|
87
|
+
if params is None or not isinstance(params, dict):
|
|
88
|
+
raise StyxValidationError(f'Params object has the wrong type \'{type(params)}\'')
|
|
89
|
+
if params.get("key", None) is None:
|
|
90
|
+
raise StyxValidationError("`key` must not be None")
|
|
91
|
+
if not isinstance(params["key"], str):
|
|
92
|
+
raise StyxValidationError(f'`key` has the wrong type: Received `{type(params.get("key", None))}` expected `str`')
|
|
93
|
+
if params.get("value", None) is None:
|
|
94
|
+
raise StyxValidationError("`value` must not be None")
|
|
95
|
+
if not isinstance(params["value"], str):
|
|
96
|
+
raise StyxValidationError(f'`value` has the wrong type: Received `{type(params.get("value", None))}` expected `str`')
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def tsfvalidate_config_cargs(
|
|
100
|
+
params: TsfvalidateConfigParamsDict,
|
|
101
|
+
execution: Execution,
|
|
102
|
+
) -> list[str]:
|
|
103
|
+
"""
|
|
104
|
+
Build command-line arguments from parameters.
|
|
105
|
+
|
|
106
|
+
Args:
|
|
107
|
+
params: The parameters.
|
|
108
|
+
execution: The execution object for resolving input paths.
|
|
109
|
+
Returns:
|
|
110
|
+
Command-line arguments.
|
|
111
|
+
"""
|
|
112
|
+
cargs = []
|
|
113
|
+
cargs.append("-config")
|
|
114
|
+
cargs.append(params.get("key", None))
|
|
115
|
+
cargs.append(params.get("value", None))
|
|
116
|
+
return cargs
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class TsfvalidateOutputs(typing.NamedTuple):
|
|
120
|
+
"""
|
|
121
|
+
Output object returned when calling `TsfvalidateParamsDict(...)`.
|
|
122
|
+
"""
|
|
123
|
+
root: OutputPathType
|
|
124
|
+
"""Output root folder. This is the root folder for all outputs."""
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def tsfvalidate_params(
|
|
128
|
+
tsf: InputPathType,
|
|
129
|
+
tracks: InputPathType,
|
|
130
|
+
info: bool = False,
|
|
131
|
+
quiet: bool = False,
|
|
132
|
+
debug: bool = False,
|
|
133
|
+
force: bool = False,
|
|
134
|
+
nthreads: int | None = None,
|
|
135
|
+
config: list[TsfvalidateConfigParamsDict] | None = None,
|
|
136
|
+
help_: bool = False,
|
|
137
|
+
version: bool = False,
|
|
138
|
+
) -> TsfvalidateParamsDictTagged:
|
|
139
|
+
"""
|
|
140
|
+
Build parameters.
|
|
141
|
+
|
|
142
|
+
Args:
|
|
143
|
+
tsf: the input track scalar file.
|
|
144
|
+
tracks: the track file on which the TSF is based.
|
|
145
|
+
info: display information messages.
|
|
146
|
+
quiet: do not display information messages or progress status;\
|
|
147
|
+
alternatively, this can be achieved by setting the MRTRIX_QUIET\
|
|
148
|
+
environment variable to a non-empty string.
|
|
149
|
+
debug: display debugging messages.
|
|
150
|
+
force: force overwrite of output files (caution: using the same file as\
|
|
151
|
+
input and output might cause unexpected behaviour).
|
|
152
|
+
nthreads: use this number of threads in multi-threaded applications\
|
|
153
|
+
(set to 0 to disable multi-threading).
|
|
154
|
+
config: temporarily set the value of an MRtrix config file entry.
|
|
155
|
+
help_: display this information page and exit.
|
|
156
|
+
version: display version information and exit.
|
|
157
|
+
Returns:
|
|
158
|
+
Parameter dictionary
|
|
159
|
+
"""
|
|
160
|
+
params = {
|
|
161
|
+
"@type": "mrtrix/tsfvalidate",
|
|
162
|
+
"info": info,
|
|
163
|
+
"quiet": quiet,
|
|
164
|
+
"debug": debug,
|
|
165
|
+
"force": force,
|
|
166
|
+
"help": help_,
|
|
167
|
+
"version": version,
|
|
168
|
+
"tsf": tsf,
|
|
169
|
+
"tracks": tracks,
|
|
170
|
+
}
|
|
171
|
+
if nthreads is not None:
|
|
172
|
+
params["nthreads"] = nthreads
|
|
173
|
+
if config is not None:
|
|
174
|
+
params["config"] = config
|
|
175
|
+
return params
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def tsfvalidate_validate(
|
|
179
|
+
params: typing.Any,
|
|
180
|
+
) -> None:
|
|
181
|
+
"""
|
|
182
|
+
Validate parameters. Throws an error if `params` is not a valid
|
|
183
|
+
`TsfvalidateParamsDict` object.
|
|
184
|
+
|
|
185
|
+
Args:
|
|
186
|
+
params: The parameters object to validate.
|
|
187
|
+
"""
|
|
188
|
+
if params is None or not isinstance(params, dict):
|
|
189
|
+
raise StyxValidationError(f'Params object has the wrong type \'{type(params)}\'')
|
|
190
|
+
if params.get("info", False) is None:
|
|
191
|
+
raise StyxValidationError("`info` must not be None")
|
|
192
|
+
if not isinstance(params["info"], bool):
|
|
193
|
+
raise StyxValidationError(f'`info` has the wrong type: Received `{type(params.get("info", False))}` expected `bool`')
|
|
194
|
+
if params.get("quiet", False) is None:
|
|
195
|
+
raise StyxValidationError("`quiet` must not be None")
|
|
196
|
+
if not isinstance(params["quiet"], bool):
|
|
197
|
+
raise StyxValidationError(f'`quiet` has the wrong type: Received `{type(params.get("quiet", False))}` expected `bool`')
|
|
198
|
+
if params.get("debug", False) is None:
|
|
199
|
+
raise StyxValidationError("`debug` must not be None")
|
|
200
|
+
if not isinstance(params["debug"], bool):
|
|
201
|
+
raise StyxValidationError(f'`debug` has the wrong type: Received `{type(params.get("debug", False))}` expected `bool`')
|
|
202
|
+
if params.get("force", False) is None:
|
|
203
|
+
raise StyxValidationError("`force` must not be None")
|
|
204
|
+
if not isinstance(params["force"], bool):
|
|
205
|
+
raise StyxValidationError(f'`force` has the wrong type: Received `{type(params.get("force", False))}` expected `bool`')
|
|
206
|
+
if params.get("nthreads", None) is not None:
|
|
207
|
+
if not isinstance(params["nthreads"], int):
|
|
208
|
+
raise StyxValidationError(f'`nthreads` has the wrong type: Received `{type(params.get("nthreads", None))}` expected `int | None`')
|
|
209
|
+
if params.get("config", None) is not None:
|
|
210
|
+
if not isinstance(params["config"], list):
|
|
211
|
+
raise StyxValidationError(f'`config` has the wrong type: Received `{type(params.get("config", None))}` expected `list[TsfvalidateConfigParamsDict] | None`')
|
|
212
|
+
for e in params["config"]:
|
|
213
|
+
tsfvalidate_config_validate(e)
|
|
214
|
+
if params.get("help", False) is None:
|
|
215
|
+
raise StyxValidationError("`help` must not be None")
|
|
216
|
+
if not isinstance(params["help"], bool):
|
|
217
|
+
raise StyxValidationError(f'`help` has the wrong type: Received `{type(params.get("help", False))}` expected `bool`')
|
|
218
|
+
if params.get("version", False) is None:
|
|
219
|
+
raise StyxValidationError("`version` must not be None")
|
|
220
|
+
if not isinstance(params["version"], bool):
|
|
221
|
+
raise StyxValidationError(f'`version` has the wrong type: Received `{type(params.get("version", False))}` expected `bool`')
|
|
222
|
+
if params.get("tsf", None) is None:
|
|
223
|
+
raise StyxValidationError("`tsf` must not be None")
|
|
224
|
+
if not isinstance(params["tsf"], (pathlib.Path, str)):
|
|
225
|
+
raise StyxValidationError(f'`tsf` has the wrong type: Received `{type(params.get("tsf", None))}` expected `InputPathType`')
|
|
226
|
+
if params.get("tracks", None) is None:
|
|
227
|
+
raise StyxValidationError("`tracks` must not be None")
|
|
228
|
+
if not isinstance(params["tracks"], (pathlib.Path, str)):
|
|
229
|
+
raise StyxValidationError(f'`tracks` has the wrong type: Received `{type(params.get("tracks", None))}` expected `InputPathType`')
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
def tsfvalidate_cargs(
|
|
233
|
+
params: TsfvalidateParamsDict,
|
|
234
|
+
execution: Execution,
|
|
235
|
+
) -> list[str]:
|
|
236
|
+
"""
|
|
237
|
+
Build command-line arguments from parameters.
|
|
238
|
+
|
|
239
|
+
Args:
|
|
240
|
+
params: The parameters.
|
|
241
|
+
execution: The execution object for resolving input paths.
|
|
242
|
+
Returns:
|
|
243
|
+
Command-line arguments.
|
|
244
|
+
"""
|
|
245
|
+
cargs = []
|
|
246
|
+
cargs.append("tsfvalidate")
|
|
247
|
+
if params.get("info", False):
|
|
248
|
+
cargs.append("-info")
|
|
249
|
+
if params.get("quiet", False):
|
|
250
|
+
cargs.append("-quiet")
|
|
251
|
+
if params.get("debug", False):
|
|
252
|
+
cargs.append("-debug")
|
|
253
|
+
if params.get("force", False):
|
|
254
|
+
cargs.append("-force")
|
|
255
|
+
if params.get("nthreads", None) is not None:
|
|
256
|
+
cargs.extend([
|
|
257
|
+
"-nthreads",
|
|
258
|
+
str(params.get("nthreads", None))
|
|
259
|
+
])
|
|
260
|
+
if params.get("config", None) is not None:
|
|
261
|
+
cargs.extend([a for c in [tsfvalidate_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
|
|
262
|
+
if params.get("help", False):
|
|
263
|
+
cargs.append("-help")
|
|
264
|
+
if params.get("version", False):
|
|
265
|
+
cargs.append("-version")
|
|
266
|
+
cargs.append(execution.input_file(params.get("tsf", None)))
|
|
267
|
+
cargs.append(execution.input_file(params.get("tracks", None)))
|
|
268
|
+
return cargs
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
def tsfvalidate_outputs(
|
|
272
|
+
params: TsfvalidateParamsDict,
|
|
273
|
+
execution: Execution,
|
|
274
|
+
) -> TsfvalidateOutputs:
|
|
275
|
+
"""
|
|
276
|
+
Build outputs object containing output file paths and possibly stdout/stderr.
|
|
277
|
+
|
|
278
|
+
Args:
|
|
279
|
+
params: The parameters.
|
|
280
|
+
execution: The execution object for resolving input paths.
|
|
281
|
+
Returns:
|
|
282
|
+
Outputs object.
|
|
283
|
+
"""
|
|
284
|
+
ret = TsfvalidateOutputs(
|
|
285
|
+
root=execution.output_file("."),
|
|
286
|
+
)
|
|
287
|
+
return ret
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
def tsfvalidate_execute(
|
|
291
|
+
params: TsfvalidateParamsDict,
|
|
292
|
+
runner: Runner | None = None,
|
|
293
|
+
) -> TsfvalidateOutputs:
|
|
294
|
+
"""
|
|
295
|
+
tsfvalidate
|
|
296
|
+
|
|
297
|
+
Validate a track scalar file against the corresponding track data.
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
References:
|
|
302
|
+
|
|
303
|
+
.
|
|
304
|
+
|
|
305
|
+
Author: MRTrix3 Developers
|
|
306
|
+
|
|
307
|
+
URL: https://www.mrtrix.org/
|
|
308
|
+
|
|
309
|
+
Args:
|
|
310
|
+
params: The parameters.
|
|
311
|
+
runner: Command runner.
|
|
312
|
+
Returns:
|
|
313
|
+
NamedTuple of outputs (described in `TsfvalidateOutputs`).
|
|
314
|
+
"""
|
|
315
|
+
tsfvalidate_validate(params)
|
|
316
|
+
runner = runner or get_global_runner()
|
|
317
|
+
execution = runner.start_execution(TSFVALIDATE_METADATA)
|
|
318
|
+
params = execution.params(params)
|
|
319
|
+
cargs = tsfvalidate_cargs(params, execution)
|
|
320
|
+
ret = tsfvalidate_outputs(params, execution)
|
|
321
|
+
execution.run(cargs)
|
|
322
|
+
return ret
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
def tsfvalidate(
|
|
326
|
+
tsf: InputPathType,
|
|
327
|
+
tracks: InputPathType,
|
|
328
|
+
info: bool = False,
|
|
329
|
+
quiet: bool = False,
|
|
330
|
+
debug: bool = False,
|
|
331
|
+
force: bool = False,
|
|
332
|
+
nthreads: int | None = None,
|
|
333
|
+
config: list[TsfvalidateConfigParamsDict] | None = None,
|
|
334
|
+
help_: bool = False,
|
|
335
|
+
version: bool = False,
|
|
336
|
+
runner: Runner | None = None,
|
|
337
|
+
) -> TsfvalidateOutputs:
|
|
338
|
+
"""
|
|
339
|
+
tsfvalidate
|
|
340
|
+
|
|
341
|
+
Validate a track scalar file against the corresponding track data.
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
References:
|
|
346
|
+
|
|
347
|
+
.
|
|
348
|
+
|
|
349
|
+
Author: MRTrix3 Developers
|
|
350
|
+
|
|
351
|
+
URL: https://www.mrtrix.org/
|
|
352
|
+
|
|
353
|
+
Args:
|
|
354
|
+
tsf: the input track scalar file.
|
|
355
|
+
tracks: the track file on which the TSF is based.
|
|
356
|
+
info: display information messages.
|
|
357
|
+
quiet: do not display information messages or progress status;\
|
|
358
|
+
alternatively, this can be achieved by setting the MRTRIX_QUIET\
|
|
359
|
+
environment variable to a non-empty string.
|
|
360
|
+
debug: display debugging messages.
|
|
361
|
+
force: force overwrite of output files (caution: using the same file as\
|
|
362
|
+
input and output might cause unexpected behaviour).
|
|
363
|
+
nthreads: use this number of threads in multi-threaded applications\
|
|
364
|
+
(set to 0 to disable multi-threading).
|
|
365
|
+
config: temporarily set the value of an MRtrix config file entry.
|
|
366
|
+
help_: display this information page and exit.
|
|
367
|
+
version: display version information and exit.
|
|
368
|
+
runner: Command runner.
|
|
369
|
+
Returns:
|
|
370
|
+
NamedTuple of outputs (described in `TsfvalidateOutputs`).
|
|
371
|
+
"""
|
|
372
|
+
params = tsfvalidate_params(
|
|
373
|
+
info=info,
|
|
374
|
+
quiet=quiet,
|
|
375
|
+
debug=debug,
|
|
376
|
+
force=force,
|
|
377
|
+
nthreads=nthreads,
|
|
378
|
+
config=config,
|
|
379
|
+
help_=help_,
|
|
380
|
+
version=version,
|
|
381
|
+
tsf=tsf,
|
|
382
|
+
tracks=tracks,
|
|
383
|
+
)
|
|
384
|
+
return tsfvalidate_execute(params, runner)
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
__all__ = [
|
|
388
|
+
"TSFVALIDATE_METADATA",
|
|
389
|
+
"TsfvalidateConfigParamsDict",
|
|
390
|
+
"TsfvalidateConfigParamsDictTagged",
|
|
391
|
+
"TsfvalidateOutputs",
|
|
392
|
+
"TsfvalidateParamsDict",
|
|
393
|
+
"TsfvalidateParamsDictTagged",
|
|
394
|
+
"tsfvalidate",
|
|
395
|
+
"tsfvalidate_config",
|
|
396
|
+
"tsfvalidate_execute",
|
|
397
|
+
"tsfvalidate_params",
|
|
398
|
+
]
|