niwrap-mrtrix3tissue 0.6.2__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-mrtrix3tissue might be problematic. Click here for more details.
- niwrap_mrtrix3tissue/mrtrix3tissue/__init__.py +19 -0
- niwrap_mrtrix3tissue/mrtrix3tissue/ss3t_csd_beta1.py +71 -78
- niwrap_mrtrix3tissue-0.7.0.dist-info/METADATA +8 -0
- niwrap_mrtrix3tissue-0.7.0.dist-info/RECORD +5 -0
- niwrap_mrtrix3tissue-0.7.0.dist-info/WHEEL +4 -0
- niwrap_mrtrix3tissue-0.6.2.dist-info/METADATA +0 -8
- niwrap_mrtrix3tissue-0.6.2.dist-info/RECORD +0 -5
- niwrap_mrtrix3tissue-0.6.2.dist-info/WHEEL +0 -4
|
@@ -5,9 +5,28 @@ MRtrix3Tissue is a fork of the MRtrix3 project. It aims to add capabilities for
|
|
|
5
5
|
3-Tissue CSD modelling and analysis to a complete version of the MRtrix3
|
|
6
6
|
software.
|
|
7
7
|
|
|
8
|
+
Author: MRTrix3Tissue Developers
|
|
9
|
+
|
|
8
10
|
URL: https://3tissue.github.io/
|
|
9
11
|
"""
|
|
10
12
|
# This file was auto generated by Styx.
|
|
11
13
|
# Do not edit this file directly.
|
|
12
14
|
|
|
13
15
|
from .ss3t_csd_beta1 import *
|
|
16
|
+
from styxdefs import Runner as _Runner
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def execute(
|
|
20
|
+
params: dict,
|
|
21
|
+
runner: _Runner | None = None,
|
|
22
|
+
) -> None:
|
|
23
|
+
"""
|
|
24
|
+
Run a command in this package dynamically from a params object.
|
|
25
|
+
|
|
26
|
+
Args:
|
|
27
|
+
params: The parameters.
|
|
28
|
+
runner: Command runner.
|
|
29
|
+
"""
|
|
30
|
+
return {
|
|
31
|
+
"mrtrix3tissue/ss3t_csd_beta1": ss3t_csd_beta1_execute,
|
|
32
|
+
}[params["@type"]](params, runner)
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
SS3T_CSD_BETA1_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="1232a653007a6a29f9cc9f7f319bd002a791411a.boutiques",
|
|
10
10
|
name="ss3t_csd_beta1",
|
|
11
11
|
package="mrtrix3tissue",
|
|
12
12
|
container_image_tag="brainlife/3tissue:5.2.8",
|
|
@@ -14,21 +14,47 @@ SS3T_CSD_BETA1_METADATA = Metadata(
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
Ss3tCsdBeta1ConfigParameters = typing.TypedDict('Ss3tCsdBeta1ConfigParameters', {
|
|
17
|
-
"
|
|
17
|
+
"@type": typing.NotRequired[typing.Literal["config"]],
|
|
18
|
+
"key": str,
|
|
19
|
+
"value": str,
|
|
20
|
+
})
|
|
21
|
+
Ss3tCsdBeta1ConfigParametersTagged = typing.TypedDict('Ss3tCsdBeta1ConfigParametersTagged', {
|
|
22
|
+
"@type": typing.Literal["config"],
|
|
18
23
|
"key": str,
|
|
19
24
|
"value": str,
|
|
20
25
|
})
|
|
21
26
|
|
|
22
27
|
|
|
23
28
|
Ss3tCsdBeta1ResponseOdfParameters = typing.TypedDict('Ss3tCsdBeta1ResponseOdfParameters', {
|
|
24
|
-
"
|
|
29
|
+
"@type": typing.NotRequired[typing.Literal["response_odf"]],
|
|
30
|
+
"response": InputPathType,
|
|
31
|
+
"odf": str,
|
|
32
|
+
})
|
|
33
|
+
Ss3tCsdBeta1ResponseOdfParametersTagged = typing.TypedDict('Ss3tCsdBeta1ResponseOdfParametersTagged', {
|
|
34
|
+
"@type": typing.Literal["response_odf"],
|
|
25
35
|
"response": InputPathType,
|
|
26
36
|
"odf": str,
|
|
27
37
|
})
|
|
28
38
|
|
|
29
39
|
|
|
30
40
|
Ss3tCsdBeta1Parameters = typing.TypedDict('Ss3tCsdBeta1Parameters', {
|
|
31
|
-
"
|
|
41
|
+
"@type": typing.NotRequired[typing.Literal["mrtrix3tissue/ss3t_csd_beta1"]],
|
|
42
|
+
"mask": typing.NotRequired[InputPathType | None],
|
|
43
|
+
"bzero_pct": typing.NotRequired[float | None],
|
|
44
|
+
"niter": typing.NotRequired[int | None],
|
|
45
|
+
"info": bool,
|
|
46
|
+
"quiet": bool,
|
|
47
|
+
"debug": bool,
|
|
48
|
+
"force": bool,
|
|
49
|
+
"nthreads": typing.NotRequired[int | None],
|
|
50
|
+
"config": typing.NotRequired[list[Ss3tCsdBeta1ConfigParameters] | None],
|
|
51
|
+
"help": bool,
|
|
52
|
+
"version": bool,
|
|
53
|
+
"dwi": InputPathType,
|
|
54
|
+
"response_odf": list[Ss3tCsdBeta1ResponseOdfParameters],
|
|
55
|
+
})
|
|
56
|
+
Ss3tCsdBeta1ParametersTagged = typing.TypedDict('Ss3tCsdBeta1ParametersTagged', {
|
|
57
|
+
"@type": typing.Literal["mrtrix3tissue/ss3t_csd_beta1"],
|
|
32
58
|
"mask": typing.NotRequired[InputPathType | None],
|
|
33
59
|
"bzero_pct": typing.NotRequired[float | None],
|
|
34
60
|
"niter": typing.NotRequired[int | None],
|
|
@@ -43,47 +69,12 @@ Ss3tCsdBeta1Parameters = typing.TypedDict('Ss3tCsdBeta1Parameters', {
|
|
|
43
69
|
"dwi": InputPathType,
|
|
44
70
|
"response_odf": list[Ss3tCsdBeta1ResponseOdfParameters],
|
|
45
71
|
})
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def dyn_cargs(
|
|
49
|
-
t: str,
|
|
50
|
-
) -> typing.Any:
|
|
51
|
-
"""
|
|
52
|
-
Get build cargs function by command type.
|
|
53
|
-
|
|
54
|
-
Args:
|
|
55
|
-
t: Command type.
|
|
56
|
-
Returns:
|
|
57
|
-
Build cargs function.
|
|
58
|
-
"""
|
|
59
|
-
return {
|
|
60
|
-
"ss3t_csd_beta1": ss3t_csd_beta1_cargs,
|
|
61
|
-
"config": ss3t_csd_beta1_config_cargs,
|
|
62
|
-
"response_odf": ss3t_csd_beta1_response_odf_cargs,
|
|
63
|
-
}.get(t)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
def dyn_outputs(
|
|
67
|
-
t: str,
|
|
68
|
-
) -> typing.Any:
|
|
69
|
-
"""
|
|
70
|
-
Get build outputs function by command type.
|
|
71
|
-
|
|
72
|
-
Args:
|
|
73
|
-
t: Command type.
|
|
74
|
-
Returns:
|
|
75
|
-
Build outputs function.
|
|
76
|
-
"""
|
|
77
|
-
return {
|
|
78
|
-
"ss3t_csd_beta1": ss3t_csd_beta1_outputs,
|
|
79
|
-
"response_odf": ss3t_csd_beta1_response_odf_outputs,
|
|
80
|
-
}.get(t)
|
|
81
72
|
|
|
82
73
|
|
|
83
74
|
def ss3t_csd_beta1_config_params(
|
|
84
75
|
key: str,
|
|
85
76
|
value: str,
|
|
86
|
-
) ->
|
|
77
|
+
) -> Ss3tCsdBeta1ConfigParametersTagged:
|
|
87
78
|
"""
|
|
88
79
|
Build parameters.
|
|
89
80
|
|
|
@@ -94,7 +85,7 @@ def ss3t_csd_beta1_config_params(
|
|
|
94
85
|
Parameter dictionary
|
|
95
86
|
"""
|
|
96
87
|
params = {
|
|
97
|
-
"
|
|
88
|
+
"@type": "config",
|
|
98
89
|
"key": key,
|
|
99
90
|
"value": value,
|
|
100
91
|
}
|
|
@@ -116,8 +107,8 @@ def ss3t_csd_beta1_config_cargs(
|
|
|
116
107
|
"""
|
|
117
108
|
cargs = []
|
|
118
109
|
cargs.append("-config")
|
|
119
|
-
cargs.append(params.get("key"))
|
|
120
|
-
cargs.append(params.get("value"))
|
|
110
|
+
cargs.append(params.get("key", None))
|
|
111
|
+
cargs.append(params.get("value", None))
|
|
121
112
|
return cargs
|
|
122
113
|
|
|
123
114
|
|
|
@@ -134,7 +125,7 @@ class Ss3tCsdBeta1ResponseOdfOutputs(typing.NamedTuple):
|
|
|
134
125
|
def ss3t_csd_beta1_response_odf_params(
|
|
135
126
|
response: InputPathType,
|
|
136
127
|
odf: str,
|
|
137
|
-
) ->
|
|
128
|
+
) -> Ss3tCsdBeta1ResponseOdfParametersTagged:
|
|
138
129
|
"""
|
|
139
130
|
Build parameters.
|
|
140
131
|
|
|
@@ -145,7 +136,7 @@ def ss3t_csd_beta1_response_odf_params(
|
|
|
145
136
|
Parameter dictionary
|
|
146
137
|
"""
|
|
147
138
|
params = {
|
|
148
|
-
"
|
|
139
|
+
"@type": "response_odf",
|
|
149
140
|
"response": response,
|
|
150
141
|
"odf": odf,
|
|
151
142
|
}
|
|
@@ -166,8 +157,8 @@ def ss3t_csd_beta1_response_odf_cargs(
|
|
|
166
157
|
Command-line arguments.
|
|
167
158
|
"""
|
|
168
159
|
cargs = []
|
|
169
|
-
cargs.append(execution.input_file(params.get("response")))
|
|
170
|
-
cargs.append(params.get("odf"))
|
|
160
|
+
cargs.append(execution.input_file(params.get("response", None)))
|
|
161
|
+
cargs.append(params.get("odf", None))
|
|
171
162
|
return cargs
|
|
172
163
|
|
|
173
164
|
|
|
@@ -186,14 +177,14 @@ def ss3t_csd_beta1_response_odf_outputs(
|
|
|
186
177
|
"""
|
|
187
178
|
ret = Ss3tCsdBeta1ResponseOdfOutputs(
|
|
188
179
|
root=execution.output_file("."),
|
|
189
|
-
odf=execution.output_file(params.get("odf")),
|
|
180
|
+
odf=execution.output_file(params.get("odf", None)),
|
|
190
181
|
)
|
|
191
182
|
return ret
|
|
192
183
|
|
|
193
184
|
|
|
194
185
|
class Ss3tCsdBeta1Outputs(typing.NamedTuple):
|
|
195
186
|
"""
|
|
196
|
-
Output object returned when calling `
|
|
187
|
+
Output object returned when calling `Ss3tCsdBeta1Parameters(...)`.
|
|
197
188
|
"""
|
|
198
189
|
root: OutputPathType
|
|
199
190
|
"""Output root folder. This is the root folder for all outputs."""
|
|
@@ -216,7 +207,7 @@ def ss3t_csd_beta1_params(
|
|
|
216
207
|
config: list[Ss3tCsdBeta1ConfigParameters] | None = None,
|
|
217
208
|
help_: bool = False,
|
|
218
209
|
version: bool = False,
|
|
219
|
-
) ->
|
|
210
|
+
) -> Ss3tCsdBeta1ParametersTagged:
|
|
220
211
|
"""
|
|
221
212
|
Build parameters.
|
|
222
213
|
|
|
@@ -246,7 +237,7 @@ def ss3t_csd_beta1_params(
|
|
|
246
237
|
Parameter dictionary
|
|
247
238
|
"""
|
|
248
239
|
params = {
|
|
249
|
-
"
|
|
240
|
+
"@type": "mrtrix3tissue/ss3t_csd_beta1",
|
|
250
241
|
"info": info,
|
|
251
242
|
"quiet": quiet,
|
|
252
243
|
"debug": debug,
|
|
@@ -284,42 +275,42 @@ def ss3t_csd_beta1_cargs(
|
|
|
284
275
|
"""
|
|
285
276
|
cargs = []
|
|
286
277
|
cargs.append("ss3t_csd_beta1")
|
|
287
|
-
if params.get("mask") is not None:
|
|
278
|
+
if params.get("mask", None) is not None:
|
|
288
279
|
cargs.extend([
|
|
289
280
|
"-mask",
|
|
290
|
-
execution.input_file(params.get("mask"))
|
|
281
|
+
execution.input_file(params.get("mask", None))
|
|
291
282
|
])
|
|
292
|
-
if params.get("bzero_pct") is not None:
|
|
283
|
+
if params.get("bzero_pct", None) is not None:
|
|
293
284
|
cargs.extend([
|
|
294
285
|
"-bzero_pct",
|
|
295
|
-
str(params.get("bzero_pct"))
|
|
286
|
+
str(params.get("bzero_pct", None))
|
|
296
287
|
])
|
|
297
|
-
if params.get("niter") is not None:
|
|
288
|
+
if params.get("niter", None) is not None:
|
|
298
289
|
cargs.extend([
|
|
299
290
|
"-niter",
|
|
300
|
-
str(params.get("niter"))
|
|
291
|
+
str(params.get("niter", None))
|
|
301
292
|
])
|
|
302
|
-
if params.get("info"):
|
|
293
|
+
if params.get("info", False):
|
|
303
294
|
cargs.append("-info")
|
|
304
|
-
if params.get("quiet"):
|
|
295
|
+
if params.get("quiet", False):
|
|
305
296
|
cargs.append("-quiet")
|
|
306
|
-
if params.get("debug"):
|
|
297
|
+
if params.get("debug", False):
|
|
307
298
|
cargs.append("-debug")
|
|
308
|
-
if params.get("force"):
|
|
299
|
+
if params.get("force", False):
|
|
309
300
|
cargs.append("-force")
|
|
310
|
-
if params.get("nthreads") is not None:
|
|
301
|
+
if params.get("nthreads", None) is not None:
|
|
311
302
|
cargs.extend([
|
|
312
303
|
"-nthreads",
|
|
313
|
-
str(params.get("nthreads"))
|
|
304
|
+
str(params.get("nthreads", None))
|
|
314
305
|
])
|
|
315
|
-
if params.get("config") is not None:
|
|
316
|
-
cargs.extend([a for c in [
|
|
317
|
-
if params.get("help"):
|
|
306
|
+
if params.get("config", None) is not None:
|
|
307
|
+
cargs.extend([a for c in [ss3t_csd_beta1_config_cargs(s, execution) for s in params.get("config", None)] for a in c])
|
|
308
|
+
if params.get("help", False):
|
|
318
309
|
cargs.append("-help")
|
|
319
|
-
if params.get("version"):
|
|
310
|
+
if params.get("version", False):
|
|
320
311
|
cargs.append("-version")
|
|
321
|
-
cargs.append(execution.input_file(params.get("dwi")))
|
|
322
|
-
cargs.extend([a for c in [
|
|
312
|
+
cargs.append(execution.input_file(params.get("dwi", None)))
|
|
313
|
+
cargs.extend([a for c in [ss3t_csd_beta1_response_odf_cargs(s, execution) for s in params.get("response_odf", None)] for a in c])
|
|
323
314
|
return cargs
|
|
324
315
|
|
|
325
316
|
|
|
@@ -338,16 +329,18 @@ def ss3t_csd_beta1_outputs(
|
|
|
338
329
|
"""
|
|
339
330
|
ret = Ss3tCsdBeta1Outputs(
|
|
340
331
|
root=execution.output_file("."),
|
|
341
|
-
response_odf=[
|
|
332
|
+
response_odf=[ss3t_csd_beta1_response_odf_outputs(i, execution) if ss3t_csd_beta1_response_odf_outputs else None for i in params.get("response_odf")],
|
|
342
333
|
)
|
|
343
334
|
return ret
|
|
344
335
|
|
|
345
336
|
|
|
346
337
|
def ss3t_csd_beta1_execute(
|
|
347
338
|
params: Ss3tCsdBeta1Parameters,
|
|
348
|
-
|
|
339
|
+
runner: Runner | None = None,
|
|
349
340
|
) -> Ss3tCsdBeta1Outputs:
|
|
350
341
|
"""
|
|
342
|
+
ss3t_csd_beta1
|
|
343
|
+
|
|
351
344
|
SS3T-CSD: beta 1 implementation
|
|
352
345
|
|
|
353
346
|
* Dhollander, T. & Connelly, A. A novel iterative approach to reap the
|
|
@@ -360,10 +353,12 @@ def ss3t_csd_beta1_execute(
|
|
|
360
353
|
|
|
361
354
|
Args:
|
|
362
355
|
params: The parameters.
|
|
363
|
-
|
|
356
|
+
runner: Command runner.
|
|
364
357
|
Returns:
|
|
365
358
|
NamedTuple of outputs (described in `Ss3tCsdBeta1Outputs`).
|
|
366
359
|
"""
|
|
360
|
+
runner = runner or get_global_runner()
|
|
361
|
+
execution = runner.start_execution(SS3T_CSD_BETA1_METADATA)
|
|
367
362
|
params = execution.params(params)
|
|
368
363
|
cargs = ss3t_csd_beta1_cargs(params, execution)
|
|
369
364
|
ret = ss3t_csd_beta1_outputs(params, execution)
|
|
@@ -388,6 +383,8 @@ def ss3t_csd_beta1(
|
|
|
388
383
|
runner: Runner | None = None,
|
|
389
384
|
) -> Ss3tCsdBeta1Outputs:
|
|
390
385
|
"""
|
|
386
|
+
ss3t_csd_beta1
|
|
387
|
+
|
|
391
388
|
SS3T-CSD: beta 1 implementation
|
|
392
389
|
|
|
393
390
|
* Dhollander, T. & Connelly, A. A novel iterative approach to reap the
|
|
@@ -424,8 +421,6 @@ def ss3t_csd_beta1(
|
|
|
424
421
|
Returns:
|
|
425
422
|
NamedTuple of outputs (described in `Ss3tCsdBeta1Outputs`).
|
|
426
423
|
"""
|
|
427
|
-
runner = runner or get_global_runner()
|
|
428
|
-
execution = runner.start_execution(SS3T_CSD_BETA1_METADATA)
|
|
429
424
|
params = ss3t_csd_beta1_params(
|
|
430
425
|
mask=mask,
|
|
431
426
|
bzero_pct=bzero_pct,
|
|
@@ -441,18 +436,16 @@ def ss3t_csd_beta1(
|
|
|
441
436
|
dwi=dwi,
|
|
442
437
|
response_odf=response_odf,
|
|
443
438
|
)
|
|
444
|
-
return ss3t_csd_beta1_execute(params,
|
|
439
|
+
return ss3t_csd_beta1_execute(params, runner)
|
|
445
440
|
|
|
446
441
|
|
|
447
442
|
__all__ = [
|
|
448
443
|
"SS3T_CSD_BETA1_METADATA",
|
|
449
|
-
"Ss3tCsdBeta1ConfigParameters",
|
|
450
444
|
"Ss3tCsdBeta1Outputs",
|
|
451
|
-
"Ss3tCsdBeta1Parameters",
|
|
452
445
|
"Ss3tCsdBeta1ResponseOdfOutputs",
|
|
453
|
-
"Ss3tCsdBeta1ResponseOdfParameters",
|
|
454
446
|
"ss3t_csd_beta1",
|
|
455
447
|
"ss3t_csd_beta1_config_params",
|
|
448
|
+
"ss3t_csd_beta1_execute",
|
|
456
449
|
"ss3t_csd_beta1_params",
|
|
457
450
|
"ss3t_csd_beta1_response_odf_params",
|
|
458
451
|
]
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
niwrap_mrtrix3tissue/mrtrix3tissue/__init__.py,sha256=pHiDAzutZi7jtRz-qQzcPoEyGYNLh9wQqlcaMZ-TLto,755
|
|
2
|
+
niwrap_mrtrix3tissue/mrtrix3tissue/ss3t_csd_beta1.py,sha256=4lAzBEeK2sE45qfHzJuv1QnqwvhbSBwhqLLlelkbjWs,14340
|
|
3
|
+
niwrap_mrtrix3tissue-0.7.0.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
4
|
+
niwrap_mrtrix3tissue-0.7.0.dist-info/METADATA,sha256=Sn3XAHLjtANcyKdR5bYQnL7Nh-ifqgt8OGCsz8E68zg,199
|
|
5
|
+
niwrap_mrtrix3tissue-0.7.0.dist-info/RECORD,,
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
niwrap_mrtrix3tissue/mrtrix3tissue/__init__.py,sha256=UHLVCL-z5MhXYHd64DZYlQBX2EC8jL48B36fOJQWWF8,324
|
|
2
|
-
niwrap_mrtrix3tissue/mrtrix3tissue/ss3t_csd_beta1.py,sha256=gczgyHi3YtuwMHDP9uzhaA-1YDfmbnGGsDAqsSbYzBE,13857
|
|
3
|
-
niwrap_mrtrix3tissue-0.6.2.dist-info/METADATA,sha256=5cH6yuWiyaRzZIwh6fsN9dnD3maOT64y4K9z0Ggy-kI,236
|
|
4
|
-
niwrap_mrtrix3tissue-0.6.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
5
|
-
niwrap_mrtrix3tissue-0.6.2.dist-info/RECORD,,
|