niwrap-afni 0.5.0__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.0.dist-info → niwrap_afni-0.5.2.dist-info}/METADATA +1 -1
- {niwrap_afni-0.5.0.dist-info → niwrap_afni-0.5.2.dist-info}/RECORD +111 -111
- {niwrap_afni-0.5.0.dist-info → niwrap_afni-0.5.2.dist-info}/WHEEL +0 -0
niwrap_afni/afni/v_3d_remlfit.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_REMLFIT_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="9a5a03ff4aea32e95390547c4573b680ae1ca04b.boutiques",
|
|
10
10
|
name="3dREMLfit",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -22,10 +22,14 @@ V3dRemlfitParameters = typing.TypedDict('V3dRemlfitParameters', {
|
|
|
22
22
|
"temp_storage": bool,
|
|
23
23
|
"mask": typing.NotRequired[InputPathType | None],
|
|
24
24
|
"output_prefix": typing.NotRequired[str | None],
|
|
25
|
+
"no_fdr_curve": bool,
|
|
25
26
|
"go_for_it": bool,
|
|
27
|
+
"max_a_param": typing.NotRequired[float | None],
|
|
26
28
|
"max_b_param": typing.NotRequired[float | None],
|
|
27
29
|
"grid_param": typing.NotRequired[float | None],
|
|
28
30
|
"negative_corr": bool,
|
|
31
|
+
"quiet": bool,
|
|
32
|
+
"verbose": bool,
|
|
29
33
|
})
|
|
30
34
|
|
|
31
35
|
|
|
@@ -89,10 +93,14 @@ def v_3d_remlfit_params(
|
|
|
89
93
|
temp_storage: bool = False,
|
|
90
94
|
mask: InputPathType | None = None,
|
|
91
95
|
output_prefix: str | None = None,
|
|
96
|
+
no_fdr_curve: bool = False,
|
|
92
97
|
go_for_it: bool = False,
|
|
98
|
+
max_a_param: float | None = None,
|
|
93
99
|
max_b_param: float | None = None,
|
|
94
100
|
grid_param: float | None = None,
|
|
95
101
|
negative_corr: bool = False,
|
|
102
|
+
quiet: bool = False,
|
|
103
|
+
verbose: bool = False,
|
|
96
104
|
) -> V3dRemlfitParameters:
|
|
97
105
|
"""
|
|
98
106
|
Build parameters.
|
|
@@ -111,11 +119,15 @@ def v_3d_remlfit_params(
|
|
|
111
119
|
mask: Read dataset as a mask for the input; voxels outside the mask\
|
|
112
120
|
will not be fit by the regression model.
|
|
113
121
|
output_prefix: Dataset prefix for saving REML variance parameters.
|
|
122
|
+
no_fdr_curve: Do not add FDR curve data to bucket datasets.
|
|
114
123
|
go_for_it: Force the program to continue past a failed collinearity\
|
|
115
124
|
check.
|
|
125
|
+
max_a_param: Set max allowed AR a parameter.
|
|
116
126
|
max_b_param: Set max allowed MA b parameter.
|
|
117
127
|
grid_param: Set the number of grid divisions in the (a,b) grid.
|
|
118
128
|
negative_corr: Allows negative correlations to be used.
|
|
129
|
+
quiet: Turn off most progress messages.
|
|
130
|
+
verbose: Turn on more progress messages.
|
|
119
131
|
Returns:
|
|
120
132
|
Parameter dictionary
|
|
121
133
|
"""
|
|
@@ -125,8 +137,11 @@ def v_3d_remlfit_params(
|
|
|
125
137
|
"regression_matrix": regression_matrix,
|
|
126
138
|
"sort_nods": sort_nods,
|
|
127
139
|
"temp_storage": temp_storage,
|
|
140
|
+
"no_fdr_curve": no_fdr_curve,
|
|
128
141
|
"go_for_it": go_for_it,
|
|
129
142
|
"negative_corr": negative_corr,
|
|
143
|
+
"quiet": quiet,
|
|
144
|
+
"verbose": verbose,
|
|
130
145
|
}
|
|
131
146
|
if baseline_files is not None:
|
|
132
147
|
params["baseline_files"] = baseline_files
|
|
@@ -134,6 +149,8 @@ def v_3d_remlfit_params(
|
|
|
134
149
|
params["mask"] = mask
|
|
135
150
|
if output_prefix is not None:
|
|
136
151
|
params["output_prefix"] = output_prefix
|
|
152
|
+
if max_a_param is not None:
|
|
153
|
+
params["max_a_param"] = max_a_param
|
|
137
154
|
if max_b_param is not None:
|
|
138
155
|
params["max_b_param"] = max_b_param
|
|
139
156
|
if grid_param is not None:
|
|
@@ -183,8 +200,15 @@ def v_3d_remlfit_cargs(
|
|
|
183
200
|
"-Rvar",
|
|
184
201
|
params.get("output_prefix")
|
|
185
202
|
])
|
|
203
|
+
if params.get("no_fdr_curve"):
|
|
204
|
+
cargs.append("-noFDR")
|
|
186
205
|
if params.get("go_for_it"):
|
|
187
206
|
cargs.append("-GOFORIT")
|
|
207
|
+
if params.get("max_a_param") is not None:
|
|
208
|
+
cargs.extend([
|
|
209
|
+
"-MAXa",
|
|
210
|
+
str(params.get("max_a_param"))
|
|
211
|
+
])
|
|
188
212
|
if params.get("max_b_param") is not None:
|
|
189
213
|
cargs.extend([
|
|
190
214
|
"-MAXb",
|
|
@@ -197,6 +221,10 @@ def v_3d_remlfit_cargs(
|
|
|
197
221
|
])
|
|
198
222
|
if params.get("negative_corr"):
|
|
199
223
|
cargs.append("-NEGcor")
|
|
224
|
+
if params.get("quiet"):
|
|
225
|
+
cargs.append("quiet")
|
|
226
|
+
if params.get("verbose"):
|
|
227
|
+
cargs.append("-verb")
|
|
200
228
|
return cargs
|
|
201
229
|
|
|
202
230
|
|
|
@@ -258,10 +286,14 @@ def v_3d_remlfit(
|
|
|
258
286
|
temp_storage: bool = False,
|
|
259
287
|
mask: InputPathType | None = None,
|
|
260
288
|
output_prefix: str | None = None,
|
|
289
|
+
no_fdr_curve: bool = False,
|
|
261
290
|
go_for_it: bool = False,
|
|
291
|
+
max_a_param: float | None = None,
|
|
262
292
|
max_b_param: float | None = None,
|
|
263
293
|
grid_param: float | None = None,
|
|
264
294
|
negative_corr: bool = False,
|
|
295
|
+
quiet: bool = False,
|
|
296
|
+
verbose: bool = False,
|
|
265
297
|
runner: Runner | None = None,
|
|
266
298
|
) -> V3dRemlfitOutputs:
|
|
267
299
|
"""
|
|
@@ -286,11 +318,15 @@ def v_3d_remlfit(
|
|
|
286
318
|
mask: Read dataset as a mask for the input; voxels outside the mask\
|
|
287
319
|
will not be fit by the regression model.
|
|
288
320
|
output_prefix: Dataset prefix for saving REML variance parameters.
|
|
321
|
+
no_fdr_curve: Do not add FDR curve data to bucket datasets.
|
|
289
322
|
go_for_it: Force the program to continue past a failed collinearity\
|
|
290
323
|
check.
|
|
324
|
+
max_a_param: Set max allowed AR a parameter.
|
|
291
325
|
max_b_param: Set max allowed MA b parameter.
|
|
292
326
|
grid_param: Set the number of grid divisions in the (a,b) grid.
|
|
293
327
|
negative_corr: Allows negative correlations to be used.
|
|
328
|
+
quiet: Turn off most progress messages.
|
|
329
|
+
verbose: Turn on more progress messages.
|
|
294
330
|
runner: Command runner.
|
|
295
331
|
Returns:
|
|
296
332
|
NamedTuple of outputs (described in `V3dRemlfitOutputs`).
|
|
@@ -305,10 +341,14 @@ def v_3d_remlfit(
|
|
|
305
341
|
temp_storage=temp_storage,
|
|
306
342
|
mask=mask,
|
|
307
343
|
output_prefix=output_prefix,
|
|
344
|
+
no_fdr_curve=no_fdr_curve,
|
|
308
345
|
go_for_it=go_for_it,
|
|
346
|
+
max_a_param=max_a_param,
|
|
309
347
|
max_b_param=max_b_param,
|
|
310
348
|
grid_param=grid_param,
|
|
311
349
|
negative_corr=negative_corr,
|
|
350
|
+
quiet=quiet,
|
|
351
|
+
verbose=verbose,
|
|
312
352
|
)
|
|
313
353
|
return v_3d_remlfit_execute(params, execution)
|
|
314
354
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_ROISTATS_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="b9c0ea474b143a895f00214ac150e218ee4b6ab6.boutiques",
|
|
10
10
|
name="3dROIstats",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -192,7 +192,6 @@ def v_3d_roistats_cargs(
|
|
|
192
192
|
"-mask",
|
|
193
193
|
execution.input_file(params.get("mask"))
|
|
194
194
|
])
|
|
195
|
-
cargs.append("[OUT_FILE]")
|
|
196
195
|
if params.get("debug"):
|
|
197
196
|
cargs.append("-debug")
|
|
198
197
|
if params.get("format1D"):
|
niwrap_afni/afni/v_3d_rsfc.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_RSFC_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="143254090adf81d94650422d3da0d7fcae499cc5.boutiques",
|
|
10
10
|
name="3dRSFC",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -18,6 +18,27 @@ V3dRsfcParameters = typing.TypedDict('V3dRsfcParameters', {
|
|
|
18
18
|
"fbot": float,
|
|
19
19
|
"ftop": float,
|
|
20
20
|
"input_dataset": InputPathType,
|
|
21
|
+
"despike": bool,
|
|
22
|
+
"ort_file": typing.NotRequired[InputPathType | None],
|
|
23
|
+
"dsort_file": typing.NotRequired[InputPathType | None],
|
|
24
|
+
"nodetrend": bool,
|
|
25
|
+
"time_step": typing.NotRequired[float | None],
|
|
26
|
+
"nfft": typing.NotRequired[int | None],
|
|
27
|
+
"norm": bool,
|
|
28
|
+
"mask": typing.NotRequired[InputPathType | None],
|
|
29
|
+
"automask": bool,
|
|
30
|
+
"blur": typing.NotRequired[float | None],
|
|
31
|
+
"localpv": typing.NotRequired[float | None],
|
|
32
|
+
"input_alt": typing.NotRequired[InputPathType | None],
|
|
33
|
+
"band": typing.NotRequired[list[float] | None],
|
|
34
|
+
"prefix": typing.NotRequired[str | None],
|
|
35
|
+
"quiet": bool,
|
|
36
|
+
"no_rs_out": bool,
|
|
37
|
+
"un_bandpass_out": bool,
|
|
38
|
+
"no_rsfa": bool,
|
|
39
|
+
"bp_at_end": bool,
|
|
40
|
+
"notrans": bool,
|
|
41
|
+
"nosat": bool,
|
|
21
42
|
})
|
|
22
43
|
|
|
23
44
|
|
|
@@ -59,9 +80,9 @@ class V3dRsfcOutputs(typing.NamedTuple):
|
|
|
59
80
|
"""
|
|
60
81
|
root: OutputPathType
|
|
61
82
|
"""Output root folder. This is the root folder for all outputs."""
|
|
62
|
-
filtered_time_series: OutputPathType
|
|
83
|
+
filtered_time_series: OutputPathType | None
|
|
63
84
|
"""Filtered time series output"""
|
|
64
|
-
un_bandpassed_series: OutputPathType
|
|
85
|
+
un_bandpassed_series: OutputPathType | None
|
|
65
86
|
"""Un-bandpassed series output"""
|
|
66
87
|
|
|
67
88
|
|
|
@@ -69,6 +90,27 @@ def v_3d_rsfc_params(
|
|
|
69
90
|
fbot: float,
|
|
70
91
|
ftop: float,
|
|
71
92
|
input_dataset: InputPathType,
|
|
93
|
+
despike: bool = False,
|
|
94
|
+
ort_file: InputPathType | None = None,
|
|
95
|
+
dsort_file: InputPathType | None = None,
|
|
96
|
+
nodetrend: bool = False,
|
|
97
|
+
time_step: float | None = None,
|
|
98
|
+
nfft: int | None = None,
|
|
99
|
+
norm: bool = False,
|
|
100
|
+
mask: InputPathType | None = None,
|
|
101
|
+
automask: bool = False,
|
|
102
|
+
blur: float | None = None,
|
|
103
|
+
localpv: float | None = None,
|
|
104
|
+
input_alt: InputPathType | None = None,
|
|
105
|
+
band: list[float] | None = None,
|
|
106
|
+
prefix: str | None = None,
|
|
107
|
+
quiet: bool = False,
|
|
108
|
+
no_rs_out: bool = False,
|
|
109
|
+
un_bandpass_out: bool = False,
|
|
110
|
+
no_rsfa: bool = False,
|
|
111
|
+
bp_at_end: bool = False,
|
|
112
|
+
notrans: bool = False,
|
|
113
|
+
nosat: bool = False,
|
|
72
114
|
) -> V3dRsfcParameters:
|
|
73
115
|
"""
|
|
74
116
|
Build parameters.
|
|
@@ -77,6 +119,30 @@ def v_3d_rsfc_params(
|
|
|
77
119
|
fbot: Lowest frequency in the passband, in Hz.
|
|
78
120
|
ftop: Highest frequency in the passband (must be > fbot).
|
|
79
121
|
input_dataset: Input dataset (3D+time sequence of volumes).
|
|
122
|
+
despike: Despike each time series before other processing.
|
|
123
|
+
ort_file: Also orthogonalize input to columns in specified file.
|
|
124
|
+
dsort_file: Orthogonalize each voxel to the corresponding voxel time\
|
|
125
|
+
series in specified dataset.
|
|
126
|
+
nodetrend: Skip the quadratic detrending of input before FFT-based\
|
|
127
|
+
bandpassing.
|
|
128
|
+
time_step: Set time step to specified value in seconds.
|
|
129
|
+
nfft: Set the FFT length to specified value.
|
|
130
|
+
norm: Make all output time series have L2 norm = 1.
|
|
131
|
+
mask: Specify mask dataset.
|
|
132
|
+
automask: Create a mask from the input dataset.
|
|
133
|
+
blur: Blur inside the mask only with specified FWHM in mm.
|
|
134
|
+
localpv: Replace each vector by the local Principal Vector from a\
|
|
135
|
+
neighborhood radius.
|
|
136
|
+
input_alt: Alternative way to specify input dataset.
|
|
137
|
+
band: Alternative way to specify passband frequencies.
|
|
138
|
+
prefix: Set prefix name of the output dataset.
|
|
139
|
+
quiet: Turn off the fun and informative messages.
|
|
140
|
+
no_rs_out: Don't output processed time series, just output parameters.
|
|
141
|
+
un_bandpass_out: Output the un-bandpassed series as well.
|
|
142
|
+
no_rsfa: Exclude RSFA output (default is to include).
|
|
143
|
+
bp_at_end: Bandpassing as the last step in the processing sequence.
|
|
144
|
+
notrans: Don't check for initial positive transients in the data.
|
|
145
|
+
nosat: Equivalent to -notrans, skips checking for initial transients.
|
|
80
146
|
Returns:
|
|
81
147
|
Parameter dictionary
|
|
82
148
|
"""
|
|
@@ -85,7 +151,38 @@ def v_3d_rsfc_params(
|
|
|
85
151
|
"fbot": fbot,
|
|
86
152
|
"ftop": ftop,
|
|
87
153
|
"input_dataset": input_dataset,
|
|
154
|
+
"despike": despike,
|
|
155
|
+
"nodetrend": nodetrend,
|
|
156
|
+
"norm": norm,
|
|
157
|
+
"automask": automask,
|
|
158
|
+
"quiet": quiet,
|
|
159
|
+
"no_rs_out": no_rs_out,
|
|
160
|
+
"un_bandpass_out": un_bandpass_out,
|
|
161
|
+
"no_rsfa": no_rsfa,
|
|
162
|
+
"bp_at_end": bp_at_end,
|
|
163
|
+
"notrans": notrans,
|
|
164
|
+
"nosat": nosat,
|
|
88
165
|
}
|
|
166
|
+
if ort_file is not None:
|
|
167
|
+
params["ort_file"] = ort_file
|
|
168
|
+
if dsort_file is not None:
|
|
169
|
+
params["dsort_file"] = dsort_file
|
|
170
|
+
if time_step is not None:
|
|
171
|
+
params["time_step"] = time_step
|
|
172
|
+
if nfft is not None:
|
|
173
|
+
params["nfft"] = nfft
|
|
174
|
+
if mask is not None:
|
|
175
|
+
params["mask"] = mask
|
|
176
|
+
if blur is not None:
|
|
177
|
+
params["blur"] = blur
|
|
178
|
+
if localpv is not None:
|
|
179
|
+
params["localpv"] = localpv
|
|
180
|
+
if input_alt is not None:
|
|
181
|
+
params["input_alt"] = input_alt
|
|
182
|
+
if band is not None:
|
|
183
|
+
params["band"] = band
|
|
184
|
+
if prefix is not None:
|
|
185
|
+
params["prefix"] = prefix
|
|
89
186
|
return params
|
|
90
187
|
|
|
91
188
|
|
|
@@ -104,10 +201,81 @@ def v_3d_rsfc_cargs(
|
|
|
104
201
|
"""
|
|
105
202
|
cargs = []
|
|
106
203
|
cargs.append("3dRSFC")
|
|
107
|
-
cargs.append("[OPTIONS]")
|
|
108
204
|
cargs.append(str(params.get("fbot")))
|
|
109
205
|
cargs.append(str(params.get("ftop")))
|
|
110
206
|
cargs.append(execution.input_file(params.get("input_dataset")))
|
|
207
|
+
if params.get("despike"):
|
|
208
|
+
cargs.append("-despike")
|
|
209
|
+
if params.get("ort_file") is not None:
|
|
210
|
+
cargs.extend([
|
|
211
|
+
"-ort",
|
|
212
|
+
execution.input_file(params.get("ort_file"))
|
|
213
|
+
])
|
|
214
|
+
if params.get("dsort_file") is not None:
|
|
215
|
+
cargs.extend([
|
|
216
|
+
"-dsort",
|
|
217
|
+
execution.input_file(params.get("dsort_file"))
|
|
218
|
+
])
|
|
219
|
+
if params.get("nodetrend"):
|
|
220
|
+
cargs.append("-nodetrend")
|
|
221
|
+
if params.get("time_step") is not None:
|
|
222
|
+
cargs.extend([
|
|
223
|
+
"-dt",
|
|
224
|
+
str(params.get("time_step"))
|
|
225
|
+
])
|
|
226
|
+
if params.get("nfft") is not None:
|
|
227
|
+
cargs.extend([
|
|
228
|
+
"-nfft",
|
|
229
|
+
str(params.get("nfft"))
|
|
230
|
+
])
|
|
231
|
+
if params.get("norm"):
|
|
232
|
+
cargs.append("-norm")
|
|
233
|
+
if params.get("mask") is not None:
|
|
234
|
+
cargs.extend([
|
|
235
|
+
"-mask",
|
|
236
|
+
execution.input_file(params.get("mask"))
|
|
237
|
+
])
|
|
238
|
+
if params.get("automask"):
|
|
239
|
+
cargs.append("-automask")
|
|
240
|
+
if params.get("blur") is not None:
|
|
241
|
+
cargs.extend([
|
|
242
|
+
"-blur",
|
|
243
|
+
str(params.get("blur"))
|
|
244
|
+
])
|
|
245
|
+
if params.get("localpv") is not None:
|
|
246
|
+
cargs.extend([
|
|
247
|
+
"-localPV",
|
|
248
|
+
str(params.get("localpv"))
|
|
249
|
+
])
|
|
250
|
+
if params.get("input_alt") is not None:
|
|
251
|
+
cargs.extend([
|
|
252
|
+
"-input",
|
|
253
|
+
execution.input_file(params.get("input_alt"))
|
|
254
|
+
])
|
|
255
|
+
if params.get("band") is not None:
|
|
256
|
+
cargs.extend([
|
|
257
|
+
"-band",
|
|
258
|
+
*map(str, params.get("band"))
|
|
259
|
+
])
|
|
260
|
+
if params.get("prefix") is not None:
|
|
261
|
+
cargs.extend([
|
|
262
|
+
"-prefix",
|
|
263
|
+
params.get("prefix")
|
|
264
|
+
])
|
|
265
|
+
if params.get("quiet"):
|
|
266
|
+
cargs.append("-quiet")
|
|
267
|
+
if params.get("no_rs_out"):
|
|
268
|
+
cargs.append("-no_rs_out")
|
|
269
|
+
if params.get("un_bandpass_out"):
|
|
270
|
+
cargs.append("-un_bp_out")
|
|
271
|
+
if params.get("no_rsfa"):
|
|
272
|
+
cargs.append("-no_rsfa")
|
|
273
|
+
if params.get("bp_at_end"):
|
|
274
|
+
cargs.append("-bp_at_end")
|
|
275
|
+
if params.get("notrans"):
|
|
276
|
+
cargs.append("-notrans")
|
|
277
|
+
if params.get("nosat"):
|
|
278
|
+
cargs.append("-nosat")
|
|
111
279
|
return cargs
|
|
112
280
|
|
|
113
281
|
|
|
@@ -126,8 +294,8 @@ def v_3d_rsfc_outputs(
|
|
|
126
294
|
"""
|
|
127
295
|
ret = V3dRsfcOutputs(
|
|
128
296
|
root=execution.output_file("."),
|
|
129
|
-
filtered_time_series=execution.output_file("
|
|
130
|
-
un_bandpassed_series=execution.output_file("
|
|
297
|
+
filtered_time_series=execution.output_file(params.get("prefix") + "_LFF+orig.*") if (params.get("prefix") is not None) else None,
|
|
298
|
+
un_bandpassed_series=execution.output_file(params.get("prefix") + "_unBP+orig.*") if (params.get("prefix") is not None) else None,
|
|
131
299
|
)
|
|
132
300
|
return ret
|
|
133
301
|
|
|
@@ -161,6 +329,27 @@ def v_3d_rsfc(
|
|
|
161
329
|
fbot: float,
|
|
162
330
|
ftop: float,
|
|
163
331
|
input_dataset: InputPathType,
|
|
332
|
+
despike: bool = False,
|
|
333
|
+
ort_file: InputPathType | None = None,
|
|
334
|
+
dsort_file: InputPathType | None = None,
|
|
335
|
+
nodetrend: bool = False,
|
|
336
|
+
time_step: float | None = None,
|
|
337
|
+
nfft: int | None = None,
|
|
338
|
+
norm: bool = False,
|
|
339
|
+
mask: InputPathType | None = None,
|
|
340
|
+
automask: bool = False,
|
|
341
|
+
blur: float | None = None,
|
|
342
|
+
localpv: float | None = None,
|
|
343
|
+
input_alt: InputPathType | None = None,
|
|
344
|
+
band: list[float] | None = None,
|
|
345
|
+
prefix: str | None = None,
|
|
346
|
+
quiet: bool = False,
|
|
347
|
+
no_rs_out: bool = False,
|
|
348
|
+
un_bandpass_out: bool = False,
|
|
349
|
+
no_rsfa: bool = False,
|
|
350
|
+
bp_at_end: bool = False,
|
|
351
|
+
notrans: bool = False,
|
|
352
|
+
nosat: bool = False,
|
|
164
353
|
runner: Runner | None = None,
|
|
165
354
|
) -> V3dRsfcOutputs:
|
|
166
355
|
"""
|
|
@@ -175,6 +364,30 @@ def v_3d_rsfc(
|
|
|
175
364
|
fbot: Lowest frequency in the passband, in Hz.
|
|
176
365
|
ftop: Highest frequency in the passband (must be > fbot).
|
|
177
366
|
input_dataset: Input dataset (3D+time sequence of volumes).
|
|
367
|
+
despike: Despike each time series before other processing.
|
|
368
|
+
ort_file: Also orthogonalize input to columns in specified file.
|
|
369
|
+
dsort_file: Orthogonalize each voxel to the corresponding voxel time\
|
|
370
|
+
series in specified dataset.
|
|
371
|
+
nodetrend: Skip the quadratic detrending of input before FFT-based\
|
|
372
|
+
bandpassing.
|
|
373
|
+
time_step: Set time step to specified value in seconds.
|
|
374
|
+
nfft: Set the FFT length to specified value.
|
|
375
|
+
norm: Make all output time series have L2 norm = 1.
|
|
376
|
+
mask: Specify mask dataset.
|
|
377
|
+
automask: Create a mask from the input dataset.
|
|
378
|
+
blur: Blur inside the mask only with specified FWHM in mm.
|
|
379
|
+
localpv: Replace each vector by the local Principal Vector from a\
|
|
380
|
+
neighborhood radius.
|
|
381
|
+
input_alt: Alternative way to specify input dataset.
|
|
382
|
+
band: Alternative way to specify passband frequencies.
|
|
383
|
+
prefix: Set prefix name of the output dataset.
|
|
384
|
+
quiet: Turn off the fun and informative messages.
|
|
385
|
+
no_rs_out: Don't output processed time series, just output parameters.
|
|
386
|
+
un_bandpass_out: Output the un-bandpassed series as well.
|
|
387
|
+
no_rsfa: Exclude RSFA output (default is to include).
|
|
388
|
+
bp_at_end: Bandpassing as the last step in the processing sequence.
|
|
389
|
+
notrans: Don't check for initial positive transients in the data.
|
|
390
|
+
nosat: Equivalent to -notrans, skips checking for initial transients.
|
|
178
391
|
runner: Command runner.
|
|
179
392
|
Returns:
|
|
180
393
|
NamedTuple of outputs (described in `V3dRsfcOutputs`).
|
|
@@ -185,6 +398,27 @@ def v_3d_rsfc(
|
|
|
185
398
|
fbot=fbot,
|
|
186
399
|
ftop=ftop,
|
|
187
400
|
input_dataset=input_dataset,
|
|
401
|
+
despike=despike,
|
|
402
|
+
ort_file=ort_file,
|
|
403
|
+
dsort_file=dsort_file,
|
|
404
|
+
nodetrend=nodetrend,
|
|
405
|
+
time_step=time_step,
|
|
406
|
+
nfft=nfft,
|
|
407
|
+
norm=norm,
|
|
408
|
+
mask=mask,
|
|
409
|
+
automask=automask,
|
|
410
|
+
blur=blur,
|
|
411
|
+
localpv=localpv,
|
|
412
|
+
input_alt=input_alt,
|
|
413
|
+
band=band,
|
|
414
|
+
prefix=prefix,
|
|
415
|
+
quiet=quiet,
|
|
416
|
+
no_rs_out=no_rs_out,
|
|
417
|
+
un_bandpass_out=un_bandpass_out,
|
|
418
|
+
no_rsfa=no_rsfa,
|
|
419
|
+
bp_at_end=bp_at_end,
|
|
420
|
+
notrans=notrans,
|
|
421
|
+
nosat=nosat,
|
|
188
422
|
)
|
|
189
423
|
return v_3d_rsfc_execute(params, execution)
|
|
190
424
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_STAT_CLUST_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="284f4ab8bc45b6b47b8622cab065942bd38efb9a.boutiques",
|
|
10
10
|
name="3dStatClust",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -18,6 +18,8 @@ V3dStatClustParameters = typing.TypedDict('V3dStatClustParameters', {
|
|
|
18
18
|
"prefix": typing.NotRequired[str | None],
|
|
19
19
|
"session_dir": typing.NotRequired[str | None],
|
|
20
20
|
"verbose": bool,
|
|
21
|
+
"dist_euc": bool,
|
|
22
|
+
"dist_ind": bool,
|
|
21
23
|
"dist_cor": bool,
|
|
22
24
|
"thresh": str,
|
|
23
25
|
"nclust": float,
|
|
@@ -76,6 +78,8 @@ def v_3d_stat_clust_params(
|
|
|
76
78
|
prefix: str | None = None,
|
|
77
79
|
session_dir: str | None = None,
|
|
78
80
|
verbose: bool = False,
|
|
81
|
+
dist_euc: bool = False,
|
|
82
|
+
dist_ind: bool = False,
|
|
79
83
|
dist_cor: bool = False,
|
|
80
84
|
) -> V3dStatClustParameters:
|
|
81
85
|
"""
|
|
@@ -92,6 +96,8 @@ def v_3d_stat_clust_params(
|
|
|
92
96
|
prefix: Use 'pname' for the output dataset prefix name.
|
|
93
97
|
session_dir: Use 'dir' for the output dataset session directory.
|
|
94
98
|
verbose: Print out verbose output as the program proceeds.
|
|
99
|
+
dist_euc: Calculate Euclidean distance between parameters.
|
|
100
|
+
dist_ind: Statistical distance for independent parameters.
|
|
95
101
|
dist_cor: Statistical distance for correlated parameters.
|
|
96
102
|
Returns:
|
|
97
103
|
Parameter dictionary
|
|
@@ -99,6 +105,8 @@ def v_3d_stat_clust_params(
|
|
|
99
105
|
params = {
|
|
100
106
|
"__STYXTYPE__": "3dStatClust",
|
|
101
107
|
"verbose": verbose,
|
|
108
|
+
"dist_euc": dist_euc,
|
|
109
|
+
"dist_ind": dist_ind,
|
|
102
110
|
"dist_cor": dist_cor,
|
|
103
111
|
"thresh": thresh,
|
|
104
112
|
"nclust": nclust,
|
|
@@ -138,6 +146,10 @@ def v_3d_stat_clust_cargs(
|
|
|
138
146
|
])
|
|
139
147
|
if params.get("verbose"):
|
|
140
148
|
cargs.append("-verb")
|
|
149
|
+
if params.get("dist_euc"):
|
|
150
|
+
cargs.append("-dist_euc")
|
|
151
|
+
if params.get("dist_ind"):
|
|
152
|
+
cargs.append("-dist_ind")
|
|
141
153
|
if params.get("dist_cor"):
|
|
142
154
|
cargs.append("-dist_cor")
|
|
143
155
|
cargs.extend([
|
|
@@ -206,6 +218,8 @@ def v_3d_stat_clust(
|
|
|
206
218
|
prefix: str | None = None,
|
|
207
219
|
session_dir: str | None = None,
|
|
208
220
|
verbose: bool = False,
|
|
221
|
+
dist_euc: bool = False,
|
|
222
|
+
dist_ind: bool = False,
|
|
209
223
|
dist_cor: bool = False,
|
|
210
224
|
runner: Runner | None = None,
|
|
211
225
|
) -> V3dStatClustOutputs:
|
|
@@ -229,6 +243,8 @@ def v_3d_stat_clust(
|
|
|
229
243
|
prefix: Use 'pname' for the output dataset prefix name.
|
|
230
244
|
session_dir: Use 'dir' for the output dataset session directory.
|
|
231
245
|
verbose: Print out verbose output as the program proceeds.
|
|
246
|
+
dist_euc: Calculate Euclidean distance between parameters.
|
|
247
|
+
dist_ind: Statistical distance for independent parameters.
|
|
232
248
|
dist_cor: Statistical distance for correlated parameters.
|
|
233
249
|
runner: Command runner.
|
|
234
250
|
Returns:
|
|
@@ -240,6 +256,8 @@ def v_3d_stat_clust(
|
|
|
240
256
|
prefix=prefix,
|
|
241
257
|
session_dir=session_dir,
|
|
242
258
|
verbose=verbose,
|
|
259
|
+
dist_euc=dist_euc,
|
|
260
|
+
dist_ind=dist_ind,
|
|
243
261
|
dist_cor=dist_cor,
|
|
244
262
|
thresh=thresh,
|
|
245
263
|
nclust=nclust,
|
niwrap_afni/afni/v_3d_tcat.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_TCAT_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="023823c816c61a89ea1bb113572154f5901d616f.boutiques",
|
|
10
10
|
name="3dTcat",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -17,7 +17,9 @@ V3dTcatParameters = typing.TypedDict('V3dTcatParameters', {
|
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["3dTcat"],
|
|
18
18
|
"rlt": typing.NotRequired[typing.Literal["", "+", "++"] | None],
|
|
19
19
|
"in_files": InputPathType,
|
|
20
|
+
"out_file": typing.NotRequired[str | None],
|
|
20
21
|
"outputtype": typing.NotRequired[typing.Literal["NIFTI", "AFNI", "NIFTI_GZ"] | None],
|
|
22
|
+
"num_threads": typing.NotRequired[int | None],
|
|
21
23
|
"verbose": bool,
|
|
22
24
|
})
|
|
23
25
|
|
|
@@ -62,14 +64,14 @@ class V3dTcatOutputs(typing.NamedTuple):
|
|
|
62
64
|
"""Output root folder. This is the root folder for all outputs."""
|
|
63
65
|
out_file: OutputPathType
|
|
64
66
|
"""Output image file name."""
|
|
65
|
-
out_file_: OutputPathType
|
|
66
|
-
"""Output file."""
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
def v_3d_tcat_params(
|
|
70
70
|
in_files: InputPathType,
|
|
71
71
|
rlt: typing.Literal["", "+", "++"] | None = None,
|
|
72
|
+
out_file: str | None = None,
|
|
72
73
|
outputtype: typing.Literal["NIFTI", "AFNI", "NIFTI_GZ"] | None = None,
|
|
74
|
+
num_threads: int | None = None,
|
|
73
75
|
verbose: bool = False,
|
|
74
76
|
) -> V3dTcatParameters:
|
|
75
77
|
"""
|
|
@@ -82,7 +84,9 @@ def v_3d_tcat_params(
|
|
|
82
84
|
least squares fit of 'a+b*t' to each voxel time series. option -rlt+\
|
|
83
85
|
adds dataset mean back in. option -rlt++ adds overall mean of all\
|
|
84
86
|
dataset timeseries back in.
|
|
87
|
+
out_file: Output image file name.
|
|
85
88
|
outputtype: 'nifti' or 'afni' or 'nifti_gz'. Afni output filetype.
|
|
89
|
+
num_threads: Set number of threads.
|
|
86
90
|
verbose: Print out some verbose output as the program.
|
|
87
91
|
Returns:
|
|
88
92
|
Parameter dictionary
|
|
@@ -94,8 +98,12 @@ def v_3d_tcat_params(
|
|
|
94
98
|
}
|
|
95
99
|
if rlt is not None:
|
|
96
100
|
params["rlt"] = rlt
|
|
101
|
+
if out_file is not None:
|
|
102
|
+
params["out_file"] = out_file
|
|
97
103
|
if outputtype is not None:
|
|
98
104
|
params["outputtype"] = outputtype
|
|
105
|
+
if num_threads is not None:
|
|
106
|
+
params["num_threads"] = num_threads
|
|
99
107
|
return params
|
|
100
108
|
|
|
101
109
|
|
|
@@ -119,9 +127,15 @@ def v_3d_tcat_cargs(
|
|
|
119
127
|
"-rlt",
|
|
120
128
|
params.get("rlt") + execution.input_file(params.get("in_files"))
|
|
121
129
|
])
|
|
122
|
-
|
|
130
|
+
if params.get("out_file") is not None:
|
|
131
|
+
cargs.extend([
|
|
132
|
+
"-prefix",
|
|
133
|
+
params.get("out_file")
|
|
134
|
+
])
|
|
123
135
|
if params.get("outputtype") is not None:
|
|
124
136
|
cargs.append(params.get("outputtype"))
|
|
137
|
+
if params.get("num_threads") is not None:
|
|
138
|
+
cargs.append(str(params.get("num_threads")))
|
|
125
139
|
if params.get("verbose"):
|
|
126
140
|
cargs.append("-verb")
|
|
127
141
|
return cargs
|
|
@@ -143,7 +157,6 @@ def v_3d_tcat_outputs(
|
|
|
143
157
|
ret = V3dTcatOutputs(
|
|
144
158
|
root=execution.output_file("."),
|
|
145
159
|
out_file=execution.output_file(pathlib.Path(params.get("in_files")).name + "_tcat"),
|
|
146
|
-
out_file_=execution.output_file("out_file"),
|
|
147
160
|
)
|
|
148
161
|
return ret
|
|
149
162
|
|
|
@@ -177,7 +190,9 @@ def v_3d_tcat_execute(
|
|
|
177
190
|
def v_3d_tcat(
|
|
178
191
|
in_files: InputPathType,
|
|
179
192
|
rlt: typing.Literal["", "+", "++"] | None = None,
|
|
193
|
+
out_file: str | None = None,
|
|
180
194
|
outputtype: typing.Literal["NIFTI", "AFNI", "NIFTI_GZ"] | None = None,
|
|
195
|
+
num_threads: int | None = None,
|
|
181
196
|
verbose: bool = False,
|
|
182
197
|
runner: Runner | None = None,
|
|
183
198
|
) -> V3dTcatOutputs:
|
|
@@ -197,7 +212,9 @@ def v_3d_tcat(
|
|
|
197
212
|
least squares fit of 'a+b*t' to each voxel time series. option -rlt+\
|
|
198
213
|
adds dataset mean back in. option -rlt++ adds overall mean of all\
|
|
199
214
|
dataset timeseries back in.
|
|
215
|
+
out_file: Output image file name.
|
|
200
216
|
outputtype: 'nifti' or 'afni' or 'nifti_gz'. Afni output filetype.
|
|
217
|
+
num_threads: Set number of threads.
|
|
201
218
|
verbose: Print out some verbose output as the program.
|
|
202
219
|
runner: Command runner.
|
|
203
220
|
Returns:
|
|
@@ -208,7 +225,9 @@ def v_3d_tcat(
|
|
|
208
225
|
params = v_3d_tcat_params(
|
|
209
226
|
rlt=rlt,
|
|
210
227
|
in_files=in_files,
|
|
228
|
+
out_file=out_file,
|
|
211
229
|
outputtype=outputtype,
|
|
230
|
+
num_threads=num_threads,
|
|
212
231
|
verbose=verbose,
|
|
213
232
|
)
|
|
214
233
|
return v_3d_tcat_execute(params, execution)
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_THREETO_RGB_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="66d33991278e852be51fc79205b5a24fbb651ea3.boutiques",
|
|
10
10
|
name="3dThreetoRGB",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -153,7 +153,6 @@ def v_3d_threeto_rgb_cargs(
|
|
|
153
153
|
if params.get("anat"):
|
|
154
154
|
cargs.append("-anat")
|
|
155
155
|
cargs.append(execution.input_file(params.get("input_dataset")))
|
|
156
|
-
cargs.append("[DATASET1]")
|
|
157
156
|
if params.get("input_dataset2") is not None:
|
|
158
157
|
cargs.append(execution.input_file(params.get("input_dataset2")))
|
|
159
158
|
if params.get("input_dataset3") is not None:
|