niwrap-mrtrix 0.5.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 +130 -0
- niwrap_mrtrix/mrtrix/afdconnectivity.py +445 -0
- niwrap_mrtrix/mrtrix/amp2response.py +453 -0
- niwrap_mrtrix/mrtrix/amp2sh.py +656 -0
- niwrap_mrtrix/mrtrix/connectome2tck.py +470 -0
- niwrap_mrtrix/mrtrix/connectomeedit.py +338 -0
- niwrap_mrtrix/mrtrix/connectomestats.py +767 -0
- niwrap_mrtrix/mrtrix/dcmedit.py +440 -0
- niwrap_mrtrix/mrtrix/dcminfo.py +416 -0
- niwrap_mrtrix/mrtrix/dirflip.py +362 -0
- niwrap_mrtrix/mrtrix/dirgen.py +423 -0
- niwrap_mrtrix/mrtrix/dirmerge.py +365 -0
- niwrap_mrtrix/mrtrix/dirorder.py +347 -0
- niwrap_mrtrix/mrtrix/dirsplit.py +358 -0
- niwrap_mrtrix/mrtrix/dirstat.py +530 -0
- niwrap_mrtrix/mrtrix/dwi2adc.py +428 -0
- niwrap_mrtrix/mrtrix/dwi2fod.py +879 -0
- niwrap_mrtrix/mrtrix/dwi2mask.py +463 -0
- niwrap_mrtrix/mrtrix/dwi2response.py +1295 -0
- niwrap_mrtrix/mrtrix/dwi2tensor.py +587 -0
- niwrap_mrtrix/mrtrix/dwibiascorrect.py +467 -0
- niwrap_mrtrix/mrtrix/dwidenoise.py +478 -0
- niwrap_mrtrix/mrtrix/dwiextract.py +825 -0
- niwrap_mrtrix/mrtrix/dwigradcheck.py +534 -0
- niwrap_mrtrix/mrtrix/fixel2peaks.py +452 -0
- niwrap_mrtrix/mrtrix/fixel2sh.py +357 -0
- niwrap_mrtrix/mrtrix/fixel2tsf.py +357 -0
- niwrap_mrtrix/mrtrix/fixel2voxel.py +437 -0
- niwrap_mrtrix/mrtrix/fixelcfestats.py +893 -0
- niwrap_mrtrix/mrtrix/fixelconnectivity.py +391 -0
- niwrap_mrtrix/mrtrix/fixelconvert.py +588 -0
- niwrap_mrtrix/mrtrix/fixelcorrespondence.py +371 -0
- niwrap_mrtrix/mrtrix/fixelcrop.py +348 -0
- niwrap_mrtrix/mrtrix/fixelfilter.py +616 -0
- niwrap_mrtrix/mrtrix/fixelreorient.py +361 -0
- niwrap_mrtrix/mrtrix/fod2dec.py +469 -0
- niwrap_mrtrix/mrtrix/fod2fixel.py +530 -0
- niwrap_mrtrix/mrtrix/label2colour.py +351 -0
- niwrap_mrtrix/mrtrix/label2mesh.py +343 -0
- niwrap_mrtrix/mrtrix/labelconvert.py +377 -0
- niwrap_mrtrix/mrtrix/labelstats.py +344 -0
- niwrap_mrtrix/mrtrix/maskdump.py +336 -0
- niwrap_mrtrix/mrtrix/maskfilter.py +537 -0
- niwrap_mrtrix/mrtrix/mesh2voxel.py +348 -0
- niwrap_mrtrix/mrtrix/meshconvert.py +410 -0
- niwrap_mrtrix/mrtrix/meshfilter.py +370 -0
- niwrap_mrtrix/mrtrix/mraverageheader.py +396 -0
- niwrap_mrtrix/mrtrix/mrcalc.py +3047 -0
- niwrap_mrtrix/mrtrix/mrcat.py +382 -0
- niwrap_mrtrix/mrtrix/mrcentroid.py +344 -0
- niwrap_mrtrix/mrtrix/mrcheckerboardmask.py +363 -0
- niwrap_mrtrix/mrtrix/mrclusterstats.py +736 -0
- niwrap_mrtrix/mrtrix/mrcolour.py +401 -0
- niwrap_mrtrix/mrtrix/mrconvert.py +1423 -0
- niwrap_mrtrix/mrtrix/mrdegibbs.py +443 -0
- niwrap_mrtrix/mrtrix/mrdump.py +351 -0
- niwrap_mrtrix/mrtrix/mredit.py +546 -0
- niwrap_mrtrix/mrtrix/mrfilter.py +716 -0
- niwrap_mrtrix/mrtrix/mrgrid.py +819 -0
- niwrap_mrtrix/mrtrix/mrhistmatch.py +403 -0
- niwrap_mrtrix/mrtrix/mrhistogram.py +393 -0
- niwrap_mrtrix/mrtrix/mrinfo.py +990 -0
- niwrap_mrtrix/mrtrix/mrmath.py +413 -0
- niwrap_mrtrix/mrtrix/mrmetric.py +425 -0
- niwrap_mrtrix/mrtrix/mrregister.py +1676 -0
- niwrap_mrtrix/mrtrix/mrstats.py +427 -0
- niwrap_mrtrix/mrtrix/mrthreshold.py +549 -0
- niwrap_mrtrix/mrtrix/mrtransform.py +1061 -0
- niwrap_mrtrix/mrtrix/mtnormalise.py +596 -0
- niwrap_mrtrix/mrtrix/peaks2amp.py +334 -0
- niwrap_mrtrix/mrtrix/peaks2fixel.py +349 -0
- niwrap_mrtrix/mrtrix/responsemean.py +316 -0
- niwrap_mrtrix/mrtrix/sh2amp.py +640 -0
- niwrap_mrtrix/mrtrix/sh2peaks.py +505 -0
- niwrap_mrtrix/mrtrix/sh2power.py +353 -0
- niwrap_mrtrix/mrtrix/sh2response.py +394 -0
- niwrap_mrtrix/mrtrix/shbasis.py +373 -0
- niwrap_mrtrix/mrtrix/shconv.py +498 -0
- niwrap_mrtrix/mrtrix/tck2connectome.py +580 -0
- niwrap_mrtrix/mrtrix/tck2fixel.py +363 -0
- niwrap_mrtrix/mrtrix/tckconvert.py +580 -0
- niwrap_mrtrix/mrtrix/tckdfc.py +551 -0
- niwrap_mrtrix/mrtrix/tckedit.py +1003 -0
- niwrap_mrtrix/mrtrix/tckgen.py +1983 -0
- niwrap_mrtrix/mrtrix/tckglobal.py +758 -0
- niwrap_mrtrix/mrtrix/tckinfo.py +329 -0
- niwrap_mrtrix/mrtrix/tckmap.py +772 -0
- niwrap_mrtrix/mrtrix/tckresample.py +580 -0
- niwrap_mrtrix/mrtrix/tcksample.py +404 -0
- niwrap_mrtrix/mrtrix/tcksift.py +592 -0
- niwrap_mrtrix/mrtrix/tcksift2.py +730 -0
- niwrap_mrtrix/mrtrix/tckstats.py +441 -0
- niwrap_mrtrix/mrtrix/tcktransform.py +340 -0
- niwrap_mrtrix/mrtrix/tensor2metric.py +544 -0
- niwrap_mrtrix/mrtrix/transformcalc.py +344 -0
- niwrap_mrtrix/mrtrix/transformcompose.py +465 -0
- niwrap_mrtrix/mrtrix/transformconvert.py +346 -0
- niwrap_mrtrix/mrtrix/tsfdivide.py +340 -0
- niwrap_mrtrix/mrtrix/tsfinfo.py +344 -0
- niwrap_mrtrix/mrtrix/tsfmult.py +340 -0
- niwrap_mrtrix/mrtrix/tsfsmooth.py +347 -0
- niwrap_mrtrix/mrtrix/tsfthreshold.py +349 -0
- niwrap_mrtrix/mrtrix/tsfvalidate.py +328 -0
- niwrap_mrtrix/mrtrix/v_5tt2gmwmi.py +359 -0
- niwrap_mrtrix/mrtrix/v_5tt2vis.py +412 -0
- niwrap_mrtrix/mrtrix/v_5ttcheck.py +337 -0
- niwrap_mrtrix/mrtrix/v_5ttedit.py +420 -0
- niwrap_mrtrix/mrtrix/v_5ttgen.py +816 -0
- niwrap_mrtrix/mrtrix/vectorstats.py +585 -0
- niwrap_mrtrix/mrtrix/voxel2fixel.py +350 -0
- niwrap_mrtrix/mrtrix/voxel2mesh.py +376 -0
- niwrap_mrtrix/mrtrix/warp2metric.py +449 -0
- niwrap_mrtrix/mrtrix/warpconvert.py +411 -0
- niwrap_mrtrix/mrtrix/warpcorrect.py +368 -0
- niwrap_mrtrix/mrtrix/warpinit.py +356 -0
- niwrap_mrtrix/mrtrix/warpinvert.py +370 -0
- niwrap_mrtrix-0.5.0.dist-info/METADATA +8 -0
- niwrap_mrtrix-0.5.0.dist-info/RECORD +119 -0
- niwrap_mrtrix-0.5.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,452 @@
|
|
|
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
|
+
FIXEL2PEAKS_METADATA = Metadata(
|
|
9
|
+
id="06bfc4edb74f24e1df62b484f707ec9d4d317d85.boutiques",
|
|
10
|
+
name="fixel2peaks",
|
|
11
|
+
package="mrtrix",
|
|
12
|
+
container_image_tag="mrtrix3/mrtrix3:3.0.4",
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Fixel2peaksConfigParameters = typing.TypedDict('Fixel2peaksConfigParameters', {
|
|
17
|
+
"__STYX_TYPE__": typing.Literal["config"],
|
|
18
|
+
"key": str,
|
|
19
|
+
"value": str,
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
Fixel2peaksVariousStringParameters = typing.TypedDict('Fixel2peaksVariousStringParameters', {
|
|
24
|
+
"__STYX_TYPE__": typing.Literal["VariousString"],
|
|
25
|
+
"obj": str,
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
Fixel2peaksVariousFileParameters = typing.TypedDict('Fixel2peaksVariousFileParameters', {
|
|
30
|
+
"__STYX_TYPE__": typing.Literal["VariousFile"],
|
|
31
|
+
"obj": InputPathType,
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
Fixel2peaksParameters = typing.TypedDict('Fixel2peaksParameters', {
|
|
36
|
+
"__STYX_TYPE__": typing.Literal["fixel2peaks"],
|
|
37
|
+
"number": typing.NotRequired[int | None],
|
|
38
|
+
"nan": bool,
|
|
39
|
+
"info": bool,
|
|
40
|
+
"quiet": bool,
|
|
41
|
+
"debug": bool,
|
|
42
|
+
"force": bool,
|
|
43
|
+
"nthreads": typing.NotRequired[int | None],
|
|
44
|
+
"config": typing.NotRequired[list[Fixel2peaksConfigParameters] | None],
|
|
45
|
+
"help": bool,
|
|
46
|
+
"version": bool,
|
|
47
|
+
"in": typing.Union[Fixel2peaksVariousStringParameters, Fixel2peaksVariousFileParameters],
|
|
48
|
+
"out": str,
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def dyn_cargs(
|
|
53
|
+
t: str,
|
|
54
|
+
) -> typing.Any:
|
|
55
|
+
"""
|
|
56
|
+
Get build cargs function by command type.
|
|
57
|
+
|
|
58
|
+
Args:
|
|
59
|
+
t: Command type.
|
|
60
|
+
Returns:
|
|
61
|
+
Build cargs function.
|
|
62
|
+
"""
|
|
63
|
+
return {
|
|
64
|
+
"fixel2peaks": fixel2peaks_cargs,
|
|
65
|
+
"config": fixel2peaks_config_cargs,
|
|
66
|
+
"VariousString": fixel2peaks_various_string_cargs,
|
|
67
|
+
"VariousFile": fixel2peaks_various_file_cargs,
|
|
68
|
+
}.get(t)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def dyn_outputs(
|
|
72
|
+
t: str,
|
|
73
|
+
) -> typing.Any:
|
|
74
|
+
"""
|
|
75
|
+
Get build outputs function by command type.
|
|
76
|
+
|
|
77
|
+
Args:
|
|
78
|
+
t: Command type.
|
|
79
|
+
Returns:
|
|
80
|
+
Build outputs function.
|
|
81
|
+
"""
|
|
82
|
+
return {
|
|
83
|
+
"fixel2peaks": fixel2peaks_outputs,
|
|
84
|
+
}.get(t)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def fixel2peaks_config_params(
|
|
88
|
+
key: str,
|
|
89
|
+
value: str,
|
|
90
|
+
) -> Fixel2peaksConfigParameters:
|
|
91
|
+
"""
|
|
92
|
+
Build parameters.
|
|
93
|
+
|
|
94
|
+
Args:
|
|
95
|
+
key: temporarily set the value of an MRtrix config file entry.
|
|
96
|
+
value: temporarily set the value of an MRtrix config file entry.
|
|
97
|
+
Returns:
|
|
98
|
+
Parameter dictionary
|
|
99
|
+
"""
|
|
100
|
+
params = {
|
|
101
|
+
"__STYXTYPE__": "config",
|
|
102
|
+
"key": key,
|
|
103
|
+
"value": value,
|
|
104
|
+
}
|
|
105
|
+
return params
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def fixel2peaks_config_cargs(
|
|
109
|
+
params: Fixel2peaksConfigParameters,
|
|
110
|
+
execution: Execution,
|
|
111
|
+
) -> list[str]:
|
|
112
|
+
"""
|
|
113
|
+
Build command-line arguments from parameters.
|
|
114
|
+
|
|
115
|
+
Args:
|
|
116
|
+
params: The parameters.
|
|
117
|
+
execution: The execution object for resolving input paths.
|
|
118
|
+
Returns:
|
|
119
|
+
Command-line arguments.
|
|
120
|
+
"""
|
|
121
|
+
cargs = []
|
|
122
|
+
cargs.append("-config")
|
|
123
|
+
cargs.append(params.get("key"))
|
|
124
|
+
cargs.append(params.get("value"))
|
|
125
|
+
return cargs
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def fixel2peaks_various_string_params(
|
|
129
|
+
obj: str,
|
|
130
|
+
) -> Fixel2peaksVariousStringParameters:
|
|
131
|
+
"""
|
|
132
|
+
Build parameters.
|
|
133
|
+
|
|
134
|
+
Args:
|
|
135
|
+
obj: String object.
|
|
136
|
+
Returns:
|
|
137
|
+
Parameter dictionary
|
|
138
|
+
"""
|
|
139
|
+
params = {
|
|
140
|
+
"__STYXTYPE__": "VariousString",
|
|
141
|
+
"obj": obj,
|
|
142
|
+
}
|
|
143
|
+
return params
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def fixel2peaks_various_string_cargs(
|
|
147
|
+
params: Fixel2peaksVariousStringParameters,
|
|
148
|
+
execution: Execution,
|
|
149
|
+
) -> list[str]:
|
|
150
|
+
"""
|
|
151
|
+
Build command-line arguments from parameters.
|
|
152
|
+
|
|
153
|
+
Args:
|
|
154
|
+
params: The parameters.
|
|
155
|
+
execution: The execution object for resolving input paths.
|
|
156
|
+
Returns:
|
|
157
|
+
Command-line arguments.
|
|
158
|
+
"""
|
|
159
|
+
cargs = []
|
|
160
|
+
cargs.append(params.get("obj"))
|
|
161
|
+
return cargs
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
def fixel2peaks_various_file_params(
|
|
165
|
+
obj: InputPathType,
|
|
166
|
+
) -> Fixel2peaksVariousFileParameters:
|
|
167
|
+
"""
|
|
168
|
+
Build parameters.
|
|
169
|
+
|
|
170
|
+
Args:
|
|
171
|
+
obj: File object.
|
|
172
|
+
Returns:
|
|
173
|
+
Parameter dictionary
|
|
174
|
+
"""
|
|
175
|
+
params = {
|
|
176
|
+
"__STYXTYPE__": "VariousFile",
|
|
177
|
+
"obj": obj,
|
|
178
|
+
}
|
|
179
|
+
return params
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
def fixel2peaks_various_file_cargs(
|
|
183
|
+
params: Fixel2peaksVariousFileParameters,
|
|
184
|
+
execution: Execution,
|
|
185
|
+
) -> list[str]:
|
|
186
|
+
"""
|
|
187
|
+
Build command-line arguments from parameters.
|
|
188
|
+
|
|
189
|
+
Args:
|
|
190
|
+
params: The parameters.
|
|
191
|
+
execution: The execution object for resolving input paths.
|
|
192
|
+
Returns:
|
|
193
|
+
Command-line arguments.
|
|
194
|
+
"""
|
|
195
|
+
cargs = []
|
|
196
|
+
cargs.append(execution.input_file(params.get("obj")))
|
|
197
|
+
return cargs
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
class Fixel2peaksOutputs(typing.NamedTuple):
|
|
201
|
+
"""
|
|
202
|
+
Output object returned when calling `fixel2peaks(...)`.
|
|
203
|
+
"""
|
|
204
|
+
root: OutputPathType
|
|
205
|
+
"""Output root folder. This is the root folder for all outputs."""
|
|
206
|
+
out: OutputPathType
|
|
207
|
+
"""the output peaks image"""
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
def fixel2peaks_params(
|
|
211
|
+
in_: typing.Union[Fixel2peaksVariousStringParameters, Fixel2peaksVariousFileParameters],
|
|
212
|
+
out: str,
|
|
213
|
+
number: int | None = None,
|
|
214
|
+
nan: bool = False,
|
|
215
|
+
info: bool = False,
|
|
216
|
+
quiet: bool = False,
|
|
217
|
+
debug: bool = False,
|
|
218
|
+
force: bool = False,
|
|
219
|
+
nthreads: int | None = None,
|
|
220
|
+
config: list[Fixel2peaksConfigParameters] | None = None,
|
|
221
|
+
help_: bool = False,
|
|
222
|
+
version: bool = False,
|
|
223
|
+
) -> Fixel2peaksParameters:
|
|
224
|
+
"""
|
|
225
|
+
Build parameters.
|
|
226
|
+
|
|
227
|
+
Args:
|
|
228
|
+
in_: the input fixel information.
|
|
229
|
+
out: the output peaks image.
|
|
230
|
+
number: maximum number of fixels in each voxel (default: based on input\
|
|
231
|
+
data).
|
|
232
|
+
nan: fill excess peak data with NaNs rather than zeroes.
|
|
233
|
+
info: display information messages.
|
|
234
|
+
quiet: do not display information messages or progress status;\
|
|
235
|
+
alternatively, this can be achieved by setting the MRTRIX_QUIET\
|
|
236
|
+
environment variable to a non-empty string.
|
|
237
|
+
debug: display debugging messages.
|
|
238
|
+
force: force overwrite of output files (caution: using the same file as\
|
|
239
|
+
input and output might cause unexpected behaviour).
|
|
240
|
+
nthreads: use this number of threads in multi-threaded applications\
|
|
241
|
+
(set to 0 to disable multi-threading).
|
|
242
|
+
config: temporarily set the value of an MRtrix config file entry.
|
|
243
|
+
help_: display this information page and exit.
|
|
244
|
+
version: display version information and exit.
|
|
245
|
+
Returns:
|
|
246
|
+
Parameter dictionary
|
|
247
|
+
"""
|
|
248
|
+
params = {
|
|
249
|
+
"__STYXTYPE__": "fixel2peaks",
|
|
250
|
+
"nan": nan,
|
|
251
|
+
"info": info,
|
|
252
|
+
"quiet": quiet,
|
|
253
|
+
"debug": debug,
|
|
254
|
+
"force": force,
|
|
255
|
+
"help": help_,
|
|
256
|
+
"version": version,
|
|
257
|
+
"in": in_,
|
|
258
|
+
"out": out,
|
|
259
|
+
}
|
|
260
|
+
if number is not None:
|
|
261
|
+
params["number"] = number
|
|
262
|
+
if nthreads is not None:
|
|
263
|
+
params["nthreads"] = nthreads
|
|
264
|
+
if config is not None:
|
|
265
|
+
params["config"] = config
|
|
266
|
+
return params
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
def fixel2peaks_cargs(
|
|
270
|
+
params: Fixel2peaksParameters,
|
|
271
|
+
execution: Execution,
|
|
272
|
+
) -> list[str]:
|
|
273
|
+
"""
|
|
274
|
+
Build command-line arguments from parameters.
|
|
275
|
+
|
|
276
|
+
Args:
|
|
277
|
+
params: The parameters.
|
|
278
|
+
execution: The execution object for resolving input paths.
|
|
279
|
+
Returns:
|
|
280
|
+
Command-line arguments.
|
|
281
|
+
"""
|
|
282
|
+
cargs = []
|
|
283
|
+
cargs.append("fixel2peaks")
|
|
284
|
+
if params.get("number") is not None:
|
|
285
|
+
cargs.extend([
|
|
286
|
+
"-number",
|
|
287
|
+
str(params.get("number"))
|
|
288
|
+
])
|
|
289
|
+
if params.get("nan"):
|
|
290
|
+
cargs.append("-nan")
|
|
291
|
+
if params.get("info"):
|
|
292
|
+
cargs.append("-info")
|
|
293
|
+
if params.get("quiet"):
|
|
294
|
+
cargs.append("-quiet")
|
|
295
|
+
if params.get("debug"):
|
|
296
|
+
cargs.append("-debug")
|
|
297
|
+
if params.get("force"):
|
|
298
|
+
cargs.append("-force")
|
|
299
|
+
if params.get("nthreads") is not None:
|
|
300
|
+
cargs.extend([
|
|
301
|
+
"-nthreads",
|
|
302
|
+
str(params.get("nthreads"))
|
|
303
|
+
])
|
|
304
|
+
if params.get("config") is not None:
|
|
305
|
+
cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
|
|
306
|
+
if params.get("help"):
|
|
307
|
+
cargs.append("-help")
|
|
308
|
+
if params.get("version"):
|
|
309
|
+
cargs.append("-version")
|
|
310
|
+
cargs.extend(dyn_cargs(params.get("in")["__STYXTYPE__"])(params.get("in"), execution))
|
|
311
|
+
cargs.append(params.get("out"))
|
|
312
|
+
return cargs
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
def fixel2peaks_outputs(
|
|
316
|
+
params: Fixel2peaksParameters,
|
|
317
|
+
execution: Execution,
|
|
318
|
+
) -> Fixel2peaksOutputs:
|
|
319
|
+
"""
|
|
320
|
+
Build outputs object containing output file paths and possibly stdout/stderr.
|
|
321
|
+
|
|
322
|
+
Args:
|
|
323
|
+
params: The parameters.
|
|
324
|
+
execution: The execution object for resolving input paths.
|
|
325
|
+
Returns:
|
|
326
|
+
Outputs object.
|
|
327
|
+
"""
|
|
328
|
+
ret = Fixel2peaksOutputs(
|
|
329
|
+
root=execution.output_file("."),
|
|
330
|
+
out=execution.output_file(params.get("out")),
|
|
331
|
+
)
|
|
332
|
+
return ret
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
def fixel2peaks_execute(
|
|
336
|
+
params: Fixel2peaksParameters,
|
|
337
|
+
execution: Execution,
|
|
338
|
+
) -> Fixel2peaksOutputs:
|
|
339
|
+
"""
|
|
340
|
+
Convert data in the fixel directory format into a 4D image of 3-vectors.
|
|
341
|
+
|
|
342
|
+
If a fixel data file is provided as input, then the 3-vectors in the output
|
|
343
|
+
image will be scaled based on the data in that file. If the input is instead
|
|
344
|
+
the fixel directory, or the index or directions file, then all output
|
|
345
|
+
3-vectors will possess unit norm.
|
|
346
|
+
|
|
347
|
+
References:
|
|
348
|
+
|
|
349
|
+
.
|
|
350
|
+
|
|
351
|
+
Author: MRTrix3 Developers
|
|
352
|
+
|
|
353
|
+
URL: https://www.mrtrix.org/
|
|
354
|
+
|
|
355
|
+
Args:
|
|
356
|
+
params: The parameters.
|
|
357
|
+
execution: The execution object.
|
|
358
|
+
Returns:
|
|
359
|
+
NamedTuple of outputs (described in `Fixel2peaksOutputs`).
|
|
360
|
+
"""
|
|
361
|
+
params = execution.params(params)
|
|
362
|
+
cargs = fixel2peaks_cargs(params, execution)
|
|
363
|
+
ret = fixel2peaks_outputs(params, execution)
|
|
364
|
+
execution.run(cargs)
|
|
365
|
+
return ret
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
def fixel2peaks(
|
|
369
|
+
in_: typing.Union[Fixel2peaksVariousStringParameters, Fixel2peaksVariousFileParameters],
|
|
370
|
+
out: str,
|
|
371
|
+
number: int | None = None,
|
|
372
|
+
nan: bool = False,
|
|
373
|
+
info: bool = False,
|
|
374
|
+
quiet: bool = False,
|
|
375
|
+
debug: bool = False,
|
|
376
|
+
force: bool = False,
|
|
377
|
+
nthreads: int | None = None,
|
|
378
|
+
config: list[Fixel2peaksConfigParameters] | None = None,
|
|
379
|
+
help_: bool = False,
|
|
380
|
+
version: bool = False,
|
|
381
|
+
runner: Runner | None = None,
|
|
382
|
+
) -> Fixel2peaksOutputs:
|
|
383
|
+
"""
|
|
384
|
+
Convert data in the fixel directory format into a 4D image of 3-vectors.
|
|
385
|
+
|
|
386
|
+
If a fixel data file is provided as input, then the 3-vectors in the output
|
|
387
|
+
image will be scaled based on the data in that file. If the input is instead
|
|
388
|
+
the fixel directory, or the index or directions file, then all output
|
|
389
|
+
3-vectors will possess unit norm.
|
|
390
|
+
|
|
391
|
+
References:
|
|
392
|
+
|
|
393
|
+
.
|
|
394
|
+
|
|
395
|
+
Author: MRTrix3 Developers
|
|
396
|
+
|
|
397
|
+
URL: https://www.mrtrix.org/
|
|
398
|
+
|
|
399
|
+
Args:
|
|
400
|
+
in_: the input fixel information.
|
|
401
|
+
out: the output peaks image.
|
|
402
|
+
number: maximum number of fixels in each voxel (default: based on input\
|
|
403
|
+
data).
|
|
404
|
+
nan: fill excess peak data with NaNs rather than zeroes.
|
|
405
|
+
info: display information messages.
|
|
406
|
+
quiet: do not display information messages or progress status;\
|
|
407
|
+
alternatively, this can be achieved by setting the MRTRIX_QUIET\
|
|
408
|
+
environment variable to a non-empty string.
|
|
409
|
+
debug: display debugging messages.
|
|
410
|
+
force: force overwrite of output files (caution: using the same file as\
|
|
411
|
+
input and output might cause unexpected behaviour).
|
|
412
|
+
nthreads: use this number of threads in multi-threaded applications\
|
|
413
|
+
(set to 0 to disable multi-threading).
|
|
414
|
+
config: temporarily set the value of an MRtrix config file entry.
|
|
415
|
+
help_: display this information page and exit.
|
|
416
|
+
version: display version information and exit.
|
|
417
|
+
runner: Command runner.
|
|
418
|
+
Returns:
|
|
419
|
+
NamedTuple of outputs (described in `Fixel2peaksOutputs`).
|
|
420
|
+
"""
|
|
421
|
+
runner = runner or get_global_runner()
|
|
422
|
+
execution = runner.start_execution(FIXEL2PEAKS_METADATA)
|
|
423
|
+
params = fixel2peaks_params(
|
|
424
|
+
number=number,
|
|
425
|
+
nan=nan,
|
|
426
|
+
info=info,
|
|
427
|
+
quiet=quiet,
|
|
428
|
+
debug=debug,
|
|
429
|
+
force=force,
|
|
430
|
+
nthreads=nthreads,
|
|
431
|
+
config=config,
|
|
432
|
+
help_=help_,
|
|
433
|
+
version=version,
|
|
434
|
+
in_=in_,
|
|
435
|
+
out=out,
|
|
436
|
+
)
|
|
437
|
+
return fixel2peaks_execute(params, execution)
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
__all__ = [
|
|
441
|
+
"FIXEL2PEAKS_METADATA",
|
|
442
|
+
"Fixel2peaksConfigParameters",
|
|
443
|
+
"Fixel2peaksOutputs",
|
|
444
|
+
"Fixel2peaksParameters",
|
|
445
|
+
"Fixel2peaksVariousFileParameters",
|
|
446
|
+
"Fixel2peaksVariousStringParameters",
|
|
447
|
+
"fixel2peaks",
|
|
448
|
+
"fixel2peaks_config_params",
|
|
449
|
+
"fixel2peaks_params",
|
|
450
|
+
"fixel2peaks_various_file_params",
|
|
451
|
+
"fixel2peaks_various_string_params",
|
|
452
|
+
]
|