niwrap-afni 0.5.1__py3-none-any.whl → 0.5.3__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.3.dist-info}/METADATA +1 -1
- {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.3.dist-info}/RECORD +111 -111
- {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.3.dist-info}/WHEEL +0 -0
niwrap_afni/afni/v_3d_warp.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_WARP_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="435289d9d4e3a1653a6f8784ea94d9a8a3aaba92.boutiques",
|
|
10
10
|
name="3dWarp",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -16,6 +16,27 @@ V_3D_WARP_METADATA = Metadata(
|
|
|
16
16
|
V3dWarpParameters = typing.TypedDict('V3dWarpParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["3dWarp"],
|
|
18
18
|
"dataset": str,
|
|
19
|
+
"matvec_in2out": typing.NotRequired[InputPathType | None],
|
|
20
|
+
"matvec_out2in": typing.NotRequired[InputPathType | None],
|
|
21
|
+
"tta2mni": bool,
|
|
22
|
+
"mni2tta": bool,
|
|
23
|
+
"matparent": typing.NotRequired[str | None],
|
|
24
|
+
"card2oblique": typing.NotRequired[str | None],
|
|
25
|
+
"oblique_parent": typing.NotRequired[str | None],
|
|
26
|
+
"deoblique": bool,
|
|
27
|
+
"oblique2card": bool,
|
|
28
|
+
"disp_obl_xform_only": bool,
|
|
29
|
+
"linear": bool,
|
|
30
|
+
"cubic": bool,
|
|
31
|
+
"NN": bool,
|
|
32
|
+
"quintic": bool,
|
|
33
|
+
"wsinc5": bool,
|
|
34
|
+
"fsl_matvec": bool,
|
|
35
|
+
"newgrid": typing.NotRequired[float | None],
|
|
36
|
+
"gridset": typing.NotRequired[str | None],
|
|
37
|
+
"zpad": typing.NotRequired[float | None],
|
|
38
|
+
"verb": bool,
|
|
39
|
+
"prefix": typing.NotRequired[str | None],
|
|
19
40
|
})
|
|
20
41
|
|
|
21
42
|
|
|
@@ -60,19 +81,96 @@ class V3dWarpOutputs(typing.NamedTuple):
|
|
|
60
81
|
|
|
61
82
|
def v_3d_warp_params(
|
|
62
83
|
dataset: str,
|
|
84
|
+
matvec_in2out: InputPathType | None = None,
|
|
85
|
+
matvec_out2in: InputPathType | None = None,
|
|
86
|
+
tta2mni: bool = False,
|
|
87
|
+
mni2tta: bool = False,
|
|
88
|
+
matparent: str | None = None,
|
|
89
|
+
card2oblique: str | None = None,
|
|
90
|
+
oblique_parent: str | None = None,
|
|
91
|
+
deoblique: bool = False,
|
|
92
|
+
oblique2card: bool = False,
|
|
93
|
+
disp_obl_xform_only: bool = False,
|
|
94
|
+
linear: bool = False,
|
|
95
|
+
cubic: bool = False,
|
|
96
|
+
nn: bool = False,
|
|
97
|
+
quintic: bool = False,
|
|
98
|
+
wsinc5: bool = False,
|
|
99
|
+
fsl_matvec: bool = False,
|
|
100
|
+
newgrid: float | None = None,
|
|
101
|
+
gridset: str | None = None,
|
|
102
|
+
zpad: float | None = None,
|
|
103
|
+
verb: bool = False,
|
|
104
|
+
prefix: str | None = None,
|
|
63
105
|
) -> V3dWarpParameters:
|
|
64
106
|
"""
|
|
65
107
|
Build parameters.
|
|
66
108
|
|
|
67
109
|
Args:
|
|
68
110
|
dataset: Input dataset to be warped.
|
|
111
|
+
matvec_in2out: Read a 3x4 affine transform matrix+vector from file.
|
|
112
|
+
matvec_out2in: Read a 3x4 affine transform matrix+vector from file.
|
|
113
|
+
tta2mni: Transform a dataset in Talairach-Tournoux Atlas coordinates to\
|
|
114
|
+
MNI-152 coordinates.
|
|
115
|
+
mni2tta: Transform a dataset in MNI-152 coordinates to\
|
|
116
|
+
Talairach-Tournoux Atlas coordinates.
|
|
117
|
+
matparent: Read in the matrix from WARPDRIVE_MATVEC_* attributes in the\
|
|
118
|
+
header of dataset.
|
|
119
|
+
card2oblique: Make cardinal dataset oblique to match oblique dataset.
|
|
120
|
+
oblique_parent: Make cardinal dataset oblique to match oblique dataset.
|
|
121
|
+
deoblique: Transform an oblique dataset to a cardinal dataset.
|
|
122
|
+
oblique2card: Transform an oblique dataset to a cardinal dataset.
|
|
123
|
+
disp_obl_xform_only: Display the obliquity transform matrix.
|
|
124
|
+
linear: Use linear interpolation.
|
|
125
|
+
cubic: Use cubic interpolation.
|
|
126
|
+
nn: Use nearest neighbor interpolation.
|
|
127
|
+
quintic: Use quintic interpolation.
|
|
128
|
+
wsinc5: Use wsinc5 interpolation.
|
|
129
|
+
fsl_matvec: Indicates that the matrix file uses FSL ordered coordinates\
|
|
130
|
+
('LPI').
|
|
131
|
+
newgrid: Compute new dataset on a new 3D grid, with specified spacing.
|
|
132
|
+
gridset: Compute new dataset on the same grid as another dataset.
|
|
133
|
+
zpad: Pad input dataset with specified planes of zeros on all sides\
|
|
134
|
+
before transformation.
|
|
135
|
+
verb: Print out some information along the way.
|
|
136
|
+
prefix: Set the prefix of the output dataset.
|
|
69
137
|
Returns:
|
|
70
138
|
Parameter dictionary
|
|
71
139
|
"""
|
|
72
140
|
params = {
|
|
73
141
|
"__STYXTYPE__": "3dWarp",
|
|
74
142
|
"dataset": dataset,
|
|
143
|
+
"tta2mni": tta2mni,
|
|
144
|
+
"mni2tta": mni2tta,
|
|
145
|
+
"deoblique": deoblique,
|
|
146
|
+
"oblique2card": oblique2card,
|
|
147
|
+
"disp_obl_xform_only": disp_obl_xform_only,
|
|
148
|
+
"linear": linear,
|
|
149
|
+
"cubic": cubic,
|
|
150
|
+
"NN": nn,
|
|
151
|
+
"quintic": quintic,
|
|
152
|
+
"wsinc5": wsinc5,
|
|
153
|
+
"fsl_matvec": fsl_matvec,
|
|
154
|
+
"verb": verb,
|
|
75
155
|
}
|
|
156
|
+
if matvec_in2out is not None:
|
|
157
|
+
params["matvec_in2out"] = matvec_in2out
|
|
158
|
+
if matvec_out2in is not None:
|
|
159
|
+
params["matvec_out2in"] = matvec_out2in
|
|
160
|
+
if matparent is not None:
|
|
161
|
+
params["matparent"] = matparent
|
|
162
|
+
if card2oblique is not None:
|
|
163
|
+
params["card2oblique"] = card2oblique
|
|
164
|
+
if oblique_parent is not None:
|
|
165
|
+
params["oblique_parent"] = oblique_parent
|
|
166
|
+
if newgrid is not None:
|
|
167
|
+
params["newgrid"] = newgrid
|
|
168
|
+
if gridset is not None:
|
|
169
|
+
params["gridset"] = gridset
|
|
170
|
+
if zpad is not None:
|
|
171
|
+
params["zpad"] = zpad
|
|
172
|
+
if prefix is not None:
|
|
173
|
+
params["prefix"] = prefix
|
|
76
174
|
return params
|
|
77
175
|
|
|
78
176
|
|
|
@@ -91,8 +189,76 @@ def v_3d_warp_cargs(
|
|
|
91
189
|
"""
|
|
92
190
|
cargs = []
|
|
93
191
|
cargs.append("3dWarp")
|
|
94
|
-
cargs.append("[OPTIONS]")
|
|
95
192
|
cargs.append(params.get("dataset"))
|
|
193
|
+
if params.get("matvec_in2out") is not None:
|
|
194
|
+
cargs.extend([
|
|
195
|
+
"-matvec_in2out",
|
|
196
|
+
execution.input_file(params.get("matvec_in2out"))
|
|
197
|
+
])
|
|
198
|
+
if params.get("matvec_out2in") is not None:
|
|
199
|
+
cargs.extend([
|
|
200
|
+
"-matvec_out2in",
|
|
201
|
+
execution.input_file(params.get("matvec_out2in"))
|
|
202
|
+
])
|
|
203
|
+
if params.get("tta2mni"):
|
|
204
|
+
cargs.append("-tta2mni")
|
|
205
|
+
if params.get("mni2tta"):
|
|
206
|
+
cargs.append("-mni2tta")
|
|
207
|
+
if params.get("matparent") is not None:
|
|
208
|
+
cargs.extend([
|
|
209
|
+
"-matparent",
|
|
210
|
+
params.get("matparent")
|
|
211
|
+
])
|
|
212
|
+
if params.get("card2oblique") is not None:
|
|
213
|
+
cargs.extend([
|
|
214
|
+
"-card2oblique",
|
|
215
|
+
params.get("card2oblique")
|
|
216
|
+
])
|
|
217
|
+
if params.get("oblique_parent") is not None:
|
|
218
|
+
cargs.extend([
|
|
219
|
+
"-oblique_parent",
|
|
220
|
+
params.get("oblique_parent")
|
|
221
|
+
])
|
|
222
|
+
if params.get("deoblique"):
|
|
223
|
+
cargs.append("-deoblique")
|
|
224
|
+
if params.get("oblique2card"):
|
|
225
|
+
cargs.append("-oblique2card")
|
|
226
|
+
if params.get("disp_obl_xform_only"):
|
|
227
|
+
cargs.append("-disp_obl_xform_only")
|
|
228
|
+
if params.get("linear"):
|
|
229
|
+
cargs.append("-linear")
|
|
230
|
+
if params.get("cubic"):
|
|
231
|
+
cargs.append("-cubic")
|
|
232
|
+
if params.get("NN"):
|
|
233
|
+
cargs.append("-NN")
|
|
234
|
+
if params.get("quintic"):
|
|
235
|
+
cargs.append("-quintic")
|
|
236
|
+
if params.get("wsinc5"):
|
|
237
|
+
cargs.append("-wsinc5")
|
|
238
|
+
if params.get("fsl_matvec"):
|
|
239
|
+
cargs.append("-fsl_matvec")
|
|
240
|
+
if params.get("newgrid") is not None:
|
|
241
|
+
cargs.extend([
|
|
242
|
+
"-newgrid",
|
|
243
|
+
str(params.get("newgrid"))
|
|
244
|
+
])
|
|
245
|
+
if params.get("gridset") is not None:
|
|
246
|
+
cargs.extend([
|
|
247
|
+
"-gridset",
|
|
248
|
+
params.get("gridset")
|
|
249
|
+
])
|
|
250
|
+
if params.get("zpad") is not None:
|
|
251
|
+
cargs.extend([
|
|
252
|
+
"-zpad",
|
|
253
|
+
str(params.get("zpad"))
|
|
254
|
+
])
|
|
255
|
+
if params.get("verb"):
|
|
256
|
+
cargs.append("-verb")
|
|
257
|
+
if params.get("prefix") is not None:
|
|
258
|
+
cargs.extend([
|
|
259
|
+
"-prefix",
|
|
260
|
+
params.get("prefix")
|
|
261
|
+
])
|
|
96
262
|
return cargs
|
|
97
263
|
|
|
98
264
|
|
|
@@ -141,6 +307,27 @@ def v_3d_warp_execute(
|
|
|
141
307
|
|
|
142
308
|
def v_3d_warp(
|
|
143
309
|
dataset: str,
|
|
310
|
+
matvec_in2out: InputPathType | None = None,
|
|
311
|
+
matvec_out2in: InputPathType | None = None,
|
|
312
|
+
tta2mni: bool = False,
|
|
313
|
+
mni2tta: bool = False,
|
|
314
|
+
matparent: str | None = None,
|
|
315
|
+
card2oblique: str | None = None,
|
|
316
|
+
oblique_parent: str | None = None,
|
|
317
|
+
deoblique: bool = False,
|
|
318
|
+
oblique2card: bool = False,
|
|
319
|
+
disp_obl_xform_only: bool = False,
|
|
320
|
+
linear: bool = False,
|
|
321
|
+
cubic: bool = False,
|
|
322
|
+
nn: bool = False,
|
|
323
|
+
quintic: bool = False,
|
|
324
|
+
wsinc5: bool = False,
|
|
325
|
+
fsl_matvec: bool = False,
|
|
326
|
+
newgrid: float | None = None,
|
|
327
|
+
gridset: str | None = None,
|
|
328
|
+
zpad: float | None = None,
|
|
329
|
+
verb: bool = False,
|
|
330
|
+
prefix: str | None = None,
|
|
144
331
|
runner: Runner | None = None,
|
|
145
332
|
) -> V3dWarpOutputs:
|
|
146
333
|
"""
|
|
@@ -152,6 +339,32 @@ def v_3d_warp(
|
|
|
152
339
|
|
|
153
340
|
Args:
|
|
154
341
|
dataset: Input dataset to be warped.
|
|
342
|
+
matvec_in2out: Read a 3x4 affine transform matrix+vector from file.
|
|
343
|
+
matvec_out2in: Read a 3x4 affine transform matrix+vector from file.
|
|
344
|
+
tta2mni: Transform a dataset in Talairach-Tournoux Atlas coordinates to\
|
|
345
|
+
MNI-152 coordinates.
|
|
346
|
+
mni2tta: Transform a dataset in MNI-152 coordinates to\
|
|
347
|
+
Talairach-Tournoux Atlas coordinates.
|
|
348
|
+
matparent: Read in the matrix from WARPDRIVE_MATVEC_* attributes in the\
|
|
349
|
+
header of dataset.
|
|
350
|
+
card2oblique: Make cardinal dataset oblique to match oblique dataset.
|
|
351
|
+
oblique_parent: Make cardinal dataset oblique to match oblique dataset.
|
|
352
|
+
deoblique: Transform an oblique dataset to a cardinal dataset.
|
|
353
|
+
oblique2card: Transform an oblique dataset to a cardinal dataset.
|
|
354
|
+
disp_obl_xform_only: Display the obliquity transform matrix.
|
|
355
|
+
linear: Use linear interpolation.
|
|
356
|
+
cubic: Use cubic interpolation.
|
|
357
|
+
nn: Use nearest neighbor interpolation.
|
|
358
|
+
quintic: Use quintic interpolation.
|
|
359
|
+
wsinc5: Use wsinc5 interpolation.
|
|
360
|
+
fsl_matvec: Indicates that the matrix file uses FSL ordered coordinates\
|
|
361
|
+
('LPI').
|
|
362
|
+
newgrid: Compute new dataset on a new 3D grid, with specified spacing.
|
|
363
|
+
gridset: Compute new dataset on the same grid as another dataset.
|
|
364
|
+
zpad: Pad input dataset with specified planes of zeros on all sides\
|
|
365
|
+
before transformation.
|
|
366
|
+
verb: Print out some information along the way.
|
|
367
|
+
prefix: Set the prefix of the output dataset.
|
|
155
368
|
runner: Command runner.
|
|
156
369
|
Returns:
|
|
157
370
|
NamedTuple of outputs (described in `V3dWarpOutputs`).
|
|
@@ -160,6 +373,27 @@ def v_3d_warp(
|
|
|
160
373
|
execution = runner.start_execution(V_3D_WARP_METADATA)
|
|
161
374
|
params = v_3d_warp_params(
|
|
162
375
|
dataset=dataset,
|
|
376
|
+
matvec_in2out=matvec_in2out,
|
|
377
|
+
matvec_out2in=matvec_out2in,
|
|
378
|
+
tta2mni=tta2mni,
|
|
379
|
+
mni2tta=mni2tta,
|
|
380
|
+
matparent=matparent,
|
|
381
|
+
card2oblique=card2oblique,
|
|
382
|
+
oblique_parent=oblique_parent,
|
|
383
|
+
deoblique=deoblique,
|
|
384
|
+
oblique2card=oblique2card,
|
|
385
|
+
disp_obl_xform_only=disp_obl_xform_only,
|
|
386
|
+
linear=linear,
|
|
387
|
+
cubic=cubic,
|
|
388
|
+
nn=nn,
|
|
389
|
+
quintic=quintic,
|
|
390
|
+
wsinc5=wsinc5,
|
|
391
|
+
fsl_matvec=fsl_matvec,
|
|
392
|
+
newgrid=newgrid,
|
|
393
|
+
gridset=gridset,
|
|
394
|
+
zpad=zpad,
|
|
395
|
+
verb=verb,
|
|
396
|
+
prefix=prefix,
|
|
163
397
|
)
|
|
164
398
|
return v_3d_warp_execute(params, execution)
|
|
165
399
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3D_WILCOXON_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="ab0873d1df66a8478516e2a9302c8e42a90d10ec.boutiques",
|
|
10
10
|
name="3dWilcoxon",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -125,12 +125,14 @@ def v_3d_wilcoxon_cargs(
|
|
|
125
125
|
"-voxel",
|
|
126
126
|
str(params.get("voxel"))
|
|
127
127
|
])
|
|
128
|
-
cargs.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
cargs.
|
|
133
|
-
|
|
128
|
+
cargs.extend([
|
|
129
|
+
"-dset 1",
|
|
130
|
+
*[execution.input_file(f) for f in params.get("dset1_x")]
|
|
131
|
+
])
|
|
132
|
+
cargs.extend([
|
|
133
|
+
"-dset 2",
|
|
134
|
+
*[execution.input_file(f) for f in params.get("dset2_y")]
|
|
135
|
+
])
|
|
134
136
|
cargs.extend([
|
|
135
137
|
"-out",
|
|
136
138
|
params.get("output_prefix")
|
niwrap_afni/afni/v_3dbucket.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3DBUCKET_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="24263e7460b92cc3d7edf73c1101058593a99f03.boutiques",
|
|
10
10
|
name="3dbucket",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -16,6 +16,7 @@ V_3DBUCKET_METADATA = Metadata(
|
|
|
16
16
|
V3dbucketParameters = typing.TypedDict('V3dbucketParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["3dbucket"],
|
|
18
18
|
"prefix": typing.NotRequired[str | None],
|
|
19
|
+
"output": typing.NotRequired[str | None],
|
|
19
20
|
"session": typing.NotRequired[str | None],
|
|
20
21
|
"glueto": typing.NotRequired[str | None],
|
|
21
22
|
"aglueto": typing.NotRequired[str | None],
|
|
@@ -69,6 +70,7 @@ class V3dbucketOutputs(typing.NamedTuple):
|
|
|
69
70
|
def v_3dbucket_params(
|
|
70
71
|
input_files: list[str],
|
|
71
72
|
prefix: str | None = None,
|
|
73
|
+
output: str | None = None,
|
|
72
74
|
session: str | None = None,
|
|
73
75
|
glueto: str | None = None,
|
|
74
76
|
aglueto: str | None = None,
|
|
@@ -83,6 +85,7 @@ def v_3dbucket_params(
|
|
|
83
85
|
Args:
|
|
84
86
|
input_files: Input datasets with optional sub-brick selection.
|
|
85
87
|
prefix: Use 'pname' for the output dataset prefix name.
|
|
88
|
+
output: Use 'pname' for the output dataset prefix name.
|
|
86
89
|
session: Use 'dir' for the output dataset session directory.\
|
|
87
90
|
[default='./'=current working directory].
|
|
88
91
|
glueto: Append bricks to the end of the 'fname' dataset.
|
|
@@ -106,6 +109,8 @@ def v_3dbucket_params(
|
|
|
106
109
|
}
|
|
107
110
|
if prefix is not None:
|
|
108
111
|
params["prefix"] = prefix
|
|
112
|
+
if output is not None:
|
|
113
|
+
params["output"] = output
|
|
109
114
|
if session is not None:
|
|
110
115
|
params["session"] = session
|
|
111
116
|
if glueto is not None:
|
|
@@ -135,6 +140,11 @@ def v_3dbucket_cargs(
|
|
|
135
140
|
"-prefix",
|
|
136
141
|
params.get("prefix")
|
|
137
142
|
])
|
|
143
|
+
if params.get("output") is not None:
|
|
144
|
+
cargs.extend([
|
|
145
|
+
"-output",
|
|
146
|
+
params.get("output")
|
|
147
|
+
])
|
|
138
148
|
if params.get("session") is not None:
|
|
139
149
|
cargs.extend([
|
|
140
150
|
"-session",
|
|
@@ -208,6 +218,7 @@ def v_3dbucket_execute(
|
|
|
208
218
|
def v_3dbucket(
|
|
209
219
|
input_files: list[str],
|
|
210
220
|
prefix: str | None = None,
|
|
221
|
+
output: str | None = None,
|
|
211
222
|
session: str | None = None,
|
|
212
223
|
glueto: str | None = None,
|
|
213
224
|
aglueto: str | None = None,
|
|
@@ -227,6 +238,7 @@ def v_3dbucket(
|
|
|
227
238
|
Args:
|
|
228
239
|
input_files: Input datasets with optional sub-brick selection.
|
|
229
240
|
prefix: Use 'pname' for the output dataset prefix name.
|
|
241
|
+
output: Use 'pname' for the output dataset prefix name.
|
|
230
242
|
session: Use 'dir' for the output dataset session directory.\
|
|
231
243
|
[default='./'=current working directory].
|
|
232
244
|
glueto: Append bricks to the end of the 'fname' dataset.
|
|
@@ -245,6 +257,7 @@ def v_3dbucket(
|
|
|
245
257
|
execution = runner.start_execution(V_3DBUCKET_METADATA)
|
|
246
258
|
params = v_3dbucket_params(
|
|
247
259
|
prefix=prefix,
|
|
260
|
+
output=output,
|
|
248
261
|
session=session,
|
|
249
262
|
glueto=glueto,
|
|
250
263
|
aglueto=aglueto,
|
niwrap_afni/afni/v_3dcalc.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3DCALC_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="8562822f45d27f4c091ec9137e9dfa4943f96f87.boutiques",
|
|
10
10
|
name="3dcalc",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
niwrap_afni/afni/v_3dcopy.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3DCOPY_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="cf613edf42ba1934d2ac712d37faeb09217cdd61.boutiques",
|
|
10
10
|
name="3dcopy",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -17,6 +17,9 @@ V3dcopyParameters = typing.TypedDict('V3dcopyParameters', {
|
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["3dcopy"],
|
|
18
18
|
"verbose": bool,
|
|
19
19
|
"denote": bool,
|
|
20
|
+
"old_prefix": str,
|
|
21
|
+
"view": typing.NotRequired[str | None],
|
|
22
|
+
"new_prefix": str,
|
|
20
23
|
})
|
|
21
24
|
|
|
22
25
|
|
|
@@ -60,15 +63,22 @@ class V3dcopyOutputs(typing.NamedTuple):
|
|
|
60
63
|
|
|
61
64
|
|
|
62
65
|
def v_3dcopy_params(
|
|
66
|
+
old_prefix: str,
|
|
67
|
+
new_prefix: str,
|
|
63
68
|
verbose: bool = False,
|
|
64
69
|
denote: bool = False,
|
|
70
|
+
view: str | None = None,
|
|
65
71
|
) -> V3dcopyParameters:
|
|
66
72
|
"""
|
|
67
73
|
Build parameters.
|
|
68
74
|
|
|
69
75
|
Args:
|
|
76
|
+
old_prefix: Old dataset prefix (and view if specific dataset view is to\
|
|
77
|
+
be copied).
|
|
78
|
+
new_prefix: New dataset prefix or directory path.
|
|
70
79
|
verbose: Print progress reports.
|
|
71
80
|
denote: Remove any Notes from the file.
|
|
81
|
+
view: Specified view (orig, acpc, tlrc).
|
|
72
82
|
Returns:
|
|
73
83
|
Parameter dictionary
|
|
74
84
|
"""
|
|
@@ -76,7 +86,11 @@ def v_3dcopy_params(
|
|
|
76
86
|
"__STYXTYPE__": "3dcopy",
|
|
77
87
|
"verbose": verbose,
|
|
78
88
|
"denote": denote,
|
|
89
|
+
"old_prefix": old_prefix,
|
|
90
|
+
"new_prefix": new_prefix,
|
|
79
91
|
}
|
|
92
|
+
if view is not None:
|
|
93
|
+
params["view"] = view
|
|
80
94
|
return params
|
|
81
95
|
|
|
82
96
|
|
|
@@ -99,8 +113,12 @@ def v_3dcopy_cargs(
|
|
|
99
113
|
cargs.append("-verb")
|
|
100
114
|
if params.get("denote"):
|
|
101
115
|
cargs.append("-denote")
|
|
102
|
-
|
|
103
|
-
|
|
116
|
+
if params.get("view") is not None:
|
|
117
|
+
cargs.extend([
|
|
118
|
+
"+",
|
|
119
|
+
params.get("old_prefix") + params.get("view")
|
|
120
|
+
])
|
|
121
|
+
cargs.append(params.get("new_prefix"))
|
|
104
122
|
return cargs
|
|
105
123
|
|
|
106
124
|
|
|
@@ -148,8 +166,11 @@ def v_3dcopy_execute(
|
|
|
148
166
|
|
|
149
167
|
|
|
150
168
|
def v_3dcopy(
|
|
169
|
+
old_prefix: str,
|
|
170
|
+
new_prefix: str,
|
|
151
171
|
verbose: bool = False,
|
|
152
172
|
denote: bool = False,
|
|
173
|
+
view: str | None = None,
|
|
153
174
|
runner: Runner | None = None,
|
|
154
175
|
) -> V3dcopyOutputs:
|
|
155
176
|
"""
|
|
@@ -160,8 +181,12 @@ def v_3dcopy(
|
|
|
160
181
|
URL: https://afni.nimh.nih.gov/
|
|
161
182
|
|
|
162
183
|
Args:
|
|
184
|
+
old_prefix: Old dataset prefix (and view if specific dataset view is to\
|
|
185
|
+
be copied).
|
|
186
|
+
new_prefix: New dataset prefix or directory path.
|
|
163
187
|
verbose: Print progress reports.
|
|
164
188
|
denote: Remove any Notes from the file.
|
|
189
|
+
view: Specified view (orig, acpc, tlrc).
|
|
165
190
|
runner: Command runner.
|
|
166
191
|
Returns:
|
|
167
192
|
NamedTuple of outputs (described in `V3dcopyOutputs`).
|
|
@@ -171,6 +196,9 @@ def v_3dcopy(
|
|
|
171
196
|
params = v_3dcopy_params(
|
|
172
197
|
verbose=verbose,
|
|
173
198
|
denote=denote,
|
|
199
|
+
old_prefix=old_prefix,
|
|
200
|
+
view=view,
|
|
201
|
+
new_prefix=new_prefix,
|
|
174
202
|
)
|
|
175
203
|
return v_3dcopy_execute(params, execution)
|
|
176
204
|
|
niwrap_afni/afni/v_3dmask_svd.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V_3DMASK_SVD_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="eecbee0a49ddb248abb1a5cc5b60e995c855df15.boutiques",
|
|
10
10
|
name="3dmaskSVD",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -16,6 +16,14 @@ V_3DMASK_SVD_METADATA = Metadata(
|
|
|
16
16
|
V3dmaskSvdParameters = typing.TypedDict('V3dmaskSvdParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["3dmaskSVD"],
|
|
18
18
|
"input_dataset": InputPathType,
|
|
19
|
+
"vnorm": bool,
|
|
20
|
+
"sval": typing.NotRequired[float | None],
|
|
21
|
+
"mask_file": typing.NotRequired[InputPathType | None],
|
|
22
|
+
"automask": bool,
|
|
23
|
+
"polort": typing.NotRequired[float | None],
|
|
24
|
+
"bandpass": typing.NotRequired[list[str] | None],
|
|
25
|
+
"ort": typing.NotRequired[list[InputPathType] | None],
|
|
26
|
+
"alt_input": typing.NotRequired[InputPathType | None],
|
|
19
27
|
})
|
|
20
28
|
|
|
21
29
|
|
|
@@ -63,19 +71,50 @@ class V3dmaskSvdOutputs(typing.NamedTuple):
|
|
|
63
71
|
|
|
64
72
|
def v_3dmask_svd_params(
|
|
65
73
|
input_dataset: InputPathType,
|
|
74
|
+
vnorm: bool = False,
|
|
75
|
+
sval: float | None = None,
|
|
76
|
+
mask_file: InputPathType | None = None,
|
|
77
|
+
automask: bool = False,
|
|
78
|
+
polort: float | None = None,
|
|
79
|
+
bandpass: list[str] | None = None,
|
|
80
|
+
ort: list[InputPathType] | None = None,
|
|
81
|
+
alt_input: InputPathType | None = None,
|
|
66
82
|
) -> V3dmaskSvdParameters:
|
|
67
83
|
"""
|
|
68
84
|
Build parameters.
|
|
69
85
|
|
|
70
86
|
Args:
|
|
71
87
|
input_dataset: Input dataset.
|
|
88
|
+
vnorm: L2 normalize all time series before SVD.
|
|
89
|
+
sval: Output singular vectors 0 .. a (default a=0 = first one only).
|
|
90
|
+
mask_file: Define the mask (default is entire dataset).
|
|
91
|
+
automask: Automatic mask definition.
|
|
92
|
+
polort: Remove polynomial trend (default 0 if not specified).
|
|
93
|
+
bandpass: Bandpass filter (mutually exclusive with -polort).
|
|
94
|
+
ort: Time series to remove from the data before SVD-ization. You can\
|
|
95
|
+
give more than 1 '-ort' option. 'xx.1D' can contain more than 1 column.
|
|
96
|
+
alt_input: Alternative way to give the input dataset name.
|
|
72
97
|
Returns:
|
|
73
98
|
Parameter dictionary
|
|
74
99
|
"""
|
|
75
100
|
params = {
|
|
76
101
|
"__STYXTYPE__": "3dmaskSVD",
|
|
77
102
|
"input_dataset": input_dataset,
|
|
103
|
+
"vnorm": vnorm,
|
|
104
|
+
"automask": automask,
|
|
78
105
|
}
|
|
106
|
+
if sval is not None:
|
|
107
|
+
params["sval"] = sval
|
|
108
|
+
if mask_file is not None:
|
|
109
|
+
params["mask_file"] = mask_file
|
|
110
|
+
if polort is not None:
|
|
111
|
+
params["polort"] = polort
|
|
112
|
+
if bandpass is not None:
|
|
113
|
+
params["bandpass"] = bandpass
|
|
114
|
+
if ort is not None:
|
|
115
|
+
params["ort"] = ort
|
|
116
|
+
if alt_input is not None:
|
|
117
|
+
params["alt_input"] = alt_input
|
|
79
118
|
return params
|
|
80
119
|
|
|
81
120
|
|
|
@@ -94,8 +133,41 @@ def v_3dmask_svd_cargs(
|
|
|
94
133
|
"""
|
|
95
134
|
cargs = []
|
|
96
135
|
cargs.append("3dmaskSVD")
|
|
97
|
-
cargs.append("[OPTIONS]")
|
|
98
136
|
cargs.append(execution.input_file(params.get("input_dataset")))
|
|
137
|
+
if params.get("vnorm"):
|
|
138
|
+
cargs.append("-vnorm")
|
|
139
|
+
if params.get("sval") is not None:
|
|
140
|
+
cargs.extend([
|
|
141
|
+
"-sval",
|
|
142
|
+
str(params.get("sval"))
|
|
143
|
+
])
|
|
144
|
+
if params.get("mask_file") is not None:
|
|
145
|
+
cargs.extend([
|
|
146
|
+
"-mask",
|
|
147
|
+
execution.input_file(params.get("mask_file"))
|
|
148
|
+
])
|
|
149
|
+
if params.get("automask"):
|
|
150
|
+
cargs.append("-automask")
|
|
151
|
+
if params.get("polort") is not None:
|
|
152
|
+
cargs.extend([
|
|
153
|
+
"-polort",
|
|
154
|
+
str(params.get("polort"))
|
|
155
|
+
])
|
|
156
|
+
if params.get("bandpass") is not None:
|
|
157
|
+
cargs.extend([
|
|
158
|
+
"-bpass",
|
|
159
|
+
*params.get("bandpass")
|
|
160
|
+
])
|
|
161
|
+
if params.get("ort") is not None:
|
|
162
|
+
cargs.extend([
|
|
163
|
+
"-ort",
|
|
164
|
+
*[execution.input_file(f) for f in params.get("ort")]
|
|
165
|
+
])
|
|
166
|
+
if params.get("alt_input") is not None:
|
|
167
|
+
cargs.extend([
|
|
168
|
+
"-input",
|
|
169
|
+
execution.input_file(params.get("alt_input"))
|
|
170
|
+
])
|
|
99
171
|
return cargs
|
|
100
172
|
|
|
101
173
|
|
|
@@ -146,6 +218,14 @@ def v_3dmask_svd_execute(
|
|
|
146
218
|
|
|
147
219
|
def v_3dmask_svd(
|
|
148
220
|
input_dataset: InputPathType,
|
|
221
|
+
vnorm: bool = False,
|
|
222
|
+
sval: float | None = None,
|
|
223
|
+
mask_file: InputPathType | None = None,
|
|
224
|
+
automask: bool = False,
|
|
225
|
+
polort: float | None = None,
|
|
226
|
+
bandpass: list[str] | None = None,
|
|
227
|
+
ort: list[InputPathType] | None = None,
|
|
228
|
+
alt_input: InputPathType | None = None,
|
|
149
229
|
runner: Runner | None = None,
|
|
150
230
|
) -> V3dmaskSvdOutputs:
|
|
151
231
|
"""
|
|
@@ -158,6 +238,15 @@ def v_3dmask_svd(
|
|
|
158
238
|
|
|
159
239
|
Args:
|
|
160
240
|
input_dataset: Input dataset.
|
|
241
|
+
vnorm: L2 normalize all time series before SVD.
|
|
242
|
+
sval: Output singular vectors 0 .. a (default a=0 = first one only).
|
|
243
|
+
mask_file: Define the mask (default is entire dataset).
|
|
244
|
+
automask: Automatic mask definition.
|
|
245
|
+
polort: Remove polynomial trend (default 0 if not specified).
|
|
246
|
+
bandpass: Bandpass filter (mutually exclusive with -polort).
|
|
247
|
+
ort: Time series to remove from the data before SVD-ization. You can\
|
|
248
|
+
give more than 1 '-ort' option. 'xx.1D' can contain more than 1 column.
|
|
249
|
+
alt_input: Alternative way to give the input dataset name.
|
|
161
250
|
runner: Command runner.
|
|
162
251
|
Returns:
|
|
163
252
|
NamedTuple of outputs (described in `V3dmaskSvdOutputs`).
|
|
@@ -166,6 +255,14 @@ def v_3dmask_svd(
|
|
|
166
255
|
execution = runner.start_execution(V_3DMASK_SVD_METADATA)
|
|
167
256
|
params = v_3dmask_svd_params(
|
|
168
257
|
input_dataset=input_dataset,
|
|
258
|
+
vnorm=vnorm,
|
|
259
|
+
sval=sval,
|
|
260
|
+
mask_file=mask_file,
|
|
261
|
+
automask=automask,
|
|
262
|
+
polort=polort,
|
|
263
|
+
bandpass=bandpass,
|
|
264
|
+
ort=ort,
|
|
265
|
+
alt_input=alt_input,
|
|
169
266
|
)
|
|
170
267
|
return v_3dmask_svd_execute(params, execution)
|
|
171
268
|
|