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_AFNITO_NIML_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="ce21f3bbaff6b810f369fc126dbb776c6ff48469.boutiques",
|
|
10
10
|
name="3dAFNItoNIML",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -16,6 +16,9 @@ V_3D_AFNITO_NIML_METADATA = Metadata(
|
|
|
16
16
|
V3dAfnitoNimlParameters = typing.TypedDict('V3dAfnitoNimlParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["3dAFNItoNIML"],
|
|
18
18
|
"dset": InputPathType,
|
|
19
|
+
"data": bool,
|
|
20
|
+
"ascii": bool,
|
|
21
|
+
"tcp": typing.NotRequired[str | None],
|
|
19
22
|
})
|
|
20
23
|
|
|
21
24
|
|
|
@@ -60,19 +63,30 @@ class V3dAfnitoNimlOutputs(typing.NamedTuple):
|
|
|
60
63
|
|
|
61
64
|
def v_3d_afnito_niml_params(
|
|
62
65
|
dset: InputPathType,
|
|
66
|
+
data: bool = False,
|
|
67
|
+
ascii_: bool = False,
|
|
68
|
+
tcp: str | None = None,
|
|
63
69
|
) -> V3dAfnitoNimlParameters:
|
|
64
70
|
"""
|
|
65
71
|
Build parameters.
|
|
66
72
|
|
|
67
73
|
Args:
|
|
68
74
|
dset: AFNI dataset.
|
|
75
|
+
data: Also put the data into the output (will be huge).
|
|
76
|
+
ascii_: Format in ASCII, not binary (even huger).
|
|
77
|
+
tcp: Instead of stdout, send the dataset to a socket. Implies '-data'\
|
|
78
|
+
as well.
|
|
69
79
|
Returns:
|
|
70
80
|
Parameter dictionary
|
|
71
81
|
"""
|
|
72
82
|
params = {
|
|
73
83
|
"__STYXTYPE__": "3dAFNItoNIML",
|
|
74
84
|
"dset": dset,
|
|
85
|
+
"data": data,
|
|
86
|
+
"ascii": ascii_,
|
|
75
87
|
}
|
|
88
|
+
if tcp is not None:
|
|
89
|
+
params["tcp"] = tcp
|
|
76
90
|
return params
|
|
77
91
|
|
|
78
92
|
|
|
@@ -91,8 +105,16 @@ def v_3d_afnito_niml_cargs(
|
|
|
91
105
|
"""
|
|
92
106
|
cargs = []
|
|
93
107
|
cargs.append("3dAFNItoNIML")
|
|
94
|
-
cargs.append("[OPTIONS]")
|
|
95
108
|
cargs.append(execution.input_file(params.get("dset")))
|
|
109
|
+
if params.get("data"):
|
|
110
|
+
cargs.append("-data")
|
|
111
|
+
if params.get("ascii"):
|
|
112
|
+
cargs.append("-ascii")
|
|
113
|
+
if params.get("tcp") is not None:
|
|
114
|
+
cargs.extend([
|
|
115
|
+
"-tcp",
|
|
116
|
+
params.get("tcp")
|
|
117
|
+
])
|
|
96
118
|
return cargs
|
|
97
119
|
|
|
98
120
|
|
|
@@ -142,6 +164,9 @@ def v_3d_afnito_niml_execute(
|
|
|
142
164
|
|
|
143
165
|
def v_3d_afnito_niml(
|
|
144
166
|
dset: InputPathType,
|
|
167
|
+
data: bool = False,
|
|
168
|
+
ascii_: bool = False,
|
|
169
|
+
tcp: str | None = None,
|
|
145
170
|
runner: Runner | None = None,
|
|
146
171
|
) -> V3dAfnitoNimlOutputs:
|
|
147
172
|
"""
|
|
@@ -154,6 +179,10 @@ def v_3d_afnito_niml(
|
|
|
154
179
|
|
|
155
180
|
Args:
|
|
156
181
|
dset: AFNI dataset.
|
|
182
|
+
data: Also put the data into the output (will be huge).
|
|
183
|
+
ascii_: Format in ASCII, not binary (even huger).
|
|
184
|
+
tcp: Instead of stdout, send the dataset to a socket. Implies '-data'\
|
|
185
|
+
as well.
|
|
157
186
|
runner: Command runner.
|
|
158
187
|
Returns:
|
|
159
188
|
NamedTuple of outputs (described in `V3dAfnitoNimlOutputs`).
|
|
@@ -162,6 +191,9 @@ def v_3d_afnito_niml(
|
|
|
162
191
|
execution = runner.start_execution(V_3D_AFNITO_NIML_METADATA)
|
|
163
192
|
params = v_3d_afnito_niml_params(
|
|
164
193
|
dset=dset,
|
|
194
|
+
data=data,
|
|
195
|
+
ascii_=ascii_,
|
|
196
|
+
tcp=tcp,
|
|
165
197
|
)
|
|
166
198
|
return v_3d_afnito_niml_execute(params, execution)
|
|
167
199
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_AMP_TO_RSFC_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="942616944d84c853b47e970f882430a015aec06f.boutiques",
|
|
10
10
|
name="3dAmpToRSFC",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -20,6 +20,7 @@ V3dAmpToRsfcParameters = typing.TypedDict('V3dAmpToRsfcParameters', {
|
|
|
20
20
|
"prefix": str,
|
|
21
21
|
"band": list[float],
|
|
22
22
|
"mask": typing.NotRequired[InputPathType | None],
|
|
23
|
+
"nifti": bool,
|
|
23
24
|
})
|
|
24
25
|
|
|
25
26
|
|
|
@@ -83,6 +84,7 @@ def v_3d_amp_to_rsfc_params(
|
|
|
83
84
|
in_amp: InputPathType | None = None,
|
|
84
85
|
in_pow: InputPathType | None = None,
|
|
85
86
|
mask: InputPathType | None = None,
|
|
87
|
+
nifti: bool = False,
|
|
86
88
|
) -> V3dAmpToRsfcParameters:
|
|
87
89
|
"""
|
|
88
90
|
Build parameters.
|
|
@@ -97,6 +99,7 @@ def v_3d_amp_to_rsfc_params(
|
|
|
97
99
|
in_pow: Input file of a one-sided power spectrum, such as output by\
|
|
98
100
|
3dLombScargle.
|
|
99
101
|
mask: Volume mask of voxels to include for calculations.
|
|
102
|
+
nifti: Output files as *.nii.gz (default is BRIK/HEAD).
|
|
100
103
|
Returns:
|
|
101
104
|
Parameter dictionary
|
|
102
105
|
"""
|
|
@@ -104,6 +107,7 @@ def v_3d_amp_to_rsfc_params(
|
|
|
104
107
|
"__STYXTYPE__": "3dAmpToRSFC",
|
|
105
108
|
"prefix": prefix,
|
|
106
109
|
"band": band,
|
|
110
|
+
"nifti": nifti,
|
|
107
111
|
}
|
|
108
112
|
if in_amp is not None:
|
|
109
113
|
params["in_amp"] = in_amp
|
|
@@ -129,19 +133,16 @@ def v_3d_amp_to_rsfc_cargs(
|
|
|
129
133
|
"""
|
|
130
134
|
cargs = []
|
|
131
135
|
cargs.append("3dAmpToRSFC")
|
|
132
|
-
cargs.append("{")
|
|
133
136
|
if params.get("in_amp") is not None:
|
|
134
137
|
cargs.extend([
|
|
135
138
|
"-in_amp",
|
|
136
139
|
execution.input_file(params.get("in_amp"))
|
|
137
140
|
])
|
|
138
|
-
cargs.append("|")
|
|
139
141
|
if params.get("in_pow") is not None:
|
|
140
142
|
cargs.extend([
|
|
141
143
|
"-in_pow",
|
|
142
144
|
execution.input_file(params.get("in_pow"))
|
|
143
145
|
])
|
|
144
|
-
cargs.append("}")
|
|
145
146
|
cargs.extend([
|
|
146
147
|
"-prefix",
|
|
147
148
|
params.get("prefix")
|
|
@@ -150,16 +151,13 @@ def v_3d_amp_to_rsfc_cargs(
|
|
|
150
151
|
"-band",
|
|
151
152
|
*map(str, params.get("band"))
|
|
152
153
|
])
|
|
153
|
-
cargs.append("{")
|
|
154
154
|
if params.get("mask") is not None:
|
|
155
155
|
cargs.extend([
|
|
156
156
|
"-mask",
|
|
157
157
|
execution.input_file(params.get("mask"))
|
|
158
158
|
])
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
cargs.append("-nifti")
|
|
162
|
-
cargs.append("}")
|
|
159
|
+
if params.get("nifti"):
|
|
160
|
+
cargs.append("-nifti")
|
|
163
161
|
return cargs
|
|
164
162
|
|
|
165
163
|
|
|
@@ -218,6 +216,7 @@ def v_3d_amp_to_rsfc(
|
|
|
218
216
|
in_amp: InputPathType | None = None,
|
|
219
217
|
in_pow: InputPathType | None = None,
|
|
220
218
|
mask: InputPathType | None = None,
|
|
219
|
+
nifti: bool = False,
|
|
221
220
|
runner: Runner | None = None,
|
|
222
221
|
) -> V3dAmpToRsfcOutputs:
|
|
223
222
|
"""
|
|
@@ -237,6 +236,7 @@ def v_3d_amp_to_rsfc(
|
|
|
237
236
|
in_pow: Input file of a one-sided power spectrum, such as output by\
|
|
238
237
|
3dLombScargle.
|
|
239
238
|
mask: Volume mask of voxels to include for calculations.
|
|
239
|
+
nifti: Output files as *.nii.gz (default is BRIK/HEAD).
|
|
240
240
|
runner: Command runner.
|
|
241
241
|
Returns:
|
|
242
242
|
NamedTuple of outputs (described in `V3dAmpToRsfcOutputs`).
|
|
@@ -249,6 +249,7 @@ def v_3d_amp_to_rsfc(
|
|
|
249
249
|
prefix=prefix,
|
|
250
250
|
band=band,
|
|
251
251
|
mask=mask,
|
|
252
|
+
nifti=nifti,
|
|
252
253
|
)
|
|
253
254
|
return v_3d_amp_to_rsfc_execute(params, execution)
|
|
254
255
|
|
niwrap_afni/afni/v_3d_anova3.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_ANOVA3_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="89d3a37a3aeb7f4c6c360f1bc16bdccd1f3a7f46.boutiques",
|
|
10
10
|
name="3dANOVA3",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -23,6 +23,28 @@ V3dAnova3Parameters = typing.TypedDict('V3dAnova3Parameters', {
|
|
|
23
23
|
"voxel_num": typing.NotRequired[int | None],
|
|
24
24
|
"diskspace": bool,
|
|
25
25
|
"mask": typing.NotRequired[InputPathType | None],
|
|
26
|
+
"outfile_fa": typing.NotRequired[str | None],
|
|
27
|
+
"outfile_fb": typing.NotRequired[str | None],
|
|
28
|
+
"outfile_fc": typing.NotRequired[str | None],
|
|
29
|
+
"outfile_fab": typing.NotRequired[str | None],
|
|
30
|
+
"outfile_fac": typing.NotRequired[str | None],
|
|
31
|
+
"outfile_fbc": typing.NotRequired[str | None],
|
|
32
|
+
"outfile_fabc": typing.NotRequired[str | None],
|
|
33
|
+
"outfile_amean": typing.NotRequired[str | None],
|
|
34
|
+
"outfile_bmean": typing.NotRequired[str | None],
|
|
35
|
+
"outfile_cmean": typing.NotRequired[str | None],
|
|
36
|
+
"outfile_xmean": typing.NotRequired[str | None],
|
|
37
|
+
"outfile_adiff": typing.NotRequired[str | None],
|
|
38
|
+
"outfile_bdiff": typing.NotRequired[str | None],
|
|
39
|
+
"outfile_cdiff": typing.NotRequired[str | None],
|
|
40
|
+
"outfile_xdiff": typing.NotRequired[str | None],
|
|
41
|
+
"outfile_acontr": typing.NotRequired[str | None],
|
|
42
|
+
"outfile_bcontr": typing.NotRequired[str | None],
|
|
43
|
+
"outfile_ccontr": typing.NotRequired[str | None],
|
|
44
|
+
"outfile_Abcontr": typing.NotRequired[str | None],
|
|
45
|
+
"outfile_Abdiff": typing.NotRequired[str | None],
|
|
46
|
+
"outfile_abmean": typing.NotRequired[str | None],
|
|
47
|
+
"outfile_bucket": typing.NotRequired[str | None],
|
|
26
48
|
"anova_options": typing.NotRequired[list[str] | None],
|
|
27
49
|
})
|
|
28
50
|
|
|
@@ -65,23 +87,23 @@ class V3dAnova3Outputs(typing.NamedTuple):
|
|
|
65
87
|
"""
|
|
66
88
|
root: OutputPathType
|
|
67
89
|
"""Output root folder. This is the root folder for all outputs."""
|
|
68
|
-
outfile_fa: OutputPathType
|
|
90
|
+
outfile_fa: OutputPathType | None
|
|
69
91
|
"""Output file for the main ANOVA result."""
|
|
70
|
-
outfile_fb: OutputPathType
|
|
92
|
+
outfile_fb: OutputPathType | None
|
|
71
93
|
"""Output file for the main B ANOVA result."""
|
|
72
|
-
outfile_fc: OutputPathType
|
|
94
|
+
outfile_fc: OutputPathType | None
|
|
73
95
|
"""Output file for the main C ANOVA result."""
|
|
74
|
-
outfile_fab: OutputPathType
|
|
96
|
+
outfile_fab: OutputPathType | None
|
|
75
97
|
"""Output file for the interaction between A and B."""
|
|
76
|
-
outfile_fac: OutputPathType
|
|
98
|
+
outfile_fac: OutputPathType | None
|
|
77
99
|
"""Output file for the interaction between A and C."""
|
|
78
|
-
outfile_fbc: OutputPathType
|
|
100
|
+
outfile_fbc: OutputPathType | None
|
|
79
101
|
"""Output file for the interaction between B and C."""
|
|
80
|
-
outfile_fabc: OutputPathType
|
|
102
|
+
outfile_fabc: OutputPathType | None
|
|
81
103
|
"""Output file for the interaction between A, B, and C."""
|
|
82
|
-
outfile_amean: OutputPathType
|
|
104
|
+
outfile_amean: OutputPathType | None
|
|
83
105
|
"""Output file for the A mean results."""
|
|
84
|
-
outfile_bmean: OutputPathType
|
|
106
|
+
outfile_bmean: OutputPathType | None
|
|
85
107
|
"""Output file for the B mean results."""
|
|
86
108
|
|
|
87
109
|
|
|
@@ -94,6 +116,28 @@ def v_3d_anova3_params(
|
|
|
94
116
|
voxel_num: int | None = None,
|
|
95
117
|
diskspace: bool = False,
|
|
96
118
|
mask: InputPathType | None = None,
|
|
119
|
+
outfile_fa: str | None = None,
|
|
120
|
+
outfile_fb: str | None = None,
|
|
121
|
+
outfile_fc: str | None = None,
|
|
122
|
+
outfile_fab: str | None = None,
|
|
123
|
+
outfile_fac: str | None = None,
|
|
124
|
+
outfile_fbc: str | None = None,
|
|
125
|
+
outfile_fabc: str | None = None,
|
|
126
|
+
outfile_amean: str | None = None,
|
|
127
|
+
outfile_bmean: str | None = None,
|
|
128
|
+
outfile_cmean: str | None = None,
|
|
129
|
+
outfile_xmean: str | None = None,
|
|
130
|
+
outfile_adiff: str | None = None,
|
|
131
|
+
outfile_bdiff: str | None = None,
|
|
132
|
+
outfile_cdiff: str | None = None,
|
|
133
|
+
outfile_xdiff: str | None = None,
|
|
134
|
+
outfile_acontr: str | None = None,
|
|
135
|
+
outfile_bcontr: str | None = None,
|
|
136
|
+
outfile_ccontr: str | None = None,
|
|
137
|
+
outfile_abcontr: str | None = None,
|
|
138
|
+
outfile_abdiff: str | None = None,
|
|
139
|
+
outfile_abmean: str | None = None,
|
|
140
|
+
outfile_bucket: str | None = None,
|
|
97
141
|
anova_options: list[str] | None = None,
|
|
98
142
|
) -> V3dAnova3Parameters:
|
|
99
143
|
"""
|
|
@@ -110,6 +154,37 @@ def v_3d_anova3_params(
|
|
|
110
154
|
voxel_num: Screen output for specified voxel number.
|
|
111
155
|
diskspace: Print out disk space required for program execution.
|
|
112
156
|
mask: Use sub-brick #0 of dataset to define which voxels to process.
|
|
157
|
+
outfile_fa: Specify the output file for the main ANOVA result.
|
|
158
|
+
outfile_fb: Specify the output file for the main B ANOVA result.
|
|
159
|
+
outfile_fc: Specify the output file for the main C ANOVA result.
|
|
160
|
+
outfile_fab: Specify the output file for the interaction between A and\
|
|
161
|
+
B.
|
|
162
|
+
outfile_fac: Specify the output file for the interaction between A and\
|
|
163
|
+
C.
|
|
164
|
+
outfile_fbc: Specify the output file for the interaction between B and\
|
|
165
|
+
C.
|
|
166
|
+
outfile_fabc: Specify the output file for the interaction between A, B,\
|
|
167
|
+
and C.
|
|
168
|
+
outfile_amean: Specify the output file for the A mean results.
|
|
169
|
+
outfile_bmean: Specify the output file for the B mean results.
|
|
170
|
+
outfile_cmean: Specify the output file for the C mean results.
|
|
171
|
+
outfile_xmean: Specify the output file for the overall mean results.
|
|
172
|
+
outfile_adiff: Specify the output file for the A difference results.
|
|
173
|
+
outfile_bdiff: Specify the output file for the B difference results.
|
|
174
|
+
outfile_cdiff: Specify the output file for the C difference results.
|
|
175
|
+
outfile_xdiff: Specify the output file for the overall difference\
|
|
176
|
+
results.
|
|
177
|
+
outfile_acontr: Specify the output file for the A contrast results.
|
|
178
|
+
outfile_bcontr: Specify the output file for the B contrast results.
|
|
179
|
+
outfile_ccontr: Specify the output file for the C contrast results.
|
|
180
|
+
outfile_abcontr: Specify the output file for the interaction contrast\
|
|
181
|
+
results between A and B (case-sensitive).
|
|
182
|
+
outfile_abdiff: Specify the output file for the interaction difference\
|
|
183
|
+
results between A and B (case-sensitive).
|
|
184
|
+
outfile_abmean: Specify the output file for the mean results of the\
|
|
185
|
+
interaction between A and B.
|
|
186
|
+
outfile_bucket: Specify the output file for the bucket (combined)\
|
|
187
|
+
results.
|
|
113
188
|
anova_options: Modified ANOVA computation options. See:\
|
|
114
189
|
https://afni.nimh.nih.gov/sscc/gangc/ANOVA_Mod.html.
|
|
115
190
|
Returns:
|
|
@@ -128,6 +203,50 @@ def v_3d_anova3_params(
|
|
|
128
203
|
params["voxel_num"] = voxel_num
|
|
129
204
|
if mask is not None:
|
|
130
205
|
params["mask"] = mask
|
|
206
|
+
if outfile_fa is not None:
|
|
207
|
+
params["outfile_fa"] = outfile_fa
|
|
208
|
+
if outfile_fb is not None:
|
|
209
|
+
params["outfile_fb"] = outfile_fb
|
|
210
|
+
if outfile_fc is not None:
|
|
211
|
+
params["outfile_fc"] = outfile_fc
|
|
212
|
+
if outfile_fab is not None:
|
|
213
|
+
params["outfile_fab"] = outfile_fab
|
|
214
|
+
if outfile_fac is not None:
|
|
215
|
+
params["outfile_fac"] = outfile_fac
|
|
216
|
+
if outfile_fbc is not None:
|
|
217
|
+
params["outfile_fbc"] = outfile_fbc
|
|
218
|
+
if outfile_fabc is not None:
|
|
219
|
+
params["outfile_fabc"] = outfile_fabc
|
|
220
|
+
if outfile_amean is not None:
|
|
221
|
+
params["outfile_amean"] = outfile_amean
|
|
222
|
+
if outfile_bmean is not None:
|
|
223
|
+
params["outfile_bmean"] = outfile_bmean
|
|
224
|
+
if outfile_cmean is not None:
|
|
225
|
+
params["outfile_cmean"] = outfile_cmean
|
|
226
|
+
if outfile_xmean is not None:
|
|
227
|
+
params["outfile_xmean"] = outfile_xmean
|
|
228
|
+
if outfile_adiff is not None:
|
|
229
|
+
params["outfile_adiff"] = outfile_adiff
|
|
230
|
+
if outfile_bdiff is not None:
|
|
231
|
+
params["outfile_bdiff"] = outfile_bdiff
|
|
232
|
+
if outfile_cdiff is not None:
|
|
233
|
+
params["outfile_cdiff"] = outfile_cdiff
|
|
234
|
+
if outfile_xdiff is not None:
|
|
235
|
+
params["outfile_xdiff"] = outfile_xdiff
|
|
236
|
+
if outfile_acontr is not None:
|
|
237
|
+
params["outfile_acontr"] = outfile_acontr
|
|
238
|
+
if outfile_bcontr is not None:
|
|
239
|
+
params["outfile_bcontr"] = outfile_bcontr
|
|
240
|
+
if outfile_ccontr is not None:
|
|
241
|
+
params["outfile_ccontr"] = outfile_ccontr
|
|
242
|
+
if outfile_abcontr is not None:
|
|
243
|
+
params["outfile_Abcontr"] = outfile_abcontr
|
|
244
|
+
if outfile_abdiff is not None:
|
|
245
|
+
params["outfile_Abdiff"] = outfile_abdiff
|
|
246
|
+
if outfile_abmean is not None:
|
|
247
|
+
params["outfile_abmean"] = outfile_abmean
|
|
248
|
+
if outfile_bucket is not None:
|
|
249
|
+
params["outfile_bucket"] = outfile_bucket
|
|
131
250
|
if anova_options is not None:
|
|
132
251
|
params["anova_options"] = anova_options
|
|
133
252
|
return params
|
|
@@ -180,7 +299,116 @@ def v_3d_anova3_cargs(
|
|
|
180
299
|
"-mask",
|
|
181
300
|
execution.input_file(params.get("mask"))
|
|
182
301
|
])
|
|
183
|
-
|
|
302
|
+
if params.get("outfile_fa") is not None:
|
|
303
|
+
cargs.extend([
|
|
304
|
+
"-fa",
|
|
305
|
+
params.get("outfile_fa")
|
|
306
|
+
])
|
|
307
|
+
if params.get("outfile_fb") is not None:
|
|
308
|
+
cargs.extend([
|
|
309
|
+
"-fb",
|
|
310
|
+
params.get("outfile_fb")
|
|
311
|
+
])
|
|
312
|
+
if params.get("outfile_fc") is not None:
|
|
313
|
+
cargs.extend([
|
|
314
|
+
"-fc",
|
|
315
|
+
params.get("outfile_fc")
|
|
316
|
+
])
|
|
317
|
+
if params.get("outfile_fab") is not None:
|
|
318
|
+
cargs.extend([
|
|
319
|
+
"-fab",
|
|
320
|
+
params.get("outfile_fab")
|
|
321
|
+
])
|
|
322
|
+
if params.get("outfile_fac") is not None:
|
|
323
|
+
cargs.extend([
|
|
324
|
+
"-fac",
|
|
325
|
+
params.get("outfile_fac")
|
|
326
|
+
])
|
|
327
|
+
if params.get("outfile_fbc") is not None:
|
|
328
|
+
cargs.extend([
|
|
329
|
+
"-fbc",
|
|
330
|
+
params.get("outfile_fbc")
|
|
331
|
+
])
|
|
332
|
+
if params.get("outfile_fabc") is not None:
|
|
333
|
+
cargs.extend([
|
|
334
|
+
"-fabc",
|
|
335
|
+
params.get("outfile_fabc")
|
|
336
|
+
])
|
|
337
|
+
if params.get("outfile_amean") is not None:
|
|
338
|
+
cargs.extend([
|
|
339
|
+
"-amean",
|
|
340
|
+
params.get("outfile_amean")
|
|
341
|
+
])
|
|
342
|
+
if params.get("outfile_bmean") is not None:
|
|
343
|
+
cargs.extend([
|
|
344
|
+
"-bmean",
|
|
345
|
+
params.get("outfile_bmean")
|
|
346
|
+
])
|
|
347
|
+
if params.get("outfile_cmean") is not None:
|
|
348
|
+
cargs.extend([
|
|
349
|
+
"-cmean",
|
|
350
|
+
params.get("outfile_cmean")
|
|
351
|
+
])
|
|
352
|
+
if params.get("outfile_xmean") is not None:
|
|
353
|
+
cargs.extend([
|
|
354
|
+
"-xmean",
|
|
355
|
+
params.get("outfile_xmean")
|
|
356
|
+
])
|
|
357
|
+
if params.get("outfile_adiff") is not None:
|
|
358
|
+
cargs.extend([
|
|
359
|
+
"-adiff",
|
|
360
|
+
params.get("outfile_adiff")
|
|
361
|
+
])
|
|
362
|
+
if params.get("outfile_bdiff") is not None:
|
|
363
|
+
cargs.extend([
|
|
364
|
+
"-bdiff",
|
|
365
|
+
params.get("outfile_bdiff")
|
|
366
|
+
])
|
|
367
|
+
if params.get("outfile_cdiff") is not None:
|
|
368
|
+
cargs.extend([
|
|
369
|
+
"-cdiff",
|
|
370
|
+
params.get("outfile_cdiff")
|
|
371
|
+
])
|
|
372
|
+
if params.get("outfile_xdiff") is not None:
|
|
373
|
+
cargs.extend([
|
|
374
|
+
"-xdiff",
|
|
375
|
+
params.get("outfile_xdiff")
|
|
376
|
+
])
|
|
377
|
+
if params.get("outfile_acontr") is not None:
|
|
378
|
+
cargs.extend([
|
|
379
|
+
"-acontr",
|
|
380
|
+
params.get("outfile_acontr")
|
|
381
|
+
])
|
|
382
|
+
if params.get("outfile_bcontr") is not None:
|
|
383
|
+
cargs.extend([
|
|
384
|
+
"-bcontr",
|
|
385
|
+
params.get("outfile_bcontr")
|
|
386
|
+
])
|
|
387
|
+
if params.get("outfile_ccontr") is not None:
|
|
388
|
+
cargs.extend([
|
|
389
|
+
"-ccontr",
|
|
390
|
+
params.get("outfile_ccontr")
|
|
391
|
+
])
|
|
392
|
+
if params.get("outfile_Abcontr") is not None:
|
|
393
|
+
cargs.extend([
|
|
394
|
+
"-Abcontr",
|
|
395
|
+
params.get("outfile_Abcontr")
|
|
396
|
+
])
|
|
397
|
+
if params.get("outfile_Abdiff") is not None:
|
|
398
|
+
cargs.extend([
|
|
399
|
+
"-Abdiff",
|
|
400
|
+
params.get("outfile_Abdiff")
|
|
401
|
+
])
|
|
402
|
+
if params.get("outfile_abmean") is not None:
|
|
403
|
+
cargs.extend([
|
|
404
|
+
"-abmean",
|
|
405
|
+
params.get("outfile_abmean")
|
|
406
|
+
])
|
|
407
|
+
if params.get("outfile_bucket") is not None:
|
|
408
|
+
cargs.extend([
|
|
409
|
+
"-bucket",
|
|
410
|
+
params.get("outfile_bucket")
|
|
411
|
+
])
|
|
184
412
|
if params.get("anova_options") is not None:
|
|
185
413
|
cargs.extend([
|
|
186
414
|
"-old_method -OK -assume_sph",
|
|
@@ -204,15 +432,15 @@ def v_3d_anova3_outputs(
|
|
|
204
432
|
"""
|
|
205
433
|
ret = V3dAnova3Outputs(
|
|
206
434
|
root=execution.output_file("."),
|
|
207
|
-
outfile_fa=execution.output_file("
|
|
208
|
-
outfile_fb=execution.output_file("
|
|
209
|
-
outfile_fc=execution.output_file("
|
|
210
|
-
outfile_fab=execution.output_file("
|
|
211
|
-
outfile_fac=execution.output_file("
|
|
212
|
-
outfile_fbc=execution.output_file("
|
|
213
|
-
outfile_fabc=execution.output_file("
|
|
214
|
-
outfile_amean=execution.output_file("
|
|
215
|
-
outfile_bmean=execution.output_file("
|
|
435
|
+
outfile_fa=execution.output_file(params.get("outfile_fa")) if (params.get("outfile_fa") is not None) else None,
|
|
436
|
+
outfile_fb=execution.output_file(params.get("outfile_fb")) if (params.get("outfile_fb") is not None) else None,
|
|
437
|
+
outfile_fc=execution.output_file(params.get("outfile_fc")) if (params.get("outfile_fc") is not None) else None,
|
|
438
|
+
outfile_fab=execution.output_file(params.get("outfile_fab")) if (params.get("outfile_fab") is not None) else None,
|
|
439
|
+
outfile_fac=execution.output_file(params.get("outfile_fac")) if (params.get("outfile_fac") is not None) else None,
|
|
440
|
+
outfile_fbc=execution.output_file(params.get("outfile_fbc")) if (params.get("outfile_fbc") is not None) else None,
|
|
441
|
+
outfile_fabc=execution.output_file(params.get("outfile_fabc")) if (params.get("outfile_fabc") is not None) else None,
|
|
442
|
+
outfile_amean=execution.output_file(params.get("outfile_amean")) if (params.get("outfile_amean") is not None) else None,
|
|
443
|
+
outfile_bmean=execution.output_file(params.get("outfile_bmean")) if (params.get("outfile_bmean") is not None) else None,
|
|
216
444
|
)
|
|
217
445
|
return ret
|
|
218
446
|
|
|
@@ -250,6 +478,28 @@ def v_3d_anova3(
|
|
|
250
478
|
voxel_num: int | None = None,
|
|
251
479
|
diskspace: bool = False,
|
|
252
480
|
mask: InputPathType | None = None,
|
|
481
|
+
outfile_fa: str | None = None,
|
|
482
|
+
outfile_fb: str | None = None,
|
|
483
|
+
outfile_fc: str | None = None,
|
|
484
|
+
outfile_fab: str | None = None,
|
|
485
|
+
outfile_fac: str | None = None,
|
|
486
|
+
outfile_fbc: str | None = None,
|
|
487
|
+
outfile_fabc: str | None = None,
|
|
488
|
+
outfile_amean: str | None = None,
|
|
489
|
+
outfile_bmean: str | None = None,
|
|
490
|
+
outfile_cmean: str | None = None,
|
|
491
|
+
outfile_xmean: str | None = None,
|
|
492
|
+
outfile_adiff: str | None = None,
|
|
493
|
+
outfile_bdiff: str | None = None,
|
|
494
|
+
outfile_cdiff: str | None = None,
|
|
495
|
+
outfile_xdiff: str | None = None,
|
|
496
|
+
outfile_acontr: str | None = None,
|
|
497
|
+
outfile_bcontr: str | None = None,
|
|
498
|
+
outfile_ccontr: str | None = None,
|
|
499
|
+
outfile_abcontr: str | None = None,
|
|
500
|
+
outfile_abdiff: str | None = None,
|
|
501
|
+
outfile_abmean: str | None = None,
|
|
502
|
+
outfile_bucket: str | None = None,
|
|
253
503
|
anova_options: list[str] | None = None,
|
|
254
504
|
runner: Runner | None = None,
|
|
255
505
|
) -> V3dAnova3Outputs:
|
|
@@ -271,6 +521,37 @@ def v_3d_anova3(
|
|
|
271
521
|
voxel_num: Screen output for specified voxel number.
|
|
272
522
|
diskspace: Print out disk space required for program execution.
|
|
273
523
|
mask: Use sub-brick #0 of dataset to define which voxels to process.
|
|
524
|
+
outfile_fa: Specify the output file for the main ANOVA result.
|
|
525
|
+
outfile_fb: Specify the output file for the main B ANOVA result.
|
|
526
|
+
outfile_fc: Specify the output file for the main C ANOVA result.
|
|
527
|
+
outfile_fab: Specify the output file for the interaction between A and\
|
|
528
|
+
B.
|
|
529
|
+
outfile_fac: Specify the output file for the interaction between A and\
|
|
530
|
+
C.
|
|
531
|
+
outfile_fbc: Specify the output file for the interaction between B and\
|
|
532
|
+
C.
|
|
533
|
+
outfile_fabc: Specify the output file for the interaction between A, B,\
|
|
534
|
+
and C.
|
|
535
|
+
outfile_amean: Specify the output file for the A mean results.
|
|
536
|
+
outfile_bmean: Specify the output file for the B mean results.
|
|
537
|
+
outfile_cmean: Specify the output file for the C mean results.
|
|
538
|
+
outfile_xmean: Specify the output file for the overall mean results.
|
|
539
|
+
outfile_adiff: Specify the output file for the A difference results.
|
|
540
|
+
outfile_bdiff: Specify the output file for the B difference results.
|
|
541
|
+
outfile_cdiff: Specify the output file for the C difference results.
|
|
542
|
+
outfile_xdiff: Specify the output file for the overall difference\
|
|
543
|
+
results.
|
|
544
|
+
outfile_acontr: Specify the output file for the A contrast results.
|
|
545
|
+
outfile_bcontr: Specify the output file for the B contrast results.
|
|
546
|
+
outfile_ccontr: Specify the output file for the C contrast results.
|
|
547
|
+
outfile_abcontr: Specify the output file for the interaction contrast\
|
|
548
|
+
results between A and B (case-sensitive).
|
|
549
|
+
outfile_abdiff: Specify the output file for the interaction difference\
|
|
550
|
+
results between A and B (case-sensitive).
|
|
551
|
+
outfile_abmean: Specify the output file for the mean results of the\
|
|
552
|
+
interaction between A and B.
|
|
553
|
+
outfile_bucket: Specify the output file for the bucket (combined)\
|
|
554
|
+
results.
|
|
274
555
|
anova_options: Modified ANOVA computation options. See:\
|
|
275
556
|
https://afni.nimh.nih.gov/sscc/gangc/ANOVA_Mod.html.
|
|
276
557
|
runner: Command runner.
|
|
@@ -288,6 +569,28 @@ def v_3d_anova3(
|
|
|
288
569
|
voxel_num=voxel_num,
|
|
289
570
|
diskspace=diskspace,
|
|
290
571
|
mask=mask,
|
|
572
|
+
outfile_fa=outfile_fa,
|
|
573
|
+
outfile_fb=outfile_fb,
|
|
574
|
+
outfile_fc=outfile_fc,
|
|
575
|
+
outfile_fab=outfile_fab,
|
|
576
|
+
outfile_fac=outfile_fac,
|
|
577
|
+
outfile_fbc=outfile_fbc,
|
|
578
|
+
outfile_fabc=outfile_fabc,
|
|
579
|
+
outfile_amean=outfile_amean,
|
|
580
|
+
outfile_bmean=outfile_bmean,
|
|
581
|
+
outfile_cmean=outfile_cmean,
|
|
582
|
+
outfile_xmean=outfile_xmean,
|
|
583
|
+
outfile_adiff=outfile_adiff,
|
|
584
|
+
outfile_bdiff=outfile_bdiff,
|
|
585
|
+
outfile_cdiff=outfile_cdiff,
|
|
586
|
+
outfile_xdiff=outfile_xdiff,
|
|
587
|
+
outfile_acontr=outfile_acontr,
|
|
588
|
+
outfile_bcontr=outfile_bcontr,
|
|
589
|
+
outfile_ccontr=outfile_ccontr,
|
|
590
|
+
outfile_abcontr=outfile_abcontr,
|
|
591
|
+
outfile_abdiff=outfile_abdiff,
|
|
592
|
+
outfile_abmean=outfile_abmean,
|
|
593
|
+
outfile_bucket=outfile_bucket,
|
|
291
594
|
anova_options=anova_options,
|
|
292
595
|
)
|
|
293
596
|
return v_3d_anova3_execute(params, execution)
|