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/rbox.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
RBOX_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="9fdf14ab8e16f325f5ea7e753f75ed7953ef61ba.boutiques",
|
|
10
10
|
name="rbox",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -17,8 +17,23 @@ RboxParameters = typing.TypedDict('RboxParameters', {
|
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["rbox"],
|
|
18
18
|
"number_points": str,
|
|
19
19
|
"dimension": typing.NotRequired[str | None],
|
|
20
|
-
"
|
|
20
|
+
"unit_cube": bool,
|
|
21
|
+
"unit_diamond": bool,
|
|
22
|
+
"spiral": bool,
|
|
23
|
+
"regular_polygon": bool,
|
|
24
|
+
"cospherical_points": bool,
|
|
25
|
+
"simplex_points": bool,
|
|
26
|
+
"simplex_plus_points": bool,
|
|
27
|
+
"add_point": typing.NotRequired[list[str] | None],
|
|
28
|
+
"lens_distribution": typing.NotRequired[str | None],
|
|
29
|
+
"random_within": bool,
|
|
30
|
+
"random_disk": typing.NotRequired[str | None],
|
|
21
31
|
"bounding_box": typing.NotRequired[float | None],
|
|
32
|
+
"homogeneous_coordinates": bool,
|
|
33
|
+
"remove_command_line": bool,
|
|
34
|
+
"time_seed": bool,
|
|
35
|
+
"integer_coordinates": bool,
|
|
36
|
+
"bounding_box_1": typing.NotRequired[float | None],
|
|
22
37
|
"offset": typing.NotRequired[float | None],
|
|
23
38
|
"user_seed": typing.NotRequired[float | None],
|
|
24
39
|
"mesh_lattice": typing.NotRequired[list[str] | None],
|
|
@@ -67,8 +82,23 @@ class RboxOutputs(typing.NamedTuple):
|
|
|
67
82
|
def rbox_params(
|
|
68
83
|
number_points: str,
|
|
69
84
|
dimension: str | None = None,
|
|
70
|
-
|
|
85
|
+
unit_cube: bool = False,
|
|
86
|
+
unit_diamond: bool = False,
|
|
87
|
+
spiral: bool = False,
|
|
88
|
+
regular_polygon: bool = False,
|
|
89
|
+
cospherical_points: bool = False,
|
|
90
|
+
simplex_points: bool = False,
|
|
91
|
+
simplex_plus_points: bool = False,
|
|
92
|
+
add_point: list[str] | None = None,
|
|
93
|
+
lens_distribution: str | None = None,
|
|
94
|
+
random_within: bool = False,
|
|
95
|
+
random_disk: str | None = None,
|
|
71
96
|
bounding_box: float | None = None,
|
|
97
|
+
homogeneous_coordinates: bool = False,
|
|
98
|
+
remove_command_line: bool = False,
|
|
99
|
+
time_seed: bool = False,
|
|
100
|
+
integer_coordinates: bool = False,
|
|
101
|
+
bounding_box_1: float | None = None,
|
|
72
102
|
offset: float | None = None,
|
|
73
103
|
user_seed: float | None = None,
|
|
74
104
|
mesh_lattice: list[str] | None = None,
|
|
@@ -80,8 +110,28 @@ def rbox_params(
|
|
|
80
110
|
number_points: Number of random points in cube, lens, spiral, sphere or\
|
|
81
111
|
grid.
|
|
82
112
|
dimension: Dimension (e.g., D3 for 3-d).
|
|
83
|
-
|
|
113
|
+
unit_cube: Add a unit cube to the output (optional: 'c G2.0' sets size).
|
|
114
|
+
unit_diamond: Add a unit diamond to the output (optional: 'd G2.0' sets\
|
|
115
|
+
size).
|
|
116
|
+
spiral: Generate a regular 3-d spiral.
|
|
117
|
+
regular_polygon: Generate a regular polygon (optional: 'r s Z1 G0.1'\
|
|
118
|
+
makes a cone).
|
|
119
|
+
cospherical_points: Generate cospherical points.
|
|
120
|
+
simplex_points: Generate random points in simplex, may use 'r' or 'Wn'.
|
|
121
|
+
simplex_plus_points: Same as 'x', plus simplex.
|
|
122
|
+
add_point: Add point [n,m,r] first, pads with 0.
|
|
123
|
+
lens_distribution: Lens distribution of radius n. Also 's', 'r', 'G',\
|
|
124
|
+
'W'.
|
|
125
|
+
random_within: Random distribution within 0.1 of the cube's or sphere's\
|
|
126
|
+
surface.
|
|
127
|
+
random_disk: Random points in a 0.5 disk projected to a sphere,\
|
|
128
|
+
optional gap size (e.g., 'Z0.5 s G0.6').
|
|
84
129
|
bounding_box: Bounding box coordinates, default 0.5.
|
|
130
|
+
homogeneous_coordinates: Output as homogeneous coordinates for cdd.
|
|
131
|
+
remove_command_line: Remove command line from the first line of output.
|
|
132
|
+
time_seed: Use time as the random number seed (default is command line).
|
|
133
|
+
integer_coordinates: Print integer coordinates, default 'Bn' is 1e+06.
|
|
134
|
+
bounding_box_1: Bounding box coordinates, default 0.5.
|
|
85
135
|
offset: Offset coordinates by n.
|
|
86
136
|
user_seed: Use n as the random number seed.
|
|
87
137
|
mesh_lattice: Lattice (Mesh) rotated by [n,-m,0], [m,n,0], [0,0,r], ...
|
|
@@ -91,12 +141,31 @@ def rbox_params(
|
|
|
91
141
|
params = {
|
|
92
142
|
"__STYXTYPE__": "rbox",
|
|
93
143
|
"number_points": number_points,
|
|
144
|
+
"unit_cube": unit_cube,
|
|
145
|
+
"unit_diamond": unit_diamond,
|
|
146
|
+
"spiral": spiral,
|
|
147
|
+
"regular_polygon": regular_polygon,
|
|
148
|
+
"cospherical_points": cospherical_points,
|
|
149
|
+
"simplex_points": simplex_points,
|
|
150
|
+
"simplex_plus_points": simplex_plus_points,
|
|
151
|
+
"random_within": random_within,
|
|
152
|
+
"homogeneous_coordinates": homogeneous_coordinates,
|
|
153
|
+
"remove_command_line": remove_command_line,
|
|
154
|
+
"time_seed": time_seed,
|
|
94
155
|
"integer_coordinates": integer_coordinates,
|
|
95
156
|
}
|
|
96
157
|
if dimension is not None:
|
|
97
158
|
params["dimension"] = dimension
|
|
159
|
+
if add_point is not None:
|
|
160
|
+
params["add_point"] = add_point
|
|
161
|
+
if lens_distribution is not None:
|
|
162
|
+
params["lens_distribution"] = lens_distribution
|
|
163
|
+
if random_disk is not None:
|
|
164
|
+
params["random_disk"] = random_disk
|
|
98
165
|
if bounding_box is not None:
|
|
99
166
|
params["bounding_box"] = bounding_box
|
|
167
|
+
if bounding_box_1 is not None:
|
|
168
|
+
params["bounding_box_1"] = bounding_box_1
|
|
100
169
|
if offset is not None:
|
|
101
170
|
params["offset"] = offset
|
|
102
171
|
if user_seed is not None:
|
|
@@ -124,13 +193,55 @@ def rbox_cargs(
|
|
|
124
193
|
cargs.append(params.get("number_points"))
|
|
125
194
|
if params.get("dimension") is not None:
|
|
126
195
|
cargs.append(params.get("dimension"))
|
|
127
|
-
if params.get("
|
|
128
|
-
cargs.append("
|
|
196
|
+
if params.get("unit_cube"):
|
|
197
|
+
cargs.append("c")
|
|
198
|
+
if params.get("unit_diamond"):
|
|
199
|
+
cargs.append("d")
|
|
200
|
+
if params.get("spiral"):
|
|
201
|
+
cargs.append("l")
|
|
202
|
+
if params.get("regular_polygon"):
|
|
203
|
+
cargs.append("r")
|
|
204
|
+
if params.get("cospherical_points"):
|
|
205
|
+
cargs.append("s")
|
|
206
|
+
if params.get("simplex_points"):
|
|
207
|
+
cargs.append("x")
|
|
208
|
+
if params.get("simplex_plus_points"):
|
|
209
|
+
cargs.append("y")
|
|
210
|
+
if params.get("add_point") is not None:
|
|
211
|
+
cargs.extend([
|
|
212
|
+
"P",
|
|
213
|
+
*params.get("add_point")
|
|
214
|
+
])
|
|
215
|
+
if params.get("lens_distribution") is not None:
|
|
216
|
+
cargs.extend([
|
|
217
|
+
"L",
|
|
218
|
+
params.get("lens_distribution")
|
|
219
|
+
])
|
|
220
|
+
if params.get("random_within"):
|
|
221
|
+
cargs.append("W")
|
|
222
|
+
if params.get("random_disk") is not None:
|
|
223
|
+
cargs.extend([
|
|
224
|
+
"Z",
|
|
225
|
+
params.get("random_disk")
|
|
226
|
+
])
|
|
129
227
|
if params.get("bounding_box") is not None:
|
|
130
228
|
cargs.extend([
|
|
131
229
|
"B",
|
|
132
230
|
str(params.get("bounding_box"))
|
|
133
231
|
])
|
|
232
|
+
if params.get("homogeneous_coordinates"):
|
|
233
|
+
cargs.append("h")
|
|
234
|
+
if params.get("remove_command_line"):
|
|
235
|
+
cargs.append("n")
|
|
236
|
+
if params.get("time_seed"):
|
|
237
|
+
cargs.append("t")
|
|
238
|
+
if params.get("integer_coordinates"):
|
|
239
|
+
cargs.append("z")
|
|
240
|
+
if params.get("bounding_box_1") is not None:
|
|
241
|
+
cargs.extend([
|
|
242
|
+
"B",
|
|
243
|
+
str(params.get("bounding_box_1"))
|
|
244
|
+
])
|
|
134
245
|
if params.get("offset") is not None:
|
|
135
246
|
cargs.extend([
|
|
136
247
|
"O",
|
|
@@ -195,8 +306,23 @@ def rbox_execute(
|
|
|
195
306
|
def rbox(
|
|
196
307
|
number_points: str,
|
|
197
308
|
dimension: str | None = None,
|
|
198
|
-
|
|
309
|
+
unit_cube: bool = False,
|
|
310
|
+
unit_diamond: bool = False,
|
|
311
|
+
spiral: bool = False,
|
|
312
|
+
regular_polygon: bool = False,
|
|
313
|
+
cospherical_points: bool = False,
|
|
314
|
+
simplex_points: bool = False,
|
|
315
|
+
simplex_plus_points: bool = False,
|
|
316
|
+
add_point: list[str] | None = None,
|
|
317
|
+
lens_distribution: str | None = None,
|
|
318
|
+
random_within: bool = False,
|
|
319
|
+
random_disk: str | None = None,
|
|
199
320
|
bounding_box: float | None = None,
|
|
321
|
+
homogeneous_coordinates: bool = False,
|
|
322
|
+
remove_command_line: bool = False,
|
|
323
|
+
time_seed: bool = False,
|
|
324
|
+
integer_coordinates: bool = False,
|
|
325
|
+
bounding_box_1: float | None = None,
|
|
200
326
|
offset: float | None = None,
|
|
201
327
|
user_seed: float | None = None,
|
|
202
328
|
mesh_lattice: list[str] | None = None,
|
|
@@ -213,8 +339,28 @@ def rbox(
|
|
|
213
339
|
number_points: Number of random points in cube, lens, spiral, sphere or\
|
|
214
340
|
grid.
|
|
215
341
|
dimension: Dimension (e.g., D3 for 3-d).
|
|
216
|
-
|
|
342
|
+
unit_cube: Add a unit cube to the output (optional: 'c G2.0' sets size).
|
|
343
|
+
unit_diamond: Add a unit diamond to the output (optional: 'd G2.0' sets\
|
|
344
|
+
size).
|
|
345
|
+
spiral: Generate a regular 3-d spiral.
|
|
346
|
+
regular_polygon: Generate a regular polygon (optional: 'r s Z1 G0.1'\
|
|
347
|
+
makes a cone).
|
|
348
|
+
cospherical_points: Generate cospherical points.
|
|
349
|
+
simplex_points: Generate random points in simplex, may use 'r' or 'Wn'.
|
|
350
|
+
simplex_plus_points: Same as 'x', plus simplex.
|
|
351
|
+
add_point: Add point [n,m,r] first, pads with 0.
|
|
352
|
+
lens_distribution: Lens distribution of radius n. Also 's', 'r', 'G',\
|
|
353
|
+
'W'.
|
|
354
|
+
random_within: Random distribution within 0.1 of the cube's or sphere's\
|
|
355
|
+
surface.
|
|
356
|
+
random_disk: Random points in a 0.5 disk projected to a sphere,\
|
|
357
|
+
optional gap size (e.g., 'Z0.5 s G0.6').
|
|
217
358
|
bounding_box: Bounding box coordinates, default 0.5.
|
|
359
|
+
homogeneous_coordinates: Output as homogeneous coordinates for cdd.
|
|
360
|
+
remove_command_line: Remove command line from the first line of output.
|
|
361
|
+
time_seed: Use time as the random number seed (default is command line).
|
|
362
|
+
integer_coordinates: Print integer coordinates, default 'Bn' is 1e+06.
|
|
363
|
+
bounding_box_1: Bounding box coordinates, default 0.5.
|
|
218
364
|
offset: Offset coordinates by n.
|
|
219
365
|
user_seed: Use n as the random number seed.
|
|
220
366
|
mesh_lattice: Lattice (Mesh) rotated by [n,-m,0], [m,n,0], [0,0,r], ...
|
|
@@ -227,8 +373,23 @@ def rbox(
|
|
|
227
373
|
params = rbox_params(
|
|
228
374
|
number_points=number_points,
|
|
229
375
|
dimension=dimension,
|
|
230
|
-
|
|
376
|
+
unit_cube=unit_cube,
|
|
377
|
+
unit_diamond=unit_diamond,
|
|
378
|
+
spiral=spiral,
|
|
379
|
+
regular_polygon=regular_polygon,
|
|
380
|
+
cospherical_points=cospherical_points,
|
|
381
|
+
simplex_points=simplex_points,
|
|
382
|
+
simplex_plus_points=simplex_plus_points,
|
|
383
|
+
add_point=add_point,
|
|
384
|
+
lens_distribution=lens_distribution,
|
|
385
|
+
random_within=random_within,
|
|
386
|
+
random_disk=random_disk,
|
|
231
387
|
bounding_box=bounding_box,
|
|
388
|
+
homogeneous_coordinates=homogeneous_coordinates,
|
|
389
|
+
remove_command_line=remove_command_line,
|
|
390
|
+
time_seed=time_seed,
|
|
391
|
+
integer_coordinates=integer_coordinates,
|
|
392
|
+
bounding_box_1=bounding_box_1,
|
|
232
393
|
offset=offset,
|
|
233
394
|
user_seed=user_seed,
|
|
234
395
|
mesh_lattice=mesh_lattice,
|
niwrap_afni/afni/samp_bias.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
SAMP_BIAS_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="e1325d010e905394733e9c7b189375c71f01d74b.boutiques",
|
|
10
10
|
name="SampBias",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -21,6 +21,7 @@ SampBiasParameters = typing.TypedDict('SampBiasParameters', {
|
|
|
21
21
|
"dlimit": typing.NotRequired[float | None],
|
|
22
22
|
"outfile": str,
|
|
23
23
|
"prefix": typing.NotRequired[str | None],
|
|
24
|
+
"segdo": typing.NotRequired[str | None],
|
|
24
25
|
})
|
|
25
26
|
|
|
26
27
|
|
|
@@ -75,6 +76,7 @@ def samp_bias_params(
|
|
|
75
76
|
plimit: float | None = None,
|
|
76
77
|
dlimit: float | None = None,
|
|
77
78
|
prefix: str | None = None,
|
|
79
|
+
segdo: str | None = None,
|
|
78
80
|
) -> SampBiasParameters:
|
|
79
81
|
"""
|
|
80
82
|
Build parameters.
|
|
@@ -86,6 +88,8 @@ def samp_bias_params(
|
|
|
86
88
|
plimit: Maximum length of path along surface in mm. Default is 50 mm.
|
|
87
89
|
dlimit: Maximum length of euclidean distance in mm. Default is 1000 mm.
|
|
88
90
|
prefix: Output results into a proper surface-based dataset.
|
|
91
|
+
segdo: Output a displayable object file that contains segments between\
|
|
92
|
+
paired nodes.
|
|
89
93
|
Returns:
|
|
90
94
|
Parameter dictionary
|
|
91
95
|
"""
|
|
@@ -101,6 +105,8 @@ def samp_bias_params(
|
|
|
101
105
|
params["dlimit"] = dlimit
|
|
102
106
|
if prefix is not None:
|
|
103
107
|
params["prefix"] = prefix
|
|
108
|
+
if segdo is not None:
|
|
109
|
+
params["segdo"] = segdo
|
|
104
110
|
return params
|
|
105
111
|
|
|
106
112
|
|
|
@@ -146,6 +152,11 @@ def samp_bias_cargs(
|
|
|
146
152
|
"-prefix",
|
|
147
153
|
params.get("prefix")
|
|
148
154
|
])
|
|
155
|
+
if params.get("segdo") is not None:
|
|
156
|
+
cargs.extend([
|
|
157
|
+
"-segdo",
|
|
158
|
+
params.get("segdo")
|
|
159
|
+
])
|
|
149
160
|
return cargs
|
|
150
161
|
|
|
151
162
|
|
|
@@ -202,6 +213,7 @@ def samp_bias(
|
|
|
202
213
|
plimit: float | None = None,
|
|
203
214
|
dlimit: float | None = None,
|
|
204
215
|
prefix: str | None = None,
|
|
216
|
+
segdo: str | None = None,
|
|
205
217
|
runner: Runner | None = None,
|
|
206
218
|
) -> SampBiasOutputs:
|
|
207
219
|
"""
|
|
@@ -219,6 +231,8 @@ def samp_bias(
|
|
|
219
231
|
plimit: Maximum length of path along surface in mm. Default is 50 mm.
|
|
220
232
|
dlimit: Maximum length of euclidean distance in mm. Default is 1000 mm.
|
|
221
233
|
prefix: Output results into a proper surface-based dataset.
|
|
234
|
+
segdo: Output a displayable object file that contains segments between\
|
|
235
|
+
paired nodes.
|
|
222
236
|
runner: Command runner.
|
|
223
237
|
Returns:
|
|
224
238
|
NamedTuple of outputs (described in `SampBiasOutputs`).
|
|
@@ -232,6 +246,7 @@ def samp_bias(
|
|
|
232
246
|
dlimit=dlimit,
|
|
233
247
|
outfile=outfile,
|
|
234
248
|
prefix=prefix,
|
|
249
|
+
segdo=segdo,
|
|
235
250
|
)
|
|
236
251
|
return samp_bias_execute(params, execution)
|
|
237
252
|
|
niwrap_afni/afni/sfim.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
SFIM_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="a13eb6a1647edd69950d6fbc3efb98691eeddce5.boutiques",
|
|
10
10
|
name="sfim",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -15,6 +15,7 @@ SFIM_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
SfimParameters = typing.TypedDict('SfimParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["sfim"],
|
|
18
|
+
"input_images": list[InputPathType],
|
|
18
19
|
"sfint_file": typing.NotRequired[str | None],
|
|
19
20
|
"baseline_state": typing.NotRequired[str | None],
|
|
20
21
|
"local_base_option": bool,
|
|
@@ -65,6 +66,7 @@ class SfimOutputs(typing.NamedTuple):
|
|
|
65
66
|
|
|
66
67
|
|
|
67
68
|
def sfim_params(
|
|
69
|
+
input_images: list[InputPathType],
|
|
68
70
|
sfint_file: str | None = None,
|
|
69
71
|
baseline_state: str | None = None,
|
|
70
72
|
local_base_option: bool = False,
|
|
@@ -74,6 +76,7 @@ def sfim_params(
|
|
|
74
76
|
Build parameters.
|
|
75
77
|
|
|
76
78
|
Args:
|
|
79
|
+
input_images: Input image files in formats accepted by AFNI.
|
|
77
80
|
sfint_file: Filename which contains the interval definitions. Default\
|
|
78
81
|
is 'sfint'. Example: '3*# 5*rest 4*A 5*rest 4*B 5*rest 4*A 5*rest'.
|
|
79
82
|
baseline_state: Task state name to use as the baseline. Default is\
|
|
@@ -89,6 +92,7 @@ def sfim_params(
|
|
|
89
92
|
"""
|
|
90
93
|
params = {
|
|
91
94
|
"__STYXTYPE__": "sfim",
|
|
95
|
+
"input_images": input_images,
|
|
92
96
|
"local_base_option": local_base_option,
|
|
93
97
|
}
|
|
94
98
|
if sfint_file is not None:
|
|
@@ -115,6 +119,7 @@ def sfim_cargs(
|
|
|
115
119
|
"""
|
|
116
120
|
cargs = []
|
|
117
121
|
cargs.append("sfim")
|
|
122
|
+
cargs.extend([execution.input_file(f) for f in params.get("input_images")])
|
|
118
123
|
if params.get("sfint_file") is not None:
|
|
119
124
|
cargs.extend([
|
|
120
125
|
"-sfint",
|
|
@@ -132,7 +137,6 @@ def sfim_cargs(
|
|
|
132
137
|
"-prefix",
|
|
133
138
|
params.get("output_prefix")
|
|
134
139
|
])
|
|
135
|
-
cargs.append("[INPUT_FILES...]")
|
|
136
140
|
return cargs
|
|
137
141
|
|
|
138
142
|
|
|
@@ -181,6 +185,7 @@ def sfim_execute(
|
|
|
181
185
|
|
|
182
186
|
|
|
183
187
|
def sfim(
|
|
188
|
+
input_images: list[InputPathType],
|
|
184
189
|
sfint_file: str | None = None,
|
|
185
190
|
baseline_state: str | None = None,
|
|
186
191
|
local_base_option: bool = False,
|
|
@@ -195,6 +200,7 @@ def sfim(
|
|
|
195
200
|
URL: https://afni.nimh.nih.gov/
|
|
196
201
|
|
|
197
202
|
Args:
|
|
203
|
+
input_images: Input image files in formats accepted by AFNI.
|
|
198
204
|
sfint_file: Filename which contains the interval definitions. Default\
|
|
199
205
|
is 'sfint'. Example: '3*# 5*rest 4*A 5*rest 4*B 5*rest 4*A 5*rest'.
|
|
200
206
|
baseline_state: Task state name to use as the baseline. Default is\
|
|
@@ -212,6 +218,7 @@ def sfim(
|
|
|
212
218
|
runner = runner or get_global_runner()
|
|
213
219
|
execution = runner.start_execution(SFIM_METADATA)
|
|
214
220
|
params = sfim_params(
|
|
221
|
+
input_images=input_images,
|
|
215
222
|
sfint_file=sfint_file,
|
|
216
223
|
baseline_state=baseline_state,
|
|
217
224
|
local_base_option=local_base_option,
|
niwrap_afni/afni/stimband.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
STIMBAND_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="ca5a92d5ac7d886044df23850ca6ef4054823866.boutiques",
|
|
10
10
|
name="stimband",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -16,6 +16,8 @@ STIMBAND_METADATA = Metadata(
|
|
|
16
16
|
StimbandParameters = typing.TypedDict('StimbandParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["stimband"],
|
|
18
18
|
"verbose_flag": bool,
|
|
19
|
+
"matrixfiles": list[InputPathType],
|
|
20
|
+
"additional_matrixfiles": typing.NotRequired[list[InputPathType] | None],
|
|
19
21
|
"min_freq": typing.NotRequired[float | None],
|
|
20
22
|
"min_bwidth": typing.NotRequired[float | None],
|
|
21
23
|
"min_pow": typing.NotRequired[float | None],
|
|
@@ -66,7 +68,9 @@ class StimbandOutputs(typing.NamedTuple):
|
|
|
66
68
|
|
|
67
69
|
|
|
68
70
|
def stimband_params(
|
|
71
|
+
matrixfiles: list[InputPathType],
|
|
69
72
|
verbose_flag: bool = False,
|
|
73
|
+
additional_matrixfiles: list[InputPathType] | None = None,
|
|
70
74
|
min_freq: float | None = None,
|
|
71
75
|
min_bwidth: float | None = None,
|
|
72
76
|
min_pow: float | None = None,
|
|
@@ -75,8 +79,10 @@ def stimband_params(
|
|
|
75
79
|
Build parameters.
|
|
76
80
|
|
|
77
81
|
Args:
|
|
82
|
+
matrixfiles: Path to matrix files.
|
|
78
83
|
verbose_flag: Print the power band for each individual stimulus column\
|
|
79
84
|
from each matrix.
|
|
85
|
+
additional_matrixfiles: Another way to read 1 or more matrix files.
|
|
80
86
|
min_freq: Set the minimum frequency output for the band. Default value\
|
|
81
87
|
is 0.01.
|
|
82
88
|
min_bwidth: Set the minimum bandwidth output (top frequency minus\
|
|
@@ -89,7 +95,10 @@ def stimband_params(
|
|
|
89
95
|
params = {
|
|
90
96
|
"__STYXTYPE__": "stimband",
|
|
91
97
|
"verbose_flag": verbose_flag,
|
|
98
|
+
"matrixfiles": matrixfiles,
|
|
92
99
|
}
|
|
100
|
+
if additional_matrixfiles is not None:
|
|
101
|
+
params["additional_matrixfiles"] = additional_matrixfiles
|
|
93
102
|
if min_freq is not None:
|
|
94
103
|
params["min_freq"] = min_freq
|
|
95
104
|
if min_bwidth is not None:
|
|
@@ -116,8 +125,12 @@ def stimband_cargs(
|
|
|
116
125
|
cargs.append("stimband")
|
|
117
126
|
if params.get("verbose_flag"):
|
|
118
127
|
cargs.append("-verb")
|
|
119
|
-
cargs.
|
|
120
|
-
|
|
128
|
+
cargs.extend([execution.input_file(f) for f in params.get("matrixfiles")])
|
|
129
|
+
if params.get("additional_matrixfiles") is not None:
|
|
130
|
+
cargs.extend([
|
|
131
|
+
"-matrix",
|
|
132
|
+
*[execution.input_file(f) for f in params.get("additional_matrixfiles")]
|
|
133
|
+
])
|
|
121
134
|
if params.get("min_freq") is not None:
|
|
122
135
|
cargs.extend([
|
|
123
136
|
"-min_freq",
|
|
@@ -182,7 +195,9 @@ def stimband_execute(
|
|
|
182
195
|
|
|
183
196
|
|
|
184
197
|
def stimband(
|
|
198
|
+
matrixfiles: list[InputPathType],
|
|
185
199
|
verbose_flag: bool = False,
|
|
200
|
+
additional_matrixfiles: list[InputPathType] | None = None,
|
|
186
201
|
min_freq: float | None = None,
|
|
187
202
|
min_bwidth: float | None = None,
|
|
188
203
|
min_pow: float | None = None,
|
|
@@ -197,8 +212,10 @@ def stimband(
|
|
|
197
212
|
URL: https://afni.nimh.nih.gov/
|
|
198
213
|
|
|
199
214
|
Args:
|
|
215
|
+
matrixfiles: Path to matrix files.
|
|
200
216
|
verbose_flag: Print the power band for each individual stimulus column\
|
|
201
217
|
from each matrix.
|
|
218
|
+
additional_matrixfiles: Another way to read 1 or more matrix files.
|
|
202
219
|
min_freq: Set the minimum frequency output for the band. Default value\
|
|
203
220
|
is 0.01.
|
|
204
221
|
min_bwidth: Set the minimum bandwidth output (top frequency minus\
|
|
@@ -213,6 +230,8 @@ def stimband(
|
|
|
213
230
|
execution = runner.start_execution(STIMBAND_METADATA)
|
|
214
231
|
params = stimband_params(
|
|
215
232
|
verbose_flag=verbose_flag,
|
|
233
|
+
matrixfiles=matrixfiles,
|
|
234
|
+
additional_matrixfiles=additional_matrixfiles,
|
|
216
235
|
min_freq=min_freq,
|
|
217
236
|
min_bwidth=min_bwidth,
|
|
218
237
|
min_pow=min_pow,
|
niwrap_afni/afni/surf_dist.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
SURF_DIST_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="8b5c7176c66dac8d05149bdf650ac16471da45a7.boutiques",
|
|
10
10
|
name="SurfDist",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -18,7 +18,11 @@ SurfDistParameters = typing.TypedDict('SurfDistParameters', {
|
|
|
18
18
|
"surface": InputPathType,
|
|
19
19
|
"nodepairs": InputPathType,
|
|
20
20
|
"node_path_do": typing.NotRequired[str | None],
|
|
21
|
+
"euclidean": bool,
|
|
22
|
+
"euclidian": bool,
|
|
21
23
|
"graph": bool,
|
|
24
|
+
"from_node": typing.NotRequired[str | None],
|
|
25
|
+
"to_nodes": typing.NotRequired[InputPathType | None],
|
|
22
26
|
})
|
|
23
27
|
|
|
24
28
|
|
|
@@ -68,7 +72,11 @@ def surf_dist_params(
|
|
|
68
72
|
surface: InputPathType,
|
|
69
73
|
nodepairs: InputPathType,
|
|
70
74
|
node_path_do: str | None = None,
|
|
75
|
+
euclidean: bool = False,
|
|
76
|
+
euclidian: bool = False,
|
|
71
77
|
graph: bool = False,
|
|
78
|
+
from_node: str | None = None,
|
|
79
|
+
to_nodes: InputPathType | None = None,
|
|
72
80
|
) -> SurfDistParameters:
|
|
73
81
|
"""
|
|
74
82
|
Build parameters.
|
|
@@ -78,7 +86,12 @@ def surf_dist_params(
|
|
|
78
86
|
nodepairs: Specify node pairs for distance computation.
|
|
79
87
|
node_path_do: Output the shortest path between each node pair as a SUMA\
|
|
80
88
|
Displayable object.
|
|
89
|
+
euclidean: Calculate Euclidean distance, rather than graph distance.
|
|
90
|
+
euclidian: Synonym for '-Euclidean'.
|
|
81
91
|
graph: Calculate distance along the mesh (default).
|
|
92
|
+
from_node: Specify one starting node for pair calculation.
|
|
93
|
+
to_nodes: Specify nodes used for pair calculation when using\
|
|
94
|
+
-from_node.
|
|
82
95
|
Returns:
|
|
83
96
|
Parameter dictionary
|
|
84
97
|
"""
|
|
@@ -86,10 +99,16 @@ def surf_dist_params(
|
|
|
86
99
|
"__STYXTYPE__": "SurfDist",
|
|
87
100
|
"surface": surface,
|
|
88
101
|
"nodepairs": nodepairs,
|
|
102
|
+
"euclidean": euclidean,
|
|
103
|
+
"euclidian": euclidian,
|
|
89
104
|
"graph": graph,
|
|
90
105
|
}
|
|
91
106
|
if node_path_do is not None:
|
|
92
107
|
params["node_path_do"] = node_path_do
|
|
108
|
+
if from_node is not None:
|
|
109
|
+
params["from_node"] = from_node
|
|
110
|
+
if to_nodes is not None:
|
|
111
|
+
params["to_nodes"] = to_nodes
|
|
93
112
|
return params
|
|
94
113
|
|
|
95
114
|
|
|
@@ -115,8 +134,22 @@ def surf_dist_cargs(
|
|
|
115
134
|
"-node_path_do",
|
|
116
135
|
params.get("node_path_do")
|
|
117
136
|
])
|
|
137
|
+
if params.get("euclidean"):
|
|
138
|
+
cargs.append("-Euclidean")
|
|
139
|
+
if params.get("euclidian"):
|
|
140
|
+
cargs.append("-Euclidian")
|
|
118
141
|
if params.get("graph"):
|
|
119
142
|
cargs.append("-graph")
|
|
143
|
+
if params.get("from_node") is not None:
|
|
144
|
+
cargs.extend([
|
|
145
|
+
"-from_node",
|
|
146
|
+
params.get("from_node")
|
|
147
|
+
])
|
|
148
|
+
if params.get("to_nodes") is not None:
|
|
149
|
+
cargs.extend([
|
|
150
|
+
"-input",
|
|
151
|
+
execution.input_file(params.get("to_nodes"))
|
|
152
|
+
])
|
|
120
153
|
return cargs
|
|
121
154
|
|
|
122
155
|
|
|
@@ -168,7 +201,11 @@ def surf_dist(
|
|
|
168
201
|
surface: InputPathType,
|
|
169
202
|
nodepairs: InputPathType,
|
|
170
203
|
node_path_do: str | None = None,
|
|
204
|
+
euclidean: bool = False,
|
|
205
|
+
euclidian: bool = False,
|
|
171
206
|
graph: bool = False,
|
|
207
|
+
from_node: str | None = None,
|
|
208
|
+
to_nodes: InputPathType | None = None,
|
|
172
209
|
runner: Runner | None = None,
|
|
173
210
|
) -> SurfDistOutputs:
|
|
174
211
|
"""
|
|
@@ -183,7 +220,12 @@ def surf_dist(
|
|
|
183
220
|
nodepairs: Specify node pairs for distance computation.
|
|
184
221
|
node_path_do: Output the shortest path between each node pair as a SUMA\
|
|
185
222
|
Displayable object.
|
|
223
|
+
euclidean: Calculate Euclidean distance, rather than graph distance.
|
|
224
|
+
euclidian: Synonym for '-Euclidean'.
|
|
186
225
|
graph: Calculate distance along the mesh (default).
|
|
226
|
+
from_node: Specify one starting node for pair calculation.
|
|
227
|
+
to_nodes: Specify nodes used for pair calculation when using\
|
|
228
|
+
-from_node.
|
|
187
229
|
runner: Command runner.
|
|
188
230
|
Returns:
|
|
189
231
|
NamedTuple of outputs (described in `SurfDistOutputs`).
|
|
@@ -194,7 +236,11 @@ def surf_dist(
|
|
|
194
236
|
surface=surface,
|
|
195
237
|
nodepairs=nodepairs,
|
|
196
238
|
node_path_do=node_path_do,
|
|
239
|
+
euclidean=euclidean,
|
|
240
|
+
euclidian=euclidian,
|
|
197
241
|
graph=graph,
|
|
242
|
+
from_node=from_node,
|
|
243
|
+
to_nodes=to_nodes,
|
|
198
244
|
)
|
|
199
245
|
return surf_dist_execute(params, execution)
|
|
200
246
|
|
niwrap_afni/afni/surf_fwhm.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
SURF_FWHM_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="c0c295cfa2772a4d6c7970693902b2233ab45c11.boutiques",
|
|
10
10
|
name="SurfFWHM",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -219,10 +219,6 @@ def surf_fwhm_cargs(
|
|
|
219
219
|
cargs.append("-examples")
|
|
220
220
|
if params.get("slice"):
|
|
221
221
|
cargs.append("-slice")
|
|
222
|
-
cargs.append("[TALK_SUMA_OPTIONS]")
|
|
223
|
-
cargs.append("[NIML_OPTIONS]")
|
|
224
|
-
cargs.append("[DEBUG_OPTIONS]")
|
|
225
|
-
cargs.append("[HELP_OPTIONS]")
|
|
226
222
|
return cargs
|
|
227
223
|
|
|
228
224
|
|