niwrap-mrtrix 0.6.3__py3-none-any.whl → 0.7.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 +133 -0
- niwrap_mrtrix/mrtrix/afdconnectivity.py +59 -68
- niwrap_mrtrix/mrtrix/amp2response.py +72 -77
- niwrap_mrtrix/mrtrix/amp2sh.py +109 -74
- niwrap_mrtrix/mrtrix/connectome2tck.py +77 -79
- niwrap_mrtrix/mrtrix/connectomeedit.py +52 -62
- niwrap_mrtrix/mrtrix/connectomestats.py +117 -104
- niwrap_mrtrix/mrtrix/dcmedit.py +68 -73
- niwrap_mrtrix/mrtrix/dcminfo.py +67 -72
- niwrap_mrtrix/mrtrix/dirflip.py +56 -66
- niwrap_mrtrix/mrtrix/dirgen.py +68 -75
- niwrap_mrtrix/mrtrix/dirmerge.py +56 -66
- niwrap_mrtrix/mrtrix/dirorder.py +53 -64
- niwrap_mrtrix/mrtrix/dirsplit.py +56 -66
- niwrap_mrtrix/mrtrix/dirstat.py +70 -75
- niwrap_mrtrix/mrtrix/dwi2adc.py +67 -74
- niwrap_mrtrix/mrtrix/dwi2fod.py +141 -96
- niwrap_mrtrix/mrtrix/dwi2mask.py +70 -76
- niwrap_mrtrix/mrtrix/dwi2response.py +238 -157
- niwrap_mrtrix/mrtrix/dwi2tensor.py +87 -88
- niwrap_mrtrix/mrtrix/dwibiascorrect.py +97 -95
- niwrap_mrtrix/mrtrix/dwidenoise.py +67 -74
- niwrap_mrtrix/mrtrix/dwiextract.py +143 -99
- niwrap_mrtrix/mrtrix/dwigradcheck.py +89 -91
- niwrap_mrtrix/mrtrix/fixel2peaks.py +77 -51
- niwrap_mrtrix/mrtrix/fixel2sh.py +54 -65
- niwrap_mrtrix/mrtrix/fixel2tsf.py +56 -66
- niwrap_mrtrix/mrtrix/fixel2voxel.py +62 -70
- niwrap_mrtrix/mrtrix/fixelcfestats.py +145 -93
- niwrap_mrtrix/mrtrix/fixelconnectivity.py +62 -70
- niwrap_mrtrix/mrtrix/fixelconvert.py +136 -69
- niwrap_mrtrix/mrtrix/fixelcorrespondence.py +61 -69
- niwrap_mrtrix/mrtrix/fixelcrop.py +53 -64
- niwrap_mrtrix/mrtrix/fixelfilter.py +139 -71
- niwrap_mrtrix/mrtrix/fixelreorient.py +53 -64
- niwrap_mrtrix/mrtrix/fod2dec.py +70 -75
- niwrap_mrtrix/mrtrix/fod2fixel.py +84 -85
- niwrap_mrtrix/mrtrix/label2colour.py +58 -67
- niwrap_mrtrix/mrtrix/label2mesh.py +53 -64
- niwrap_mrtrix/mrtrix/labelconvert.py +58 -67
- niwrap_mrtrix/mrtrix/labelstats.py +53 -63
- niwrap_mrtrix/mrtrix/maskdump.py +52 -64
- niwrap_mrtrix/mrtrix/maskfilter.py +93 -61
- niwrap_mrtrix/mrtrix/mesh2voxel.py +53 -64
- niwrap_mrtrix/mrtrix/meshconvert.py +66 -73
- niwrap_mrtrix/mrtrix/meshfilter.py +59 -68
- niwrap_mrtrix/mrtrix/mraverageheader.py +62 -70
- niwrap_mrtrix/mrtrix/mrcalc.py +522 -397
- niwrap_mrtrix/mrtrix/mrcat.py +59 -68
- niwrap_mrtrix/mrtrix/mrcentroid.py +53 -63
- niwrap_mrtrix/mrtrix/mrcheckerboardmask.py +58 -67
- niwrap_mrtrix/mrtrix/mrclusterstats.py +119 -105
- niwrap_mrtrix/mrtrix/mrcolour.py +62 -70
- niwrap_mrtrix/mrtrix/mrconvert.py +275 -173
- niwrap_mrtrix/mrtrix/mrdegibbs.py +66 -73
- niwrap_mrtrix/mrtrix/mrdump.py +55 -66
- niwrap_mrtrix/mrtrix/mredit.py +97 -94
- niwrap_mrtrix/mrtrix/mrfilter.py +124 -81
- niwrap_mrtrix/mrtrix/mrgrid.py +131 -88
- niwrap_mrtrix/mrtrix/mrhistmatch.py +64 -71
- niwrap_mrtrix/mrtrix/mrhistogram.py +64 -71
- niwrap_mrtrix/mrtrix/mrinfo.py +160 -137
- niwrap_mrtrix/mrtrix/mrmath.py +65 -73
- niwrap_mrtrix/mrtrix/mrmetric.py +69 -73
- niwrap_mrtrix/mrtrix/mrregister.py +263 -212
- niwrap_mrtrix/mrtrix/mrstats.py +66 -72
- niwrap_mrtrix/mrtrix/mrthreshold.py +80 -81
- niwrap_mrtrix/mrtrix/mrtransform.py +162 -109
- niwrap_mrtrix/mrtrix/mtnormalise.py +85 -88
- niwrap_mrtrix/mrtrix/peaks2amp.py +51 -63
- niwrap_mrtrix/mrtrix/peaks2fixel.py +54 -65
- niwrap_mrtrix/mrtrix/responsemean.py +51 -62
- niwrap_mrtrix/mrtrix/sh2amp.py +98 -65
- niwrap_mrtrix/mrtrix/sh2peaks.py +81 -83
- niwrap_mrtrix/mrtrix/sh2power.py +53 -64
- niwrap_mrtrix/mrtrix/sh2response.py +62 -70
- niwrap_mrtrix/mrtrix/shbasis.py +51 -62
- niwrap_mrtrix/mrtrix/shconv.py +78 -52
- niwrap_mrtrix/mrtrix/tck2connectome.py +93 -88
- niwrap_mrtrix/mrtrix/tck2fixel.py +57 -65
- niwrap_mrtrix/mrtrix/tckconvert.py +99 -65
- niwrap_mrtrix/mrtrix/tckdfc.py +82 -83
- niwrap_mrtrix/mrtrix/tckedit.py +240 -122
- niwrap_mrtrix/mrtrix/tckgen.py +364 -207
- niwrap_mrtrix/mrtrix/tckglobal.py +127 -115
- niwrap_mrtrix/mrtrix/tckinfo.py +50 -61
- niwrap_mrtrix/mrtrix/tckmap.py +121 -79
- niwrap_mrtrix/mrtrix/tckresample.py +97 -93
- niwrap_mrtrix/mrtrix/tcksample.py +62 -69
- niwrap_mrtrix/mrtrix/tcksift.py +102 -97
- niwrap_mrtrix/mrtrix/tcksift2.py +119 -107
- niwrap_mrtrix/mrtrix/tckstats.py +72 -78
- niwrap_mrtrix/mrtrix/tcktransform.py +53 -64
- niwrap_mrtrix/mrtrix/tensor2metric.py +93 -94
- niwrap_mrtrix/mrtrix/transformcalc.py +53 -64
- niwrap_mrtrix/mrtrix/transformcompose.py +74 -48
- niwrap_mrtrix/mrtrix/transformconvert.py +53 -64
- niwrap_mrtrix/mrtrix/tsfdivide.py +53 -64
- niwrap_mrtrix/mrtrix/tsfinfo.py +53 -63
- niwrap_mrtrix/mrtrix/tsfmult.py +51 -63
- niwrap_mrtrix/mrtrix/tsfsmooth.py +54 -65
- niwrap_mrtrix/mrtrix/tsfthreshold.py +55 -65
- niwrap_mrtrix/mrtrix/tsfvalidate.py +50 -61
- niwrap_mrtrix/mrtrix/v_5tt2gmwmi.py +54 -65
- niwrap_mrtrix/mrtrix/v_5tt2vis.py +69 -75
- niwrap_mrtrix/mrtrix/v_5ttcheck.py +51 -62
- niwrap_mrtrix/mrtrix/v_5ttedit.py +73 -79
- niwrap_mrtrix/mrtrix/v_5ttgen.py +132 -86
- niwrap_mrtrix/mrtrix/vectorstats.py +92 -88
- niwrap_mrtrix/mrtrix/voxel2fixel.py +54 -63
- niwrap_mrtrix/mrtrix/voxel2mesh.py +56 -66
- niwrap_mrtrix/mrtrix/warp2metric.py +71 -77
- niwrap_mrtrix/mrtrix/warpconvert.py +61 -69
- niwrap_mrtrix/mrtrix/warpcorrect.py +61 -71
- niwrap_mrtrix/mrtrix/warpinit.py +51 -63
- niwrap_mrtrix/mrtrix/warpinvert.py +56 -66
- niwrap_mrtrix-0.7.0.dist-info/METADATA +8 -0
- niwrap_mrtrix-0.7.0.dist-info/RECORD +119 -0
- niwrap_mrtrix-0.7.0.dist-info/WHEEL +4 -0
- niwrap_mrtrix-0.6.3.dist-info/METADATA +0 -8
- niwrap_mrtrix-0.6.3.dist-info/RECORD +0 -119
- niwrap_mrtrix-0.6.3.dist-info/WHEEL +0 -4
niwrap_mrtrix/mrtrix/tcksift.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
TCKSIFT_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="7ab67267156023e9057e22433c919ff074901975.boutiques",
|
|
10
10
|
name="tcksift",
|
|
11
11
|
package="mrtrix",
|
|
12
12
|
container_image_tag="mrtrix3/mrtrix3:3.0.4",
|
|
@@ -14,14 +14,49 @@ TCKSIFT_METADATA = Metadata(
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
TcksiftConfigParameters = typing.TypedDict('TcksiftConfigParameters', {
|
|
17
|
-
"
|
|
17
|
+
"@type": typing.NotRequired[typing.Literal["config"]],
|
|
18
|
+
"key": str,
|
|
19
|
+
"value": str,
|
|
20
|
+
})
|
|
21
|
+
TcksiftConfigParametersTagged = typing.TypedDict('TcksiftConfigParametersTagged', {
|
|
22
|
+
"@type": typing.Literal["config"],
|
|
18
23
|
"key": str,
|
|
19
24
|
"value": str,
|
|
20
25
|
})
|
|
21
26
|
|
|
22
27
|
|
|
23
28
|
TcksiftParameters = typing.TypedDict('TcksiftParameters', {
|
|
24
|
-
"
|
|
29
|
+
"@type": typing.NotRequired[typing.Literal["mrtrix/tcksift"]],
|
|
30
|
+
"nofilter": bool,
|
|
31
|
+
"output_at_counts": typing.NotRequired[list[int] | None],
|
|
32
|
+
"proc_mask": typing.NotRequired[InputPathType | None],
|
|
33
|
+
"act": typing.NotRequired[InputPathType | None],
|
|
34
|
+
"fd_scale_gm": bool,
|
|
35
|
+
"no_dilate_lut": bool,
|
|
36
|
+
"make_null_lobes": bool,
|
|
37
|
+
"remove_untracked": bool,
|
|
38
|
+
"fd_thresh": typing.NotRequired[float | None],
|
|
39
|
+
"csv": typing.NotRequired[str | None],
|
|
40
|
+
"out_mu": typing.NotRequired[str | None],
|
|
41
|
+
"output_debug": bool,
|
|
42
|
+
"out_selection": typing.NotRequired[str | None],
|
|
43
|
+
"term_number": typing.NotRequired[int | None],
|
|
44
|
+
"term_ratio": typing.NotRequired[float | None],
|
|
45
|
+
"term_mu": typing.NotRequired[float | None],
|
|
46
|
+
"info": bool,
|
|
47
|
+
"quiet": bool,
|
|
48
|
+
"debug": bool,
|
|
49
|
+
"force": bool,
|
|
50
|
+
"nthreads": typing.NotRequired[int | None],
|
|
51
|
+
"config": typing.NotRequired[list[TcksiftConfigParameters] | None],
|
|
52
|
+
"help": bool,
|
|
53
|
+
"version": bool,
|
|
54
|
+
"in_tracks": InputPathType,
|
|
55
|
+
"in_fod": InputPathType,
|
|
56
|
+
"out_tracks": str,
|
|
57
|
+
})
|
|
58
|
+
TcksiftParametersTagged = typing.TypedDict('TcksiftParametersTagged', {
|
|
59
|
+
"@type": typing.Literal["mrtrix/tcksift"],
|
|
25
60
|
"nofilter": bool,
|
|
26
61
|
"output_at_counts": typing.NotRequired[list[int] | None],
|
|
27
62
|
"proc_mask": typing.NotRequired[InputPathType | None],
|
|
@@ -50,45 +85,12 @@ TcksiftParameters = typing.TypedDict('TcksiftParameters', {
|
|
|
50
85
|
"in_fod": InputPathType,
|
|
51
86
|
"out_tracks": str,
|
|
52
87
|
})
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
def dyn_cargs(
|
|
56
|
-
t: str,
|
|
57
|
-
) -> typing.Any:
|
|
58
|
-
"""
|
|
59
|
-
Get build cargs function by command type.
|
|
60
|
-
|
|
61
|
-
Args:
|
|
62
|
-
t: Command type.
|
|
63
|
-
Returns:
|
|
64
|
-
Build cargs function.
|
|
65
|
-
"""
|
|
66
|
-
return {
|
|
67
|
-
"tcksift": tcksift_cargs,
|
|
68
|
-
"config": tcksift_config_cargs,
|
|
69
|
-
}.get(t)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
def dyn_outputs(
|
|
73
|
-
t: str,
|
|
74
|
-
) -> typing.Any:
|
|
75
|
-
"""
|
|
76
|
-
Get build outputs function by command type.
|
|
77
|
-
|
|
78
|
-
Args:
|
|
79
|
-
t: Command type.
|
|
80
|
-
Returns:
|
|
81
|
-
Build outputs function.
|
|
82
|
-
"""
|
|
83
|
-
return {
|
|
84
|
-
"tcksift": tcksift_outputs,
|
|
85
|
-
}.get(t)
|
|
86
88
|
|
|
87
89
|
|
|
88
90
|
def tcksift_config_params(
|
|
89
91
|
key: str,
|
|
90
92
|
value: str,
|
|
91
|
-
) ->
|
|
93
|
+
) -> TcksiftConfigParametersTagged:
|
|
92
94
|
"""
|
|
93
95
|
Build parameters.
|
|
94
96
|
|
|
@@ -99,7 +101,7 @@ def tcksift_config_params(
|
|
|
99
101
|
Parameter dictionary
|
|
100
102
|
"""
|
|
101
103
|
params = {
|
|
102
|
-
"
|
|
104
|
+
"@type": "config",
|
|
103
105
|
"key": key,
|
|
104
106
|
"value": value,
|
|
105
107
|
}
|
|
@@ -121,14 +123,14 @@ def tcksift_config_cargs(
|
|
|
121
123
|
"""
|
|
122
124
|
cargs = []
|
|
123
125
|
cargs.append("-config")
|
|
124
|
-
cargs.append(params.get("key"))
|
|
125
|
-
cargs.append(params.get("value"))
|
|
126
|
+
cargs.append(params.get("key", None))
|
|
127
|
+
cargs.append(params.get("value", None))
|
|
126
128
|
return cargs
|
|
127
129
|
|
|
128
130
|
|
|
129
131
|
class TcksiftOutputs(typing.NamedTuple):
|
|
130
132
|
"""
|
|
131
|
-
Output object returned when calling `
|
|
133
|
+
Output object returned when calling `TcksiftParameters(...)`.
|
|
132
134
|
"""
|
|
133
135
|
root: OutputPathType
|
|
134
136
|
"""Output root folder. This is the root folder for all outputs."""
|
|
@@ -171,7 +173,7 @@ def tcksift_params(
|
|
|
171
173
|
config: list[TcksiftConfigParameters] | None = None,
|
|
172
174
|
help_: bool = False,
|
|
173
175
|
version: bool = False,
|
|
174
|
-
) ->
|
|
176
|
+
) -> TcksiftParametersTagged:
|
|
175
177
|
"""
|
|
176
178
|
Build parameters.
|
|
177
179
|
|
|
@@ -237,7 +239,7 @@ def tcksift_params(
|
|
|
237
239
|
Parameter dictionary
|
|
238
240
|
"""
|
|
239
241
|
params = {
|
|
240
|
-
"
|
|
242
|
+
"@type": "mrtrix/tcksift",
|
|
241
243
|
"nofilter": nofilter,
|
|
242
244
|
"fd_scale_gm": fd_scale_gm,
|
|
243
245
|
"no_dilate_lut": no_dilate_lut,
|
|
@@ -296,90 +298,90 @@ def tcksift_cargs(
|
|
|
296
298
|
"""
|
|
297
299
|
cargs = []
|
|
298
300
|
cargs.append("tcksift")
|
|
299
|
-
if params.get("nofilter"):
|
|
301
|
+
if params.get("nofilter", False):
|
|
300
302
|
cargs.append("-nofilter")
|
|
301
|
-
if params.get("output_at_counts") is not None:
|
|
303
|
+
if params.get("output_at_counts", None) is not None:
|
|
302
304
|
cargs.extend([
|
|
303
305
|
"-output_at_counts",
|
|
304
|
-
",".join(map(str, params.get("output_at_counts")))
|
|
306
|
+
",".join(map(str, params.get("output_at_counts", None)))
|
|
305
307
|
])
|
|
306
|
-
if params.get("proc_mask") is not None:
|
|
308
|
+
if params.get("proc_mask", None) is not None:
|
|
307
309
|
cargs.extend([
|
|
308
310
|
"-proc_mask",
|
|
309
|
-
execution.input_file(params.get("proc_mask"))
|
|
311
|
+
execution.input_file(params.get("proc_mask", None))
|
|
310
312
|
])
|
|
311
|
-
if params.get("act") is not None:
|
|
313
|
+
if params.get("act", None) is not None:
|
|
312
314
|
cargs.extend([
|
|
313
315
|
"-act",
|
|
314
|
-
execution.input_file(params.get("act"))
|
|
316
|
+
execution.input_file(params.get("act", None))
|
|
315
317
|
])
|
|
316
|
-
if params.get("fd_scale_gm"):
|
|
318
|
+
if params.get("fd_scale_gm", False):
|
|
317
319
|
cargs.append("-fd_scale_gm")
|
|
318
|
-
if params.get("no_dilate_lut"):
|
|
320
|
+
if params.get("no_dilate_lut", False):
|
|
319
321
|
cargs.append("-no_dilate_lut")
|
|
320
|
-
if params.get("make_null_lobes"):
|
|
322
|
+
if params.get("make_null_lobes", False):
|
|
321
323
|
cargs.append("-make_null_lobes")
|
|
322
|
-
if params.get("remove_untracked"):
|
|
324
|
+
if params.get("remove_untracked", False):
|
|
323
325
|
cargs.append("-remove_untracked")
|
|
324
|
-
if params.get("fd_thresh") is not None:
|
|
326
|
+
if params.get("fd_thresh", None) is not None:
|
|
325
327
|
cargs.extend([
|
|
326
328
|
"-fd_thresh",
|
|
327
|
-
str(params.get("fd_thresh"))
|
|
329
|
+
str(params.get("fd_thresh", None))
|
|
328
330
|
])
|
|
329
|
-
if params.get("csv") is not None:
|
|
331
|
+
if params.get("csv", None) is not None:
|
|
330
332
|
cargs.extend([
|
|
331
333
|
"-csv",
|
|
332
|
-
params.get("csv")
|
|
334
|
+
params.get("csv", None)
|
|
333
335
|
])
|
|
334
|
-
if params.get("out_mu") is not None:
|
|
336
|
+
if params.get("out_mu", None) is not None:
|
|
335
337
|
cargs.extend([
|
|
336
338
|
"-out_mu",
|
|
337
|
-
params.get("out_mu")
|
|
339
|
+
params.get("out_mu", None)
|
|
338
340
|
])
|
|
339
|
-
if params.get("output_debug"):
|
|
341
|
+
if params.get("output_debug", False):
|
|
340
342
|
cargs.append("-output_debug")
|
|
341
|
-
if params.get("out_selection") is not None:
|
|
343
|
+
if params.get("out_selection", None) is not None:
|
|
342
344
|
cargs.extend([
|
|
343
345
|
"-out_selection",
|
|
344
|
-
params.get("out_selection")
|
|
346
|
+
params.get("out_selection", None)
|
|
345
347
|
])
|
|
346
|
-
if params.get("term_number") is not None:
|
|
348
|
+
if params.get("term_number", None) is not None:
|
|
347
349
|
cargs.extend([
|
|
348
350
|
"-term_number",
|
|
349
|
-
str(params.get("term_number"))
|
|
351
|
+
str(params.get("term_number", None))
|
|
350
352
|
])
|
|
351
|
-
if params.get("term_ratio") is not None:
|
|
353
|
+
if params.get("term_ratio", None) is not None:
|
|
352
354
|
cargs.extend([
|
|
353
355
|
"-term_ratio",
|
|
354
|
-
str(params.get("term_ratio"))
|
|
356
|
+
str(params.get("term_ratio", None))
|
|
355
357
|
])
|
|
356
|
-
if params.get("term_mu") is not None:
|
|
358
|
+
if params.get("term_mu", None) is not None:
|
|
357
359
|
cargs.extend([
|
|
358
360
|
"-term_mu",
|
|
359
|
-
str(params.get("term_mu"))
|
|
361
|
+
str(params.get("term_mu", None))
|
|
360
362
|
])
|
|
361
|
-
if params.get("info"):
|
|
363
|
+
if params.get("info", False):
|
|
362
364
|
cargs.append("-info")
|
|
363
|
-
if params.get("quiet"):
|
|
365
|
+
if params.get("quiet", False):
|
|
364
366
|
cargs.append("-quiet")
|
|
365
|
-
if params.get("debug"):
|
|
367
|
+
if params.get("debug", False):
|
|
366
368
|
cargs.append("-debug")
|
|
367
|
-
if params.get("force"):
|
|
369
|
+
if params.get("force", False):
|
|
368
370
|
cargs.append("-force")
|
|
369
|
-
if params.get("nthreads") is not None:
|
|
371
|
+
if params.get("nthreads", None) is not None:
|
|
370
372
|
cargs.extend([
|
|
371
373
|
"-nthreads",
|
|
372
|
-
str(params.get("nthreads"))
|
|
374
|
+
str(params.get("nthreads", None))
|
|
373
375
|
])
|
|
374
|
-
if params.get("config") is not None:
|
|
375
|
-
cargs.extend([a for c in [
|
|
376
|
-
if params.get("help"):
|
|
376
|
+
if params.get("config", None) is not None:
|
|
377
|
+
cargs.extend([a for c in [tcksift_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
|
|
378
|
+
if params.get("help", False):
|
|
377
379
|
cargs.append("-help")
|
|
378
|
-
if params.get("version"):
|
|
380
|
+
if params.get("version", False):
|
|
379
381
|
cargs.append("-version")
|
|
380
|
-
cargs.append(execution.input_file(params.get("in_tracks")))
|
|
381
|
-
cargs.append(execution.input_file(params.get("in_fod")))
|
|
382
|
-
cargs.append(params.get("out_tracks"))
|
|
382
|
+
cargs.append(execution.input_file(params.get("in_tracks", None)))
|
|
383
|
+
cargs.append(execution.input_file(params.get("in_fod", None)))
|
|
384
|
+
cargs.append(params.get("out_tracks", None))
|
|
383
385
|
return cargs
|
|
384
386
|
|
|
385
387
|
|
|
@@ -398,21 +400,23 @@ def tcksift_outputs(
|
|
|
398
400
|
"""
|
|
399
401
|
ret = TcksiftOutputs(
|
|
400
402
|
root=execution.output_file("."),
|
|
401
|
-
out_tracks=execution.output_file(params.get("out_tracks")),
|
|
402
|
-
csv_=execution.output_file(params.get("csv")) if (params.get("csv") is not None) else None,
|
|
403
|
-
out_mu=execution.output_file(params.get("out_mu")) if (params.get("out_mu") is not None) else None,
|
|
404
|
-
out_selection=execution.output_file(params.get("out_selection")) if (params.get("out_selection") is not None) else None,
|
|
403
|
+
out_tracks=execution.output_file(params.get("out_tracks", None)),
|
|
404
|
+
csv_=execution.output_file(params.get("csv", None)) if (params.get("csv") is not None) else None,
|
|
405
|
+
out_mu=execution.output_file(params.get("out_mu", None)) if (params.get("out_mu") is not None) else None,
|
|
406
|
+
out_selection=execution.output_file(params.get("out_selection", None)) if (params.get("out_selection") is not None) else None,
|
|
405
407
|
)
|
|
406
408
|
return ret
|
|
407
409
|
|
|
408
410
|
|
|
409
411
|
def tcksift_execute(
|
|
410
412
|
params: TcksiftParameters,
|
|
411
|
-
|
|
413
|
+
runner: Runner | None = None,
|
|
412
414
|
) -> TcksiftOutputs:
|
|
413
415
|
"""
|
|
414
|
-
|
|
415
|
-
|
|
416
|
+
tcksift
|
|
417
|
+
|
|
418
|
+
Filter a whole-brain fibre-tracking data set such that the streamline
|
|
419
|
+
densities match the FOD lobe integrals.
|
|
416
420
|
|
|
417
421
|
|
|
418
422
|
|
|
@@ -428,10 +432,12 @@ def tcksift_execute(
|
|
|
428
432
|
|
|
429
433
|
Args:
|
|
430
434
|
params: The parameters.
|
|
431
|
-
|
|
435
|
+
runner: Command runner.
|
|
432
436
|
Returns:
|
|
433
437
|
NamedTuple of outputs (described in `TcksiftOutputs`).
|
|
434
438
|
"""
|
|
439
|
+
runner = runner or get_global_runner()
|
|
440
|
+
execution = runner.start_execution(TCKSIFT_METADATA)
|
|
435
441
|
params = execution.params(params)
|
|
436
442
|
cargs = tcksift_cargs(params, execution)
|
|
437
443
|
ret = tcksift_outputs(params, execution)
|
|
@@ -470,8 +476,10 @@ def tcksift(
|
|
|
470
476
|
runner: Runner | None = None,
|
|
471
477
|
) -> TcksiftOutputs:
|
|
472
478
|
"""
|
|
473
|
-
|
|
474
|
-
|
|
479
|
+
tcksift
|
|
480
|
+
|
|
481
|
+
Filter a whole-brain fibre-tracking data set such that the streamline
|
|
482
|
+
densities match the FOD lobe integrals.
|
|
475
483
|
|
|
476
484
|
|
|
477
485
|
|
|
@@ -547,8 +555,6 @@ def tcksift(
|
|
|
547
555
|
Returns:
|
|
548
556
|
NamedTuple of outputs (described in `TcksiftOutputs`).
|
|
549
557
|
"""
|
|
550
|
-
runner = runner or get_global_runner()
|
|
551
|
-
execution = runner.start_execution(TCKSIFT_METADATA)
|
|
552
558
|
params = tcksift_params(
|
|
553
559
|
nofilter=nofilter,
|
|
554
560
|
output_at_counts=output_at_counts,
|
|
@@ -578,15 +584,14 @@ def tcksift(
|
|
|
578
584
|
in_fod=in_fod,
|
|
579
585
|
out_tracks=out_tracks,
|
|
580
586
|
)
|
|
581
|
-
return tcksift_execute(params,
|
|
587
|
+
return tcksift_execute(params, runner)
|
|
582
588
|
|
|
583
589
|
|
|
584
590
|
__all__ = [
|
|
585
591
|
"TCKSIFT_METADATA",
|
|
586
|
-
"TcksiftConfigParameters",
|
|
587
592
|
"TcksiftOutputs",
|
|
588
|
-
"TcksiftParameters",
|
|
589
593
|
"tcksift",
|
|
590
594
|
"tcksift_config_params",
|
|
595
|
+
"tcksift_execute",
|
|
591
596
|
"tcksift_params",
|
|
592
597
|
]
|