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,402 @@
|
|
|
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
|
+
TCKINFO_METADATA = Metadata(
|
|
9
|
+
id="0d096f25f496f4f8a788a3cdb85dd77497b69433.boutiques",
|
|
10
|
+
name="tckinfo",
|
|
11
|
+
package="mrtrix",
|
|
12
|
+
container_image_tag="mrtrix3/mrtrix3:3.0.4",
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
_TckinfoConfigParamsDictNoTag = typing.TypedDict('_TckinfoConfigParamsDictNoTag', {
|
|
17
|
+
"key": str,
|
|
18
|
+
"value": str,
|
|
19
|
+
})
|
|
20
|
+
TckinfoConfigParamsDictTagged = typing.TypedDict('TckinfoConfigParamsDictTagged', {
|
|
21
|
+
"@type": typing.Literal["config"],
|
|
22
|
+
"key": str,
|
|
23
|
+
"value": str,
|
|
24
|
+
})
|
|
25
|
+
TckinfoConfigParamsDict = _TckinfoConfigParamsDictNoTag | TckinfoConfigParamsDictTagged
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
_TckinfoParamsDictNoTag = typing.TypedDict('_TckinfoParamsDictNoTag', {
|
|
29
|
+
"count": bool,
|
|
30
|
+
"info": bool,
|
|
31
|
+
"quiet": bool,
|
|
32
|
+
"debug": bool,
|
|
33
|
+
"force": bool,
|
|
34
|
+
"nthreads": typing.NotRequired[int | None],
|
|
35
|
+
"config": typing.NotRequired[list[TckinfoConfigParamsDict] | None],
|
|
36
|
+
"help": bool,
|
|
37
|
+
"version": bool,
|
|
38
|
+
"tracks": list[InputPathType],
|
|
39
|
+
})
|
|
40
|
+
TckinfoParamsDictTagged = typing.TypedDict('TckinfoParamsDictTagged', {
|
|
41
|
+
"@type": typing.Literal["mrtrix/tckinfo"],
|
|
42
|
+
"count": bool,
|
|
43
|
+
"info": bool,
|
|
44
|
+
"quiet": bool,
|
|
45
|
+
"debug": bool,
|
|
46
|
+
"force": bool,
|
|
47
|
+
"nthreads": typing.NotRequired[int | None],
|
|
48
|
+
"config": typing.NotRequired[list[TckinfoConfigParamsDict] | None],
|
|
49
|
+
"help": bool,
|
|
50
|
+
"version": bool,
|
|
51
|
+
"tracks": list[InputPathType],
|
|
52
|
+
})
|
|
53
|
+
TckinfoParamsDict = _TckinfoParamsDictNoTag | TckinfoParamsDictTagged
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def tckinfo_config(
|
|
57
|
+
key: str,
|
|
58
|
+
value: str,
|
|
59
|
+
) -> TckinfoConfigParamsDictTagged:
|
|
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 tckinfo_config_validate(
|
|
78
|
+
params: typing.Any,
|
|
79
|
+
) -> None:
|
|
80
|
+
"""
|
|
81
|
+
Validate parameters. Throws an error if `params` is not a valid
|
|
82
|
+
`TckinfoConfigParamsDict` 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 tckinfo_config_cargs(
|
|
100
|
+
params: TckinfoConfigParamsDict,
|
|
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 TckinfoOutputs(typing.NamedTuple):
|
|
120
|
+
"""
|
|
121
|
+
Output object returned when calling `TckinfoParamsDict(...)`.
|
|
122
|
+
"""
|
|
123
|
+
root: OutputPathType
|
|
124
|
+
"""Output root folder. This is the root folder for all outputs."""
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def tckinfo_params(
|
|
128
|
+
tracks: list[InputPathType],
|
|
129
|
+
count: bool = False,
|
|
130
|
+
info: bool = False,
|
|
131
|
+
quiet: bool = False,
|
|
132
|
+
debug: bool = False,
|
|
133
|
+
force: bool = False,
|
|
134
|
+
nthreads: int | None = None,
|
|
135
|
+
config: list[TckinfoConfigParamsDict] | None = None,
|
|
136
|
+
help_: bool = False,
|
|
137
|
+
version: bool = False,
|
|
138
|
+
) -> TckinfoParamsDictTagged:
|
|
139
|
+
"""
|
|
140
|
+
Build parameters.
|
|
141
|
+
|
|
142
|
+
Args:
|
|
143
|
+
tracks: the input track file.
|
|
144
|
+
count: count number of tracks in file explicitly, ignoring the header.
|
|
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/tckinfo",
|
|
162
|
+
"count": count,
|
|
163
|
+
"info": info,
|
|
164
|
+
"quiet": quiet,
|
|
165
|
+
"debug": debug,
|
|
166
|
+
"force": force,
|
|
167
|
+
"help": help_,
|
|
168
|
+
"version": version,
|
|
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 tckinfo_validate(
|
|
179
|
+
params: typing.Any,
|
|
180
|
+
) -> None:
|
|
181
|
+
"""
|
|
182
|
+
Validate parameters. Throws an error if `params` is not a valid
|
|
183
|
+
`TckinfoParamsDict` 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("count", False) is None:
|
|
191
|
+
raise StyxValidationError("`count` must not be None")
|
|
192
|
+
if not isinstance(params["count"], bool):
|
|
193
|
+
raise StyxValidationError(f'`count` has the wrong type: Received `{type(params.get("count", False))}` expected `bool`')
|
|
194
|
+
if params.get("info", False) is None:
|
|
195
|
+
raise StyxValidationError("`info` must not be None")
|
|
196
|
+
if not isinstance(params["info"], bool):
|
|
197
|
+
raise StyxValidationError(f'`info` has the wrong type: Received `{type(params.get("info", False))}` expected `bool`')
|
|
198
|
+
if params.get("quiet", False) is None:
|
|
199
|
+
raise StyxValidationError("`quiet` must not be None")
|
|
200
|
+
if not isinstance(params["quiet"], bool):
|
|
201
|
+
raise StyxValidationError(f'`quiet` has the wrong type: Received `{type(params.get("quiet", False))}` expected `bool`')
|
|
202
|
+
if params.get("debug", False) is None:
|
|
203
|
+
raise StyxValidationError("`debug` must not be None")
|
|
204
|
+
if not isinstance(params["debug"], bool):
|
|
205
|
+
raise StyxValidationError(f'`debug` has the wrong type: Received `{type(params.get("debug", False))}` expected `bool`')
|
|
206
|
+
if params.get("force", False) is None:
|
|
207
|
+
raise StyxValidationError("`force` must not be None")
|
|
208
|
+
if not isinstance(params["force"], bool):
|
|
209
|
+
raise StyxValidationError(f'`force` has the wrong type: Received `{type(params.get("force", False))}` expected `bool`')
|
|
210
|
+
if params.get("nthreads", None) is not None:
|
|
211
|
+
if not isinstance(params["nthreads"], int):
|
|
212
|
+
raise StyxValidationError(f'`nthreads` has the wrong type: Received `{type(params.get("nthreads", None))}` expected `int | None`')
|
|
213
|
+
if params.get("config", None) is not None:
|
|
214
|
+
if not isinstance(params["config"], list):
|
|
215
|
+
raise StyxValidationError(f'`config` has the wrong type: Received `{type(params.get("config", None))}` expected `list[TckinfoConfigParamsDict] | None`')
|
|
216
|
+
for e in params["config"]:
|
|
217
|
+
tckinfo_config_validate(e)
|
|
218
|
+
if params.get("help", False) is None:
|
|
219
|
+
raise StyxValidationError("`help` must not be None")
|
|
220
|
+
if not isinstance(params["help"], bool):
|
|
221
|
+
raise StyxValidationError(f'`help` has the wrong type: Received `{type(params.get("help", False))}` expected `bool`')
|
|
222
|
+
if params.get("version", False) is None:
|
|
223
|
+
raise StyxValidationError("`version` must not be None")
|
|
224
|
+
if not isinstance(params["version"], bool):
|
|
225
|
+
raise StyxValidationError(f'`version` has the wrong type: Received `{type(params.get("version", False))}` expected `bool`')
|
|
226
|
+
if params.get("tracks", None) is None:
|
|
227
|
+
raise StyxValidationError("`tracks` must not be None")
|
|
228
|
+
if not isinstance(params["tracks"], list):
|
|
229
|
+
raise StyxValidationError(f'`tracks` has the wrong type: Received `{type(params.get("tracks", None))}` expected `list[InputPathType]`')
|
|
230
|
+
for e in params["tracks"]:
|
|
231
|
+
if not isinstance(e, (pathlib.Path, str)):
|
|
232
|
+
raise StyxValidationError(f'`tracks` has the wrong type: Received `{type(params.get("tracks", None))}` expected `list[InputPathType]`')
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
def tckinfo_cargs(
|
|
236
|
+
params: TckinfoParamsDict,
|
|
237
|
+
execution: Execution,
|
|
238
|
+
) -> list[str]:
|
|
239
|
+
"""
|
|
240
|
+
Build command-line arguments from parameters.
|
|
241
|
+
|
|
242
|
+
Args:
|
|
243
|
+
params: The parameters.
|
|
244
|
+
execution: The execution object for resolving input paths.
|
|
245
|
+
Returns:
|
|
246
|
+
Command-line arguments.
|
|
247
|
+
"""
|
|
248
|
+
cargs = []
|
|
249
|
+
cargs.append("tckinfo")
|
|
250
|
+
if params.get("count", False):
|
|
251
|
+
cargs.append("-count")
|
|
252
|
+
if params.get("info", False):
|
|
253
|
+
cargs.append("-info")
|
|
254
|
+
if params.get("quiet", False):
|
|
255
|
+
cargs.append("-quiet")
|
|
256
|
+
if params.get("debug", False):
|
|
257
|
+
cargs.append("-debug")
|
|
258
|
+
if params.get("force", False):
|
|
259
|
+
cargs.append("-force")
|
|
260
|
+
if params.get("nthreads", None) is not None:
|
|
261
|
+
cargs.extend([
|
|
262
|
+
"-nthreads",
|
|
263
|
+
str(params.get("nthreads", None))
|
|
264
|
+
])
|
|
265
|
+
if params.get("config", None) is not None:
|
|
266
|
+
cargs.extend([a for c in [tckinfo_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
|
|
267
|
+
if params.get("help", False):
|
|
268
|
+
cargs.append("-help")
|
|
269
|
+
if params.get("version", False):
|
|
270
|
+
cargs.append("-version")
|
|
271
|
+
cargs.extend([execution.input_file(f) for f in params.get("tracks", None)])
|
|
272
|
+
return cargs
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
def tckinfo_outputs(
|
|
276
|
+
params: TckinfoParamsDict,
|
|
277
|
+
execution: Execution,
|
|
278
|
+
) -> TckinfoOutputs:
|
|
279
|
+
"""
|
|
280
|
+
Build outputs object containing output file paths and possibly stdout/stderr.
|
|
281
|
+
|
|
282
|
+
Args:
|
|
283
|
+
params: The parameters.
|
|
284
|
+
execution: The execution object for resolving input paths.
|
|
285
|
+
Returns:
|
|
286
|
+
Outputs object.
|
|
287
|
+
"""
|
|
288
|
+
ret = TckinfoOutputs(
|
|
289
|
+
root=execution.output_file("."),
|
|
290
|
+
)
|
|
291
|
+
return ret
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def tckinfo_execute(
|
|
295
|
+
params: TckinfoParamsDict,
|
|
296
|
+
runner: Runner | None = None,
|
|
297
|
+
) -> TckinfoOutputs:
|
|
298
|
+
"""
|
|
299
|
+
tckinfo
|
|
300
|
+
|
|
301
|
+
Print out information about a track file.
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
References:
|
|
306
|
+
|
|
307
|
+
.
|
|
308
|
+
|
|
309
|
+
Author: MRTrix3 Developers
|
|
310
|
+
|
|
311
|
+
URL: https://www.mrtrix.org/
|
|
312
|
+
|
|
313
|
+
Args:
|
|
314
|
+
params: The parameters.
|
|
315
|
+
runner: Command runner.
|
|
316
|
+
Returns:
|
|
317
|
+
NamedTuple of outputs (described in `TckinfoOutputs`).
|
|
318
|
+
"""
|
|
319
|
+
tckinfo_validate(params)
|
|
320
|
+
runner = runner or get_global_runner()
|
|
321
|
+
execution = runner.start_execution(TCKINFO_METADATA)
|
|
322
|
+
params = execution.params(params)
|
|
323
|
+
cargs = tckinfo_cargs(params, execution)
|
|
324
|
+
ret = tckinfo_outputs(params, execution)
|
|
325
|
+
execution.run(cargs)
|
|
326
|
+
return ret
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
def tckinfo(
|
|
330
|
+
tracks: list[InputPathType],
|
|
331
|
+
count: bool = False,
|
|
332
|
+
info: bool = False,
|
|
333
|
+
quiet: bool = False,
|
|
334
|
+
debug: bool = False,
|
|
335
|
+
force: bool = False,
|
|
336
|
+
nthreads: int | None = None,
|
|
337
|
+
config: list[TckinfoConfigParamsDict] | None = None,
|
|
338
|
+
help_: bool = False,
|
|
339
|
+
version: bool = False,
|
|
340
|
+
runner: Runner | None = None,
|
|
341
|
+
) -> TckinfoOutputs:
|
|
342
|
+
"""
|
|
343
|
+
tckinfo
|
|
344
|
+
|
|
345
|
+
Print out information about a track file.
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
References:
|
|
350
|
+
|
|
351
|
+
.
|
|
352
|
+
|
|
353
|
+
Author: MRTrix3 Developers
|
|
354
|
+
|
|
355
|
+
URL: https://www.mrtrix.org/
|
|
356
|
+
|
|
357
|
+
Args:
|
|
358
|
+
tracks: the input track file.
|
|
359
|
+
count: count number of tracks in file explicitly, ignoring the header.
|
|
360
|
+
info: display information messages.
|
|
361
|
+
quiet: do not display information messages or progress status;\
|
|
362
|
+
alternatively, this can be achieved by setting the MRTRIX_QUIET\
|
|
363
|
+
environment variable to a non-empty string.
|
|
364
|
+
debug: display debugging messages.
|
|
365
|
+
force: force overwrite of output files (caution: using the same file as\
|
|
366
|
+
input and output might cause unexpected behaviour).
|
|
367
|
+
nthreads: use this number of threads in multi-threaded applications\
|
|
368
|
+
(set to 0 to disable multi-threading).
|
|
369
|
+
config: temporarily set the value of an MRtrix config file entry.
|
|
370
|
+
help_: display this information page and exit.
|
|
371
|
+
version: display version information and exit.
|
|
372
|
+
runner: Command runner.
|
|
373
|
+
Returns:
|
|
374
|
+
NamedTuple of outputs (described in `TckinfoOutputs`).
|
|
375
|
+
"""
|
|
376
|
+
params = tckinfo_params(
|
|
377
|
+
count=count,
|
|
378
|
+
info=info,
|
|
379
|
+
quiet=quiet,
|
|
380
|
+
debug=debug,
|
|
381
|
+
force=force,
|
|
382
|
+
nthreads=nthreads,
|
|
383
|
+
config=config,
|
|
384
|
+
help_=help_,
|
|
385
|
+
version=version,
|
|
386
|
+
tracks=tracks,
|
|
387
|
+
)
|
|
388
|
+
return tckinfo_execute(params, runner)
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
__all__ = [
|
|
392
|
+
"TCKINFO_METADATA",
|
|
393
|
+
"TckinfoConfigParamsDict",
|
|
394
|
+
"TckinfoConfigParamsDictTagged",
|
|
395
|
+
"TckinfoOutputs",
|
|
396
|
+
"TckinfoParamsDict",
|
|
397
|
+
"TckinfoParamsDictTagged",
|
|
398
|
+
"tckinfo",
|
|
399
|
+
"tckinfo_config",
|
|
400
|
+
"tckinfo_execute",
|
|
401
|
+
"tckinfo_params",
|
|
402
|
+
]
|