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,391 @@
|
|
|
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
|
+
FIXELCONNECTIVITY_METADATA = Metadata(
|
|
9
|
+
id="811fe5b2580b330dbeded0c16e56819fd86331a7.boutiques",
|
|
10
|
+
name="fixelconnectivity",
|
|
11
|
+
package="mrtrix",
|
|
12
|
+
container_image_tag="mrtrix3/mrtrix3:3.0.4",
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
FixelconnectivityConfigParameters = typing.TypedDict('FixelconnectivityConfigParameters', {
|
|
17
|
+
"__STYX_TYPE__": typing.Literal["config"],
|
|
18
|
+
"key": str,
|
|
19
|
+
"value": str,
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
FixelconnectivityParameters = typing.TypedDict('FixelconnectivityParameters', {
|
|
24
|
+
"__STYX_TYPE__": typing.Literal["fixelconnectivity"],
|
|
25
|
+
"threshold": typing.NotRequired[float | None],
|
|
26
|
+
"angle": typing.NotRequired[float | None],
|
|
27
|
+
"mask": typing.NotRequired[InputPathType | None],
|
|
28
|
+
"info": bool,
|
|
29
|
+
"quiet": bool,
|
|
30
|
+
"debug": bool,
|
|
31
|
+
"force": bool,
|
|
32
|
+
"nthreads": typing.NotRequired[int | None],
|
|
33
|
+
"config": typing.NotRequired[list[FixelconnectivityConfigParameters] | None],
|
|
34
|
+
"help": bool,
|
|
35
|
+
"version": bool,
|
|
36
|
+
"fixel_directory": InputPathType,
|
|
37
|
+
"tracks": InputPathType,
|
|
38
|
+
"matrix": str,
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def dyn_cargs(
|
|
43
|
+
t: str,
|
|
44
|
+
) -> typing.Any:
|
|
45
|
+
"""
|
|
46
|
+
Get build cargs function by command type.
|
|
47
|
+
|
|
48
|
+
Args:
|
|
49
|
+
t: Command type.
|
|
50
|
+
Returns:
|
|
51
|
+
Build cargs function.
|
|
52
|
+
"""
|
|
53
|
+
return {
|
|
54
|
+
"fixelconnectivity": fixelconnectivity_cargs,
|
|
55
|
+
"config": fixelconnectivity_config_cargs,
|
|
56
|
+
}.get(t)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def dyn_outputs(
|
|
60
|
+
t: str,
|
|
61
|
+
) -> typing.Any:
|
|
62
|
+
"""
|
|
63
|
+
Get build outputs function by command type.
|
|
64
|
+
|
|
65
|
+
Args:
|
|
66
|
+
t: Command type.
|
|
67
|
+
Returns:
|
|
68
|
+
Build outputs function.
|
|
69
|
+
"""
|
|
70
|
+
return {
|
|
71
|
+
"fixelconnectivity": fixelconnectivity_outputs,
|
|
72
|
+
}.get(t)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def fixelconnectivity_config_params(
|
|
76
|
+
key: str,
|
|
77
|
+
value: str,
|
|
78
|
+
) -> FixelconnectivityConfigParameters:
|
|
79
|
+
"""
|
|
80
|
+
Build parameters.
|
|
81
|
+
|
|
82
|
+
Args:
|
|
83
|
+
key: temporarily set the value of an MRtrix config file entry.
|
|
84
|
+
value: temporarily set the value of an MRtrix config file entry.
|
|
85
|
+
Returns:
|
|
86
|
+
Parameter dictionary
|
|
87
|
+
"""
|
|
88
|
+
params = {
|
|
89
|
+
"__STYXTYPE__": "config",
|
|
90
|
+
"key": key,
|
|
91
|
+
"value": value,
|
|
92
|
+
}
|
|
93
|
+
return params
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def fixelconnectivity_config_cargs(
|
|
97
|
+
params: FixelconnectivityConfigParameters,
|
|
98
|
+
execution: Execution,
|
|
99
|
+
) -> list[str]:
|
|
100
|
+
"""
|
|
101
|
+
Build command-line arguments from parameters.
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
params: The parameters.
|
|
105
|
+
execution: The execution object for resolving input paths.
|
|
106
|
+
Returns:
|
|
107
|
+
Command-line arguments.
|
|
108
|
+
"""
|
|
109
|
+
cargs = []
|
|
110
|
+
cargs.append("-config")
|
|
111
|
+
cargs.append(params.get("key"))
|
|
112
|
+
cargs.append(params.get("value"))
|
|
113
|
+
return cargs
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class FixelconnectivityOutputs(typing.NamedTuple):
|
|
117
|
+
"""
|
|
118
|
+
Output object returned when calling `fixelconnectivity(...)`.
|
|
119
|
+
"""
|
|
120
|
+
root: OutputPathType
|
|
121
|
+
"""Output root folder. This is the root folder for all outputs."""
|
|
122
|
+
matrix: OutputPathType
|
|
123
|
+
"""the output fixel-fixel connectivity matrix directory path"""
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def fixelconnectivity_params(
|
|
127
|
+
fixel_directory: InputPathType,
|
|
128
|
+
tracks: InputPathType,
|
|
129
|
+
matrix: str,
|
|
130
|
+
threshold: float | None = None,
|
|
131
|
+
angle: float | None = None,
|
|
132
|
+
mask: InputPathType | None = None,
|
|
133
|
+
info: bool = False,
|
|
134
|
+
quiet: bool = False,
|
|
135
|
+
debug: bool = False,
|
|
136
|
+
force: bool = False,
|
|
137
|
+
nthreads: int | None = None,
|
|
138
|
+
config: list[FixelconnectivityConfigParameters] | None = None,
|
|
139
|
+
help_: bool = False,
|
|
140
|
+
version: bool = False,
|
|
141
|
+
) -> FixelconnectivityParameters:
|
|
142
|
+
"""
|
|
143
|
+
Build parameters.
|
|
144
|
+
|
|
145
|
+
Args:
|
|
146
|
+
fixel_directory: the directory containing the fixels between which\
|
|
147
|
+
connectivity will be quantified.
|
|
148
|
+
tracks: the tracks used to determine fixel-fixel connectivity.
|
|
149
|
+
matrix: the output fixel-fixel connectivity matrix directory path.
|
|
150
|
+
threshold: a threshold to define the required fraction of shared\
|
|
151
|
+
connections to be included in the neighbourhood (default: 0.01).
|
|
152
|
+
angle: the max angle threshold for assigning streamline tangents to\
|
|
153
|
+
fixels (Default: 45 degrees).
|
|
154
|
+
mask: provide a fixel data file containing a mask of those fixels to be\
|
|
155
|
+
computed; fixels outside the mask will be empty in the output matrix.
|
|
156
|
+
info: display information messages.
|
|
157
|
+
quiet: do not display information messages or progress status;\
|
|
158
|
+
alternatively, this can be achieved by setting the MRTRIX_QUIET\
|
|
159
|
+
environment variable to a non-empty string.
|
|
160
|
+
debug: display debugging messages.
|
|
161
|
+
force: force overwrite of output files (caution: using the same file as\
|
|
162
|
+
input and output might cause unexpected behaviour).
|
|
163
|
+
nthreads: use this number of threads in multi-threaded applications\
|
|
164
|
+
(set to 0 to disable multi-threading).
|
|
165
|
+
config: temporarily set the value of an MRtrix config file entry.
|
|
166
|
+
help_: display this information page and exit.
|
|
167
|
+
version: display version information and exit.
|
|
168
|
+
Returns:
|
|
169
|
+
Parameter dictionary
|
|
170
|
+
"""
|
|
171
|
+
params = {
|
|
172
|
+
"__STYXTYPE__": "fixelconnectivity",
|
|
173
|
+
"info": info,
|
|
174
|
+
"quiet": quiet,
|
|
175
|
+
"debug": debug,
|
|
176
|
+
"force": force,
|
|
177
|
+
"help": help_,
|
|
178
|
+
"version": version,
|
|
179
|
+
"fixel_directory": fixel_directory,
|
|
180
|
+
"tracks": tracks,
|
|
181
|
+
"matrix": matrix,
|
|
182
|
+
}
|
|
183
|
+
if threshold is not None:
|
|
184
|
+
params["threshold"] = threshold
|
|
185
|
+
if angle is not None:
|
|
186
|
+
params["angle"] = angle
|
|
187
|
+
if mask is not None:
|
|
188
|
+
params["mask"] = mask
|
|
189
|
+
if nthreads is not None:
|
|
190
|
+
params["nthreads"] = nthreads
|
|
191
|
+
if config is not None:
|
|
192
|
+
params["config"] = config
|
|
193
|
+
return params
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
def fixelconnectivity_cargs(
|
|
197
|
+
params: FixelconnectivityParameters,
|
|
198
|
+
execution: Execution,
|
|
199
|
+
) -> list[str]:
|
|
200
|
+
"""
|
|
201
|
+
Build command-line arguments from parameters.
|
|
202
|
+
|
|
203
|
+
Args:
|
|
204
|
+
params: The parameters.
|
|
205
|
+
execution: The execution object for resolving input paths.
|
|
206
|
+
Returns:
|
|
207
|
+
Command-line arguments.
|
|
208
|
+
"""
|
|
209
|
+
cargs = []
|
|
210
|
+
cargs.append("fixelconnectivity")
|
|
211
|
+
if params.get("threshold") is not None:
|
|
212
|
+
cargs.extend([
|
|
213
|
+
"-threshold",
|
|
214
|
+
str(params.get("threshold"))
|
|
215
|
+
])
|
|
216
|
+
if params.get("angle") is not None:
|
|
217
|
+
cargs.extend([
|
|
218
|
+
"-angle",
|
|
219
|
+
str(params.get("angle"))
|
|
220
|
+
])
|
|
221
|
+
if params.get("mask") is not None:
|
|
222
|
+
cargs.extend([
|
|
223
|
+
"-mask",
|
|
224
|
+
execution.input_file(params.get("mask"))
|
|
225
|
+
])
|
|
226
|
+
if params.get("info"):
|
|
227
|
+
cargs.append("-info")
|
|
228
|
+
if params.get("quiet"):
|
|
229
|
+
cargs.append("-quiet")
|
|
230
|
+
if params.get("debug"):
|
|
231
|
+
cargs.append("-debug")
|
|
232
|
+
if params.get("force"):
|
|
233
|
+
cargs.append("-force")
|
|
234
|
+
if params.get("nthreads") is not None:
|
|
235
|
+
cargs.extend([
|
|
236
|
+
"-nthreads",
|
|
237
|
+
str(params.get("nthreads"))
|
|
238
|
+
])
|
|
239
|
+
if params.get("config") is not None:
|
|
240
|
+
cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
|
|
241
|
+
if params.get("help"):
|
|
242
|
+
cargs.append("-help")
|
|
243
|
+
if params.get("version"):
|
|
244
|
+
cargs.append("-version")
|
|
245
|
+
cargs.append(execution.input_file(params.get("fixel_directory")))
|
|
246
|
+
cargs.append(execution.input_file(params.get("tracks")))
|
|
247
|
+
cargs.append(params.get("matrix"))
|
|
248
|
+
return cargs
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
def fixelconnectivity_outputs(
|
|
252
|
+
params: FixelconnectivityParameters,
|
|
253
|
+
execution: Execution,
|
|
254
|
+
) -> FixelconnectivityOutputs:
|
|
255
|
+
"""
|
|
256
|
+
Build outputs object containing output file paths and possibly stdout/stderr.
|
|
257
|
+
|
|
258
|
+
Args:
|
|
259
|
+
params: The parameters.
|
|
260
|
+
execution: The execution object for resolving input paths.
|
|
261
|
+
Returns:
|
|
262
|
+
Outputs object.
|
|
263
|
+
"""
|
|
264
|
+
ret = FixelconnectivityOutputs(
|
|
265
|
+
root=execution.output_file("."),
|
|
266
|
+
matrix=execution.output_file(params.get("matrix")),
|
|
267
|
+
)
|
|
268
|
+
return ret
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
def fixelconnectivity_execute(
|
|
272
|
+
params: FixelconnectivityParameters,
|
|
273
|
+
execution: Execution,
|
|
274
|
+
) -> FixelconnectivityOutputs:
|
|
275
|
+
"""
|
|
276
|
+
Generate a fixel-fixel connectivity matrix.
|
|
277
|
+
|
|
278
|
+
This command will generate a directory containing three images, which
|
|
279
|
+
encodes the fixel-fixel connectivity matrix. Documentation regarding this
|
|
280
|
+
format and how to use it will come in the future.
|
|
281
|
+
|
|
282
|
+
References:
|
|
283
|
+
|
|
284
|
+
.
|
|
285
|
+
|
|
286
|
+
Author: MRTrix3 Developers
|
|
287
|
+
|
|
288
|
+
URL: https://www.mrtrix.org/
|
|
289
|
+
|
|
290
|
+
Args:
|
|
291
|
+
params: The parameters.
|
|
292
|
+
execution: The execution object.
|
|
293
|
+
Returns:
|
|
294
|
+
NamedTuple of outputs (described in `FixelconnectivityOutputs`).
|
|
295
|
+
"""
|
|
296
|
+
params = execution.params(params)
|
|
297
|
+
cargs = fixelconnectivity_cargs(params, execution)
|
|
298
|
+
ret = fixelconnectivity_outputs(params, execution)
|
|
299
|
+
execution.run(cargs)
|
|
300
|
+
return ret
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
def fixelconnectivity(
|
|
304
|
+
fixel_directory: InputPathType,
|
|
305
|
+
tracks: InputPathType,
|
|
306
|
+
matrix: str,
|
|
307
|
+
threshold: float | None = None,
|
|
308
|
+
angle: float | None = None,
|
|
309
|
+
mask: InputPathType | None = None,
|
|
310
|
+
info: bool = False,
|
|
311
|
+
quiet: bool = False,
|
|
312
|
+
debug: bool = False,
|
|
313
|
+
force: bool = False,
|
|
314
|
+
nthreads: int | None = None,
|
|
315
|
+
config: list[FixelconnectivityConfigParameters] | None = None,
|
|
316
|
+
help_: bool = False,
|
|
317
|
+
version: bool = False,
|
|
318
|
+
runner: Runner | None = None,
|
|
319
|
+
) -> FixelconnectivityOutputs:
|
|
320
|
+
"""
|
|
321
|
+
Generate a fixel-fixel connectivity matrix.
|
|
322
|
+
|
|
323
|
+
This command will generate a directory containing three images, which
|
|
324
|
+
encodes the fixel-fixel connectivity matrix. Documentation regarding this
|
|
325
|
+
format and how to use it will come in the future.
|
|
326
|
+
|
|
327
|
+
References:
|
|
328
|
+
|
|
329
|
+
.
|
|
330
|
+
|
|
331
|
+
Author: MRTrix3 Developers
|
|
332
|
+
|
|
333
|
+
URL: https://www.mrtrix.org/
|
|
334
|
+
|
|
335
|
+
Args:
|
|
336
|
+
fixel_directory: the directory containing the fixels between which\
|
|
337
|
+
connectivity will be quantified.
|
|
338
|
+
tracks: the tracks used to determine fixel-fixel connectivity.
|
|
339
|
+
matrix: the output fixel-fixel connectivity matrix directory path.
|
|
340
|
+
threshold: a threshold to define the required fraction of shared\
|
|
341
|
+
connections to be included in the neighbourhood (default: 0.01).
|
|
342
|
+
angle: the max angle threshold for assigning streamline tangents to\
|
|
343
|
+
fixels (Default: 45 degrees).
|
|
344
|
+
mask: provide a fixel data file containing a mask of those fixels to be\
|
|
345
|
+
computed; fixels outside the mask will be empty in the output matrix.
|
|
346
|
+
info: display information messages.
|
|
347
|
+
quiet: do not display information messages or progress status;\
|
|
348
|
+
alternatively, this can be achieved by setting the MRTRIX_QUIET\
|
|
349
|
+
environment variable to a non-empty string.
|
|
350
|
+
debug: display debugging messages.
|
|
351
|
+
force: force overwrite of output files (caution: using the same file as\
|
|
352
|
+
input and output might cause unexpected behaviour).
|
|
353
|
+
nthreads: use this number of threads in multi-threaded applications\
|
|
354
|
+
(set to 0 to disable multi-threading).
|
|
355
|
+
config: temporarily set the value of an MRtrix config file entry.
|
|
356
|
+
help_: display this information page and exit.
|
|
357
|
+
version: display version information and exit.
|
|
358
|
+
runner: Command runner.
|
|
359
|
+
Returns:
|
|
360
|
+
NamedTuple of outputs (described in `FixelconnectivityOutputs`).
|
|
361
|
+
"""
|
|
362
|
+
runner = runner or get_global_runner()
|
|
363
|
+
execution = runner.start_execution(FIXELCONNECTIVITY_METADATA)
|
|
364
|
+
params = fixelconnectivity_params(
|
|
365
|
+
threshold=threshold,
|
|
366
|
+
angle=angle,
|
|
367
|
+
mask=mask,
|
|
368
|
+
info=info,
|
|
369
|
+
quiet=quiet,
|
|
370
|
+
debug=debug,
|
|
371
|
+
force=force,
|
|
372
|
+
nthreads=nthreads,
|
|
373
|
+
config=config,
|
|
374
|
+
help_=help_,
|
|
375
|
+
version=version,
|
|
376
|
+
fixel_directory=fixel_directory,
|
|
377
|
+
tracks=tracks,
|
|
378
|
+
matrix=matrix,
|
|
379
|
+
)
|
|
380
|
+
return fixelconnectivity_execute(params, execution)
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
__all__ = [
|
|
384
|
+
"FIXELCONNECTIVITY_METADATA",
|
|
385
|
+
"FixelconnectivityConfigParameters",
|
|
386
|
+
"FixelconnectivityOutputs",
|
|
387
|
+
"FixelconnectivityParameters",
|
|
388
|
+
"fixelconnectivity",
|
|
389
|
+
"fixelconnectivity_config_params",
|
|
390
|
+
"fixelconnectivity_params",
|
|
391
|
+
]
|