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.

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