niwrap-afni 0.5.1__py3-none-any.whl → 0.5.2__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-afni might be problematic. Click here for more details.
- niwrap_afni/afni/abids_json_tool_py.py +104 -1
- niwrap_afni/afni/abids_tool.py +43 -1
- niwrap_afni/afni/adjunct_make_script_and_rst_py.py +2 -2
- niwrap_afni/afni/afni_batch_r.py +1 -2
- niwrap_afni/afni/balloon.py +25 -1
- niwrap_afni/afni/brain_skin.py +16 -1
- niwrap_afni/afni/build_afni_py.py +28 -1
- niwrap_afni/afni/cat_matvec.py +23 -1
- niwrap_afni/afni/convert_surface.py +38 -1
- niwrap_afni/afni/dicom_hinfo.py +9 -2
- niwrap_afni/afni/dsetstat2p.py +19 -1
- niwrap_afni/afni/fat_proc_align_anat_pair.py +10 -1
- niwrap_afni/afni/fat_proc_convert_dcm_anat.py +16 -1
- niwrap_afni/afni/fat_roi_row.py +1 -4
- niwrap_afni/afni/fsread_annot.py +2 -2
- niwrap_afni/afni/imrotate.py +10 -1
- niwrap_afni/afni/myget.py +16 -3
- niwrap_afni/afni/nifti_tool.py +3 -2
- niwrap_afni/afni/p2dsetstat.py +19 -1
- niwrap_afni/afni/plugout_drive.py +93 -1
- niwrap_afni/afni/prompt_popup.py +46 -1
- niwrap_afni/afni/prompt_user.py +16 -1
- niwrap_afni/afni/rbox.py +170 -9
- niwrap_afni/afni/samp_bias.py +16 -1
- niwrap_afni/afni/sfim.py +9 -2
- niwrap_afni/afni/stimband.py +22 -3
- niwrap_afni/afni/surf_dist.py +47 -1
- niwrap_afni/afni/surf_fwhm.py +1 -5
- niwrap_afni/afni/surf_info.py +99 -2
- niwrap_afni/afni/surface_metrics.py +179 -172
- niwrap_afni/afni/tedana_wrapper_py.py +19 -1
- niwrap_afni/afni/v_1d_bport.py +12 -1
- niwrap_afni/afni/v_1d_correlate.py +39 -1
- niwrap_afni/afni/v_1d_marry.py +1 -2
- niwrap_afni/afni/v_1d_rplot.py +233 -4
- niwrap_afni/afni/v_1d_sem.py +157 -2
- niwrap_afni/afni/v_1d_tsort.py +10 -1
- niwrap_afni/afni/v_1ddot.py +5 -4
- niwrap_afni/afni/v_1deval.py +16 -1
- niwrap_afni/afni/v_1dgen_arma11.py +16 -1
- niwrap_afni/afni/v_3_droimaker.py +16 -1
- niwrap_afni/afni/v_3d_afnito3_d.py +34 -4
- niwrap_afni/afni/v_3d_afnito_niml.py +34 -2
- niwrap_afni/afni/v_3d_amp_to_rsfc.py +10 -9
- niwrap_afni/afni/v_3d_anova3.py +323 -20
- niwrap_afni/afni/v_3d_clip_level.py +38 -2
- niwrap_afni/afni/v_3d_clust_sim.py +275 -22
- niwrap_afni/afni/v_3d_cm.py +103 -2
- niwrap_afni/afni/v_3d_dtto_dwi.py +58 -4
- niwrap_afni/afni/v_3d_dwito_dt.py +299 -2
- niwrap_afni/afni/v_3d_ecm.py +24 -2
- niwrap_afni/afni/v_3d_fdr.py +14 -1
- niwrap_afni/afni/v_3d_gen_feature_dist.py +53 -1
- niwrap_afni/afni/v_3d_hist.py +14 -1
- niwrap_afni/afni/v_3d_icc.py +137 -2
- niwrap_afni/afni/v_3d_lfcd.py +24 -5
- niwrap_afni/afni/v_3d_lme.py +1 -3
- niwrap_afni/afni/v_3d_local_histog.py +32 -1
- niwrap_afni/afni/v_3d_lrflip.py +46 -1
- niwrap_afni/afni/v_3d_lss.py +107 -4
- niwrap_afni/afni/v_3d_mask_to_ascii.py +12 -4
- niwrap_afni/afni/v_3d_mema.py +301 -3
- niwrap_afni/afni/v_3d_mepfm.py +1 -2
- niwrap_afni/afni/v_3d_nlfim.py +487 -30
- niwrap_afni/afni/v_3d_nwarp_xyz.py +27 -14
- niwrap_afni/afni/v_3d_overlap.py +20 -6
- niwrap_afni/afni/v_3d_par2_afni.py +32 -1
- niwrap_afni/afni/v_3d_pfm.py +200 -2
- niwrap_afni/afni/v_3d_remlfit.py +41 -1
- niwrap_afni/afni/v_3d_roistats.py +1 -2
- niwrap_afni/afni/v_3d_rsfc.py +240 -6
- niwrap_afni/afni/v_3d_stat_clust.py +19 -1
- niwrap_afni/afni/v_3d_tcat.py +24 -5
- niwrap_afni/afni/v_3d_threeto_rgb.py +1 -2
- niwrap_afni/afni/v_3d_toy_prog.py +111 -1
- niwrap_afni/afni/v_3d_tsgen.py +18 -1
- niwrap_afni/afni/v_3d_tsort.py +10 -1
- niwrap_afni/afni/v_3d_tstat.py +25 -15
- niwrap_afni/afni/v_3d_undump.py +10 -1
- niwrap_afni/afni/v_3d_warp.py +236 -2
- niwrap_afni/afni/v_3d_wilcoxon.py +9 -7
- niwrap_afni/afni/v_3dbucket.py +14 -1
- niwrap_afni/afni/v_3dcalc.py +1 -1
- niwrap_afni/afni/v_3dcopy.py +31 -3
- niwrap_afni/afni/v_3dmask_svd.py +99 -2
- niwrap_afni/afni/v__4_daverage.py +11 -2
- niwrap_afni/afni/v__afni_env.py +19 -1
- niwrap_afni/afni/v__afni_refacer_run.py +36 -1
- niwrap_afni/afni/v__build_afni_xlib.py +21 -1
- niwrap_afni/afni/v__chauffeur_afni.py +184 -2
- niwrap_afni/afni/v__command_globb.py +13 -7
- niwrap_afni/afni/v__compute_oc_weights.py +16 -1
- niwrap_afni/afni/v__deblank_file_names.py +13 -2
- niwrap_afni/afni/v__dice_metric.py +18 -14
- niwrap_afni/afni/v__djunct_edgy_align_check.py +82 -10
- niwrap_afni/afni/v__djunct_montage_coordinator.py +10 -1
- niwrap_afni/afni/v__get_afni_res.py +3 -2
- niwrap_afni/afni/v__grad_flip_test.py +38 -42
- niwrap_afni/afni/v__grayplot.py +34 -1
- niwrap_afni/afni/v__help_afni.py +63 -2
- niwrap_afni/afni/v__make_label_table.py +14 -1
- niwrap_afni/afni/v__no_ext.py +9 -2
- niwrap_afni/afni/v__reorder.py +10 -1
- niwrap_afni/afni/v__skull_strip_touch_up.py +10 -1
- niwrap_afni/afni/v__suma_make_spec_caret.py +62 -2
- niwrap_afni/afni/v__suma_make_spec_fs.py +180 -2
- niwrap_afni/afni/v__to_mni_qwarpar.py +21 -1
- niwrap_afni/afni/v__to_rai.py +23 -7
- {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.2.dist-info}/METADATA +1 -1
- {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.2.dist-info}/RECORD +111 -111
- {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.2.dist-info}/WHEEL +0 -0
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_TOY_PROG_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="690427ee59940bfcf8d97ee3a7fbced4f0a52ee5.boutiques",
|
|
10
10
|
name="3dToyProg",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -19,6 +19,16 @@ V3dToyProgParameters = typing.TypedDict('V3dToyProgParameters', {
|
|
|
19
19
|
"output_prefix": typing.NotRequired[str | None],
|
|
20
20
|
"mask_dataset": typing.NotRequired[InputPathType | None],
|
|
21
21
|
"output_datum": typing.NotRequired[typing.Literal["float", "short"] | None],
|
|
22
|
+
"mini_help": bool,
|
|
23
|
+
"help": bool,
|
|
24
|
+
"extreme_help": bool,
|
|
25
|
+
"help_view": bool,
|
|
26
|
+
"help_web": bool,
|
|
27
|
+
"help_find": typing.NotRequired[str | None],
|
|
28
|
+
"help_raw": bool,
|
|
29
|
+
"help_spx": bool,
|
|
30
|
+
"help_aspx": bool,
|
|
31
|
+
"help_all_opts": bool,
|
|
22
32
|
})
|
|
23
33
|
|
|
24
34
|
|
|
@@ -66,6 +76,16 @@ def v_3d_toy_prog_params(
|
|
|
66
76
|
output_prefix: str | None = None,
|
|
67
77
|
mask_dataset: InputPathType | None = None,
|
|
68
78
|
output_datum: typing.Literal["float", "short"] | None = None,
|
|
79
|
+
mini_help: bool = False,
|
|
80
|
+
help_: bool = False,
|
|
81
|
+
extreme_help: bool = False,
|
|
82
|
+
help_view: bool = False,
|
|
83
|
+
help_web: bool = False,
|
|
84
|
+
help_find: str | None = None,
|
|
85
|
+
help_raw: bool = False,
|
|
86
|
+
help_spx: bool = False,
|
|
87
|
+
help_aspx: bool = False,
|
|
88
|
+
help_all_opts: bool = False,
|
|
69
89
|
) -> V3dToyProgParameters:
|
|
70
90
|
"""
|
|
71
91
|
Build parameters.
|
|
@@ -76,12 +96,39 @@ def v_3d_toy_prog_params(
|
|
|
76
96
|
mask_dataset: Restrict analysis to non-zero voxels in the mask dataset.
|
|
77
97
|
output_datum: Output datum type for one of the datasets. Choose from\
|
|
78
98
|
'float' or 'short'. Default is 'float'.
|
|
99
|
+
mini_help: Mini help, at time, same as -help in many cases.
|
|
100
|
+
help_: The entire help output.
|
|
101
|
+
extreme_help: Extreme help, same as -help in majority of cases.
|
|
102
|
+
help_view: Open help in text editor. AFNI will try to find a GUI editor\
|
|
103
|
+
on your machine. You can control which it should use by setting\
|
|
104
|
+
environment variable AFNI_GUI_EDITOR.
|
|
105
|
+
help_web: Open help in web browser. AFNI will try to find a browser on\
|
|
106
|
+
your machine. You can control which it should use by setting\
|
|
107
|
+
environment variable AFNI_GUI_EDITOR.
|
|
108
|
+
help_find: Look for lines in this program's -help output that match\
|
|
109
|
+
(approximately) WORD.
|
|
110
|
+
help_raw: Help string unedited.
|
|
111
|
+
help_spx: Help string in sphinx loveliness, but do not try to\
|
|
112
|
+
autoformat.
|
|
113
|
+
help_aspx: Help string in sphinx with autoformatting of options, etc.
|
|
114
|
+
help_all_opts: Try to identify all options for the program from the\
|
|
115
|
+
output of its -help option. Some options might be missed and others\
|
|
116
|
+
misidentified. Use this output for hints only.
|
|
79
117
|
Returns:
|
|
80
118
|
Parameter dictionary
|
|
81
119
|
"""
|
|
82
120
|
params = {
|
|
83
121
|
"__STYXTYPE__": "3dToyProg",
|
|
84
122
|
"input_dataset": input_dataset,
|
|
123
|
+
"mini_help": mini_help,
|
|
124
|
+
"help": help_,
|
|
125
|
+
"extreme_help": extreme_help,
|
|
126
|
+
"help_view": help_view,
|
|
127
|
+
"help_web": help_web,
|
|
128
|
+
"help_raw": help_raw,
|
|
129
|
+
"help_spx": help_spx,
|
|
130
|
+
"help_aspx": help_aspx,
|
|
131
|
+
"help_all_opts": help_all_opts,
|
|
85
132
|
}
|
|
86
133
|
if output_prefix is not None:
|
|
87
134
|
params["output_prefix"] = output_prefix
|
|
@@ -89,6 +136,8 @@ def v_3d_toy_prog_params(
|
|
|
89
136
|
params["mask_dataset"] = mask_dataset
|
|
90
137
|
if output_datum is not None:
|
|
91
138
|
params["output_datum"] = output_datum
|
|
139
|
+
if help_find is not None:
|
|
140
|
+
params["help_find"] = help_find
|
|
92
141
|
return params
|
|
93
142
|
|
|
94
143
|
|
|
@@ -126,6 +175,29 @@ def v_3d_toy_prog_cargs(
|
|
|
126
175
|
"-datum",
|
|
127
176
|
params.get("output_datum")
|
|
128
177
|
])
|
|
178
|
+
if params.get("mini_help"):
|
|
179
|
+
cargs.append("-h")
|
|
180
|
+
if params.get("help"):
|
|
181
|
+
cargs.append("-help")
|
|
182
|
+
if params.get("extreme_help"):
|
|
183
|
+
cargs.append("-HELP")
|
|
184
|
+
if params.get("help_view"):
|
|
185
|
+
cargs.append("-h_view")
|
|
186
|
+
if params.get("help_web"):
|
|
187
|
+
cargs.append("-h_web")
|
|
188
|
+
if params.get("help_find") is not None:
|
|
189
|
+
cargs.extend([
|
|
190
|
+
"-h_find",
|
|
191
|
+
params.get("help_find")
|
|
192
|
+
])
|
|
193
|
+
if params.get("help_raw"):
|
|
194
|
+
cargs.append("-h_raw")
|
|
195
|
+
if params.get("help_spx"):
|
|
196
|
+
cargs.append("-h_spx")
|
|
197
|
+
if params.get("help_aspx"):
|
|
198
|
+
cargs.append("-h_aspx")
|
|
199
|
+
if params.get("help_all_opts"):
|
|
200
|
+
cargs.append("-all_opts")
|
|
129
201
|
return cargs
|
|
130
202
|
|
|
131
203
|
|
|
@@ -177,6 +249,16 @@ def v_3d_toy_prog(
|
|
|
177
249
|
output_prefix: str | None = None,
|
|
178
250
|
mask_dataset: InputPathType | None = None,
|
|
179
251
|
output_datum: typing.Literal["float", "short"] | None = None,
|
|
252
|
+
mini_help: bool = False,
|
|
253
|
+
help_: bool = False,
|
|
254
|
+
extreme_help: bool = False,
|
|
255
|
+
help_view: bool = False,
|
|
256
|
+
help_web: bool = False,
|
|
257
|
+
help_find: str | None = None,
|
|
258
|
+
help_raw: bool = False,
|
|
259
|
+
help_spx: bool = False,
|
|
260
|
+
help_aspx: bool = False,
|
|
261
|
+
help_all_opts: bool = False,
|
|
180
262
|
runner: Runner | None = None,
|
|
181
263
|
) -> V3dToyProgOutputs:
|
|
182
264
|
"""
|
|
@@ -192,6 +274,24 @@ def v_3d_toy_prog(
|
|
|
192
274
|
mask_dataset: Restrict analysis to non-zero voxels in the mask dataset.
|
|
193
275
|
output_datum: Output datum type for one of the datasets. Choose from\
|
|
194
276
|
'float' or 'short'. Default is 'float'.
|
|
277
|
+
mini_help: Mini help, at time, same as -help in many cases.
|
|
278
|
+
help_: The entire help output.
|
|
279
|
+
extreme_help: Extreme help, same as -help in majority of cases.
|
|
280
|
+
help_view: Open help in text editor. AFNI will try to find a GUI editor\
|
|
281
|
+
on your machine. You can control which it should use by setting\
|
|
282
|
+
environment variable AFNI_GUI_EDITOR.
|
|
283
|
+
help_web: Open help in web browser. AFNI will try to find a browser on\
|
|
284
|
+
your machine. You can control which it should use by setting\
|
|
285
|
+
environment variable AFNI_GUI_EDITOR.
|
|
286
|
+
help_find: Look for lines in this program's -help output that match\
|
|
287
|
+
(approximately) WORD.
|
|
288
|
+
help_raw: Help string unedited.
|
|
289
|
+
help_spx: Help string in sphinx loveliness, but do not try to\
|
|
290
|
+
autoformat.
|
|
291
|
+
help_aspx: Help string in sphinx with autoformatting of options, etc.
|
|
292
|
+
help_all_opts: Try to identify all options for the program from the\
|
|
293
|
+
output of its -help option. Some options might be missed and others\
|
|
294
|
+
misidentified. Use this output for hints only.
|
|
195
295
|
runner: Command runner.
|
|
196
296
|
Returns:
|
|
197
297
|
NamedTuple of outputs (described in `V3dToyProgOutputs`).
|
|
@@ -203,6 +303,16 @@ def v_3d_toy_prog(
|
|
|
203
303
|
output_prefix=output_prefix,
|
|
204
304
|
mask_dataset=mask_dataset,
|
|
205
305
|
output_datum=output_datum,
|
|
306
|
+
mini_help=mini_help,
|
|
307
|
+
help_=help_,
|
|
308
|
+
extreme_help=extreme_help,
|
|
309
|
+
help_view=help_view,
|
|
310
|
+
help_web=help_web,
|
|
311
|
+
help_find=help_find,
|
|
312
|
+
help_raw=help_raw,
|
|
313
|
+
help_spx=help_spx,
|
|
314
|
+
help_aspx=help_aspx,
|
|
315
|
+
help_all_opts=help_all_opts,
|
|
206
316
|
)
|
|
207
317
|
return v_3d_toy_prog_execute(params, execution)
|
|
208
318
|
|
niwrap_afni/afni/v_3d_tsgen.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_TSGEN_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="23ea0ec274045284df882fa88ec58e47ba43443f.boutiques",
|
|
10
10
|
name="3dTSgen",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -27,6 +27,7 @@ V3dTsgenParameters = typing.TypedDict('V3dTsgenParameters', {
|
|
|
27
27
|
"signal_coef": typing.NotRequired[str | None],
|
|
28
28
|
"noise_coef": typing.NotRequired[str | None],
|
|
29
29
|
"bucket_config": typing.NotRequired[str | None],
|
|
30
|
+
"brick_config": typing.NotRequired[str | None],
|
|
30
31
|
})
|
|
31
32
|
|
|
32
33
|
|
|
@@ -82,6 +83,7 @@ def v_3d_tsgen_params(
|
|
|
82
83
|
signal_coef: str | None = None,
|
|
83
84
|
noise_coef: str | None = None,
|
|
84
85
|
bucket_config: str | None = None,
|
|
86
|
+
brick_config: str | None = None,
|
|
85
87
|
) -> V3dTsgenParameters:
|
|
86
88
|
"""
|
|
87
89
|
Build parameters.
|
|
@@ -106,6 +108,9 @@ def v_3d_tsgen_params(
|
|
|
106
108
|
bucket_config: Create one AFNI 'bucket' dataset containing n\
|
|
107
109
|
sub-bricks. n=0 creates the default output. Output 'bucket' is written\
|
|
108
110
|
to prefixname.
|
|
111
|
+
brick_config: Specify content for sub-brick in the form 'm t k label'\
|
|
112
|
+
where m is the sub-brick number, t is 'scoef' or 'ncoef', k is\
|
|
113
|
+
parameter index, and label is a descriptive label.
|
|
109
114
|
Returns:
|
|
110
115
|
Parameter dictionary
|
|
111
116
|
"""
|
|
@@ -130,6 +135,8 @@ def v_3d_tsgen_params(
|
|
|
130
135
|
params["noise_coef"] = noise_coef
|
|
131
136
|
if bucket_config is not None:
|
|
132
137
|
params["bucket_config"] = bucket_config
|
|
138
|
+
if brick_config is not None:
|
|
139
|
+
params["brick_config"] = brick_config
|
|
133
140
|
return params
|
|
134
141
|
|
|
135
142
|
|
|
@@ -197,6 +204,11 @@ def v_3d_tsgen_cargs(
|
|
|
197
204
|
"-bucket",
|
|
198
205
|
params.get("bucket_config")
|
|
199
206
|
])
|
|
207
|
+
if params.get("brick_config") is not None:
|
|
208
|
+
cargs.extend([
|
|
209
|
+
"-brick",
|
|
210
|
+
params.get("brick_config")
|
|
211
|
+
])
|
|
200
212
|
return cargs
|
|
201
213
|
|
|
202
214
|
|
|
@@ -257,6 +269,7 @@ def v_3d_tsgen(
|
|
|
257
269
|
signal_coef: str | None = None,
|
|
258
270
|
noise_coef: str | None = None,
|
|
259
271
|
bucket_config: str | None = None,
|
|
272
|
+
brick_config: str | None = None,
|
|
260
273
|
runner: Runner | None = None,
|
|
261
274
|
) -> V3dTsgenOutputs:
|
|
262
275
|
"""
|
|
@@ -287,6 +300,9 @@ def v_3d_tsgen(
|
|
|
287
300
|
bucket_config: Create one AFNI 'bucket' dataset containing n\
|
|
288
301
|
sub-bricks. n=0 creates the default output. Output 'bucket' is written\
|
|
289
302
|
to prefixname.
|
|
303
|
+
brick_config: Specify content for sub-brick in the form 'm t k label'\
|
|
304
|
+
where m is the sub-brick number, t is 'scoef' or 'ncoef', k is\
|
|
305
|
+
parameter index, and label is a descriptive label.
|
|
290
306
|
runner: Command runner.
|
|
291
307
|
Returns:
|
|
292
308
|
NamedTuple of outputs (described in `V3dTsgenOutputs`).
|
|
@@ -306,6 +322,7 @@ def v_3d_tsgen(
|
|
|
306
322
|
signal_coef=signal_coef,
|
|
307
323
|
noise_coef=noise_coef,
|
|
308
324
|
bucket_config=bucket_config,
|
|
325
|
+
brick_config=brick_config,
|
|
309
326
|
)
|
|
310
327
|
return v_3d_tsgen_execute(params, execution)
|
|
311
328
|
|
niwrap_afni/afni/v_3d_tsort.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_TSORT_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="0baecbfda8717ca32038a0d906eaab9d406613ee.boutiques",
|
|
10
10
|
name="3dTsort",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -17,6 +17,7 @@ V3dTsortParameters = typing.TypedDict('V3dTsortParameters', {
|
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["3dTsort"],
|
|
18
18
|
"input_file": InputPathType,
|
|
19
19
|
"prefix": typing.NotRequired[str | None],
|
|
20
|
+
"inc": bool,
|
|
20
21
|
"dec": bool,
|
|
21
22
|
"rank": bool,
|
|
22
23
|
"ind": bool,
|
|
@@ -73,6 +74,7 @@ class V3dTsortOutputs(typing.NamedTuple):
|
|
|
73
74
|
def v_3d_tsort_params(
|
|
74
75
|
input_file: InputPathType,
|
|
75
76
|
prefix: str | None = None,
|
|
77
|
+
inc: bool = False,
|
|
76
78
|
dec: bool = False,
|
|
77
79
|
rank: bool = False,
|
|
78
80
|
ind: bool = False,
|
|
@@ -88,6 +90,7 @@ def v_3d_tsort_params(
|
|
|
88
90
|
Args:
|
|
89
91
|
input_file: Input dataset to be sorted.
|
|
90
92
|
prefix: Prefix for the output dataset.
|
|
93
|
+
inc: Sort into increasing order (default).
|
|
91
94
|
dec: Sort into decreasing order.
|
|
92
95
|
rank: Output rank instead of sorted values; ranks range from 1 to Nvals.
|
|
93
96
|
ind: Output sorting index (0 to Nvals -1).
|
|
@@ -103,6 +106,7 @@ def v_3d_tsort_params(
|
|
|
103
106
|
params = {
|
|
104
107
|
"__STYXTYPE__": "3dTsort",
|
|
105
108
|
"input_file": input_file,
|
|
109
|
+
"inc": inc,
|
|
106
110
|
"dec": dec,
|
|
107
111
|
"rank": rank,
|
|
108
112
|
"ind": ind,
|
|
@@ -139,6 +143,8 @@ def v_3d_tsort_cargs(
|
|
|
139
143
|
"-prefix",
|
|
140
144
|
params.get("prefix")
|
|
141
145
|
])
|
|
146
|
+
if params.get("inc"):
|
|
147
|
+
cargs.append("-inc")
|
|
142
148
|
if params.get("dec"):
|
|
143
149
|
cargs.append("-dec")
|
|
144
150
|
if params.get("rank"):
|
|
@@ -208,6 +214,7 @@ def v_3d_tsort_execute(
|
|
|
208
214
|
def v_3d_tsort(
|
|
209
215
|
input_file: InputPathType,
|
|
210
216
|
prefix: str | None = None,
|
|
217
|
+
inc: bool = False,
|
|
211
218
|
dec: bool = False,
|
|
212
219
|
rank: bool = False,
|
|
213
220
|
ind: bool = False,
|
|
@@ -228,6 +235,7 @@ def v_3d_tsort(
|
|
|
228
235
|
Args:
|
|
229
236
|
input_file: Input dataset to be sorted.
|
|
230
237
|
prefix: Prefix for the output dataset.
|
|
238
|
+
inc: Sort into increasing order (default).
|
|
231
239
|
dec: Sort into decreasing order.
|
|
232
240
|
rank: Output rank instead of sorted values; ranks range from 1 to Nvals.
|
|
233
241
|
ind: Output sorting index (0 to Nvals -1).
|
|
@@ -246,6 +254,7 @@ def v_3d_tsort(
|
|
|
246
254
|
params = v_3d_tsort_params(
|
|
247
255
|
input_file=input_file,
|
|
248
256
|
prefix=prefix,
|
|
257
|
+
inc=inc,
|
|
249
258
|
dec=dec,
|
|
250
259
|
rank=rank,
|
|
251
260
|
ind=ind,
|
niwrap_afni/afni/v_3d_tstat.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_TSTAT_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="e1660f36f2b134d3f7b3ce6ea6944f69d67b9501.boutiques",
|
|
10
10
|
name="3dTstat",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -15,8 +15,11 @@ V_3D_TSTAT_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
V3dTstatParameters = typing.TypedDict('V3dTstatParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["3dTstat"],
|
|
18
|
+
"in_file": InputPathType,
|
|
18
19
|
"mask": typing.NotRequired[InputPathType | None],
|
|
19
20
|
"num_threads": typing.NotRequired[int | None],
|
|
21
|
+
"options": typing.NotRequired[str | None],
|
|
22
|
+
"outputtype": typing.NotRequired[typing.Literal["NIFTI", "AFNI", "NIFTI_GZ"] | None],
|
|
20
23
|
"sum": bool,
|
|
21
24
|
"abssum": bool,
|
|
22
25
|
"sos": bool,
|
|
@@ -73,8 +76,6 @@ V3dTstatParameters = typing.TypedDict('V3dTstatParameters', {
|
|
|
73
76
|
"mask_mset": typing.NotRequired[InputPathType | None],
|
|
74
77
|
"mrange": typing.NotRequired[str | None],
|
|
75
78
|
"cmask": typing.NotRequired[str | None],
|
|
76
|
-
"outputtype": typing.NotRequired[typing.Literal["NIFTI", "AFNI", "NIFTI_GZ"] | None],
|
|
77
|
-
"in_file": InputPathType,
|
|
78
79
|
})
|
|
79
80
|
|
|
80
81
|
|
|
@@ -124,6 +125,8 @@ def v_3d_tstat_params(
|
|
|
124
125
|
in_file: InputPathType,
|
|
125
126
|
mask: InputPathType | None = None,
|
|
126
127
|
num_threads: int | None = None,
|
|
128
|
+
options: str | None = None,
|
|
129
|
+
outputtype: typing.Literal["NIFTI", "AFNI", "NIFTI_GZ"] | None = None,
|
|
127
130
|
sum_: bool = False,
|
|
128
131
|
abssum: bool = False,
|
|
129
132
|
sos: bool = False,
|
|
@@ -180,7 +183,6 @@ def v_3d_tstat_params(
|
|
|
180
183
|
mask_mset: InputPathType | None = None,
|
|
181
184
|
mrange: str | None = None,
|
|
182
185
|
cmask: str | None = None,
|
|
183
|
-
outputtype: typing.Literal["NIFTI", "AFNI", "NIFTI_GZ"] | None = None,
|
|
184
186
|
) -> V3dTstatParameters:
|
|
185
187
|
"""
|
|
186
188
|
Build parameters.
|
|
@@ -189,6 +191,8 @@ def v_3d_tstat_params(
|
|
|
189
191
|
in_file: Input file to 3dtstat.
|
|
190
192
|
mask: Mask file.
|
|
191
193
|
num_threads: Set number of threads.
|
|
194
|
+
options: Selected statistical output.
|
|
195
|
+
outputtype: 'nifti' or 'afni' or 'nifti_gz'. Afni output filetype.
|
|
192
196
|
sum_: Compute sum of input voxels.
|
|
193
197
|
abssum: Compute absolute sum of input voxels.
|
|
194
198
|
sos: Compute sum of squares.
|
|
@@ -262,12 +266,12 @@ def v_3d_tstat_params(
|
|
|
262
266
|
values between 'a' and 'b' (inclusive) will be used.
|
|
263
267
|
cmask: Execute the options enclosed in single quotes as a 3dcalc-like\
|
|
264
268
|
program, and produce a mask from the resulting 3D brick.
|
|
265
|
-
outputtype: 'nifti' or 'afni' or 'nifti_gz'. Afni output filetype.
|
|
266
269
|
Returns:
|
|
267
270
|
Parameter dictionary
|
|
268
271
|
"""
|
|
269
272
|
params = {
|
|
270
273
|
"__STYXTYPE__": "3dTstat",
|
|
274
|
+
"in_file": in_file,
|
|
271
275
|
"sum": sum_,
|
|
272
276
|
"abssum": abssum,
|
|
273
277
|
"sos": sos,
|
|
@@ -318,12 +322,15 @@ def v_3d_tstat_params(
|
|
|
318
322
|
"firstvalue": firstvalue,
|
|
319
323
|
"tdiff": tdiff,
|
|
320
324
|
"nscale": nscale,
|
|
321
|
-
"in_file": in_file,
|
|
322
325
|
}
|
|
323
326
|
if mask is not None:
|
|
324
327
|
params["mask"] = mask
|
|
325
328
|
if num_threads is not None:
|
|
326
329
|
params["num_threads"] = num_threads
|
|
330
|
+
if options is not None:
|
|
331
|
+
params["options"] = options
|
|
332
|
+
if outputtype is not None:
|
|
333
|
+
params["outputtype"] = outputtype
|
|
327
334
|
if prefix is not None:
|
|
328
335
|
params["prefix"] = prefix
|
|
329
336
|
if datum is not None:
|
|
@@ -336,8 +343,6 @@ def v_3d_tstat_params(
|
|
|
336
343
|
params["mrange"] = mrange
|
|
337
344
|
if cmask is not None:
|
|
338
345
|
params["cmask"] = cmask
|
|
339
|
-
if outputtype is not None:
|
|
340
|
-
params["outputtype"] = outputtype
|
|
341
346
|
return params
|
|
342
347
|
|
|
343
348
|
|
|
@@ -356,6 +361,7 @@ def v_3d_tstat_cargs(
|
|
|
356
361
|
"""
|
|
357
362
|
cargs = []
|
|
358
363
|
cargs.append("3dTstat")
|
|
364
|
+
cargs.append(execution.input_file(params.get("in_file")))
|
|
359
365
|
if params.get("mask") is not None:
|
|
360
366
|
cargs.extend([
|
|
361
367
|
"-mask",
|
|
@@ -363,6 +369,10 @@ def v_3d_tstat_cargs(
|
|
|
363
369
|
])
|
|
364
370
|
if params.get("num_threads") is not None:
|
|
365
371
|
cargs.append(str(params.get("num_threads")))
|
|
372
|
+
if params.get("options") is not None:
|
|
373
|
+
cargs.append(params.get("options"))
|
|
374
|
+
if params.get("outputtype") is not None:
|
|
375
|
+
cargs.append(params.get("outputtype"))
|
|
366
376
|
if params.get("sum"):
|
|
367
377
|
cargs.append("-sum")
|
|
368
378
|
if params.get("abssum"):
|
|
@@ -493,9 +503,6 @@ def v_3d_tstat_cargs(
|
|
|
493
503
|
"-cmask",
|
|
494
504
|
params.get("cmask")
|
|
495
505
|
])
|
|
496
|
-
if params.get("outputtype") is not None:
|
|
497
|
-
cargs.append(params.get("outputtype"))
|
|
498
|
-
cargs.append(execution.input_file(params.get("in_file")))
|
|
499
506
|
return cargs
|
|
500
507
|
|
|
501
508
|
|
|
@@ -547,6 +554,8 @@ def v_3d_tstat(
|
|
|
547
554
|
in_file: InputPathType,
|
|
548
555
|
mask: InputPathType | None = None,
|
|
549
556
|
num_threads: int | None = None,
|
|
557
|
+
options: str | None = None,
|
|
558
|
+
outputtype: typing.Literal["NIFTI", "AFNI", "NIFTI_GZ"] | None = None,
|
|
550
559
|
sum_: bool = False,
|
|
551
560
|
abssum: bool = False,
|
|
552
561
|
sos: bool = False,
|
|
@@ -603,7 +612,6 @@ def v_3d_tstat(
|
|
|
603
612
|
mask_mset: InputPathType | None = None,
|
|
604
613
|
mrange: str | None = None,
|
|
605
614
|
cmask: str | None = None,
|
|
606
|
-
outputtype: typing.Literal["NIFTI", "AFNI", "NIFTI_GZ"] | None = None,
|
|
607
615
|
runner: Runner | None = None,
|
|
608
616
|
) -> V3dTstatOutputs:
|
|
609
617
|
"""
|
|
@@ -617,6 +625,8 @@ def v_3d_tstat(
|
|
|
617
625
|
in_file: Input file to 3dtstat.
|
|
618
626
|
mask: Mask file.
|
|
619
627
|
num_threads: Set number of threads.
|
|
628
|
+
options: Selected statistical output.
|
|
629
|
+
outputtype: 'nifti' or 'afni' or 'nifti_gz'. Afni output filetype.
|
|
620
630
|
sum_: Compute sum of input voxels.
|
|
621
631
|
abssum: Compute absolute sum of input voxels.
|
|
622
632
|
sos: Compute sum of squares.
|
|
@@ -690,7 +700,6 @@ def v_3d_tstat(
|
|
|
690
700
|
values between 'a' and 'b' (inclusive) will be used.
|
|
691
701
|
cmask: Execute the options enclosed in single quotes as a 3dcalc-like\
|
|
692
702
|
program, and produce a mask from the resulting 3D brick.
|
|
693
|
-
outputtype: 'nifti' or 'afni' or 'nifti_gz'. Afni output filetype.
|
|
694
703
|
runner: Command runner.
|
|
695
704
|
Returns:
|
|
696
705
|
NamedTuple of outputs (described in `V3dTstatOutputs`).
|
|
@@ -698,8 +707,11 @@ def v_3d_tstat(
|
|
|
698
707
|
runner = runner or get_global_runner()
|
|
699
708
|
execution = runner.start_execution(V_3D_TSTAT_METADATA)
|
|
700
709
|
params = v_3d_tstat_params(
|
|
710
|
+
in_file=in_file,
|
|
701
711
|
mask=mask,
|
|
702
712
|
num_threads=num_threads,
|
|
713
|
+
options=options,
|
|
714
|
+
outputtype=outputtype,
|
|
703
715
|
sum_=sum_,
|
|
704
716
|
abssum=abssum,
|
|
705
717
|
sos=sos,
|
|
@@ -756,8 +768,6 @@ def v_3d_tstat(
|
|
|
756
768
|
mask_mset=mask_mset,
|
|
757
769
|
mrange=mrange,
|
|
758
770
|
cmask=cmask,
|
|
759
|
-
outputtype=outputtype,
|
|
760
|
-
in_file=in_file,
|
|
761
771
|
)
|
|
762
772
|
return v_3d_tstat_execute(params, execution)
|
|
763
773
|
|
niwrap_afni/afni/v_3d_undump.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_UNDUMP_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="f0b8af447cf310eefc98d5d8262aaf16f8069930.boutiques",
|
|
10
10
|
name="3dUndump",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -23,6 +23,7 @@ V3dUndumpParameters = typing.TypedDict('V3dUndumpParameters', {
|
|
|
23
23
|
"datatype": typing.NotRequired[str | None],
|
|
24
24
|
"dval": typing.NotRequired[float | None],
|
|
25
25
|
"fval": typing.NotRequired[float | None],
|
|
26
|
+
"ijk": bool,
|
|
26
27
|
"xyz": bool,
|
|
27
28
|
"sphere_radius": typing.NotRequired[float | None],
|
|
28
29
|
"cube_mode": bool,
|
|
@@ -84,6 +85,7 @@ def v_3d_undump_params(
|
|
|
84
85
|
datatype: str | None = None,
|
|
85
86
|
dval: float | None = None,
|
|
86
87
|
fval: float | None = None,
|
|
88
|
+
ijk: bool = False,
|
|
87
89
|
xyz: bool = False,
|
|
88
90
|
sphere_radius: float | None = None,
|
|
89
91
|
cube_mode: bool = False,
|
|
@@ -111,6 +113,7 @@ def v_3d_undump_params(
|
|
|
111
113
|
not have a value supplied in the input file [default = 1].
|
|
112
114
|
fval: 'fff' is the fill value, used for each voxel in the output\
|
|
113
115
|
dataset that is NOT listed in the input file [default = 0].
|
|
116
|
+
ijk: Coordinates in the input file are (i,j,k) index triples.
|
|
114
117
|
xyz: Coordinates in the input file are (x,y,z) spatial coordinates, in\
|
|
115
118
|
mm.
|
|
116
119
|
sphere_radius: Specifies that a sphere of radius 'rrr' will be filled\
|
|
@@ -129,6 +132,7 @@ def v_3d_undump_params(
|
|
|
129
132
|
params = {
|
|
130
133
|
"__STYXTYPE__": "3dUndump",
|
|
131
134
|
"input_files": input_files,
|
|
135
|
+
"ijk": ijk,
|
|
132
136
|
"xyz": xyz,
|
|
133
137
|
"cube_mode": cube_mode,
|
|
134
138
|
"head_only": head_only,
|
|
@@ -208,6 +212,8 @@ def v_3d_undump_cargs(
|
|
|
208
212
|
"-fval",
|
|
209
213
|
str(params.get("fval"))
|
|
210
214
|
])
|
|
215
|
+
if params.get("ijk"):
|
|
216
|
+
cargs.append("-ijk")
|
|
211
217
|
if params.get("xyz"):
|
|
212
218
|
cargs.append("-xyz")
|
|
213
219
|
if params.get("sphere_radius") is not None:
|
|
@@ -287,6 +293,7 @@ def v_3d_undump(
|
|
|
287
293
|
datatype: str | None = None,
|
|
288
294
|
dval: float | None = None,
|
|
289
295
|
fval: float | None = None,
|
|
296
|
+
ijk: bool = False,
|
|
290
297
|
xyz: bool = False,
|
|
291
298
|
sphere_radius: float | None = None,
|
|
292
299
|
cube_mode: bool = False,
|
|
@@ -319,6 +326,7 @@ def v_3d_undump(
|
|
|
319
326
|
not have a value supplied in the input file [default = 1].
|
|
320
327
|
fval: 'fff' is the fill value, used for each voxel in the output\
|
|
321
328
|
dataset that is NOT listed in the input file [default = 0].
|
|
329
|
+
ijk: Coordinates in the input file are (i,j,k) index triples.
|
|
322
330
|
xyz: Coordinates in the input file are (x,y,z) spatial coordinates, in\
|
|
323
331
|
mm.
|
|
324
332
|
sphere_radius: Specifies that a sphere of radius 'rrr' will be filled\
|
|
@@ -346,6 +354,7 @@ def v_3d_undump(
|
|
|
346
354
|
datatype=datatype,
|
|
347
355
|
dval=dval,
|
|
348
356
|
fval=fval,
|
|
357
|
+
ijk=ijk,
|
|
349
358
|
xyz=xyz,
|
|
350
359
|
sphere_radius=sphere_radius,
|
|
351
360
|
cube_mode=cube_mode,
|