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
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V__SUMA_MAKE_SPEC_FS_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="6e44db2e589cac9b6317c8766e1b94b1501e3edc.boutiques",
|
|
10
10
|
name="@SUMA_Make_Spec_FS",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -16,6 +16,21 @@ V__SUMA_MAKE_SPEC_FS_METADATA = Metadata(
|
|
|
16
16
|
VSumaMakeSpecFsParameters = typing.TypedDict('VSumaMakeSpecFsParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["@SUMA_Make_Spec_FS"],
|
|
18
18
|
"subject_id": str,
|
|
19
|
+
"debug": typing.NotRequired[int | None],
|
|
20
|
+
"fs_setup": bool,
|
|
21
|
+
"filesystem_path": typing.NotRequired[str | None],
|
|
22
|
+
"extra_annot_labels": typing.NotRequired[list[str] | None],
|
|
23
|
+
"extra_fs_dsets": typing.NotRequired[list[str] | None],
|
|
24
|
+
"make_rank_dsets": bool,
|
|
25
|
+
"use_mgz": bool,
|
|
26
|
+
"neuro": bool,
|
|
27
|
+
"gnifti": bool,
|
|
28
|
+
"nifti": bool,
|
|
29
|
+
"inflate": typing.NotRequired[float | None],
|
|
30
|
+
"set_space": typing.NotRequired[str | None],
|
|
31
|
+
"ld": typing.NotRequired[float | None],
|
|
32
|
+
"ldpref": typing.NotRequired[str | None],
|
|
33
|
+
"no_ld": bool,
|
|
19
34
|
})
|
|
20
35
|
|
|
21
36
|
|
|
@@ -63,19 +78,78 @@ class VSumaMakeSpecFsOutputs(typing.NamedTuple):
|
|
|
63
78
|
|
|
64
79
|
def v__suma_make_spec_fs_params(
|
|
65
80
|
subject_id: str,
|
|
81
|
+
debug: int | None = None,
|
|
82
|
+
fs_setup: bool = False,
|
|
83
|
+
filesystem_path: str | None = None,
|
|
84
|
+
extra_annot_labels: list[str] | None = None,
|
|
85
|
+
extra_fs_dsets: list[str] | None = None,
|
|
86
|
+
make_rank_dsets: bool = False,
|
|
87
|
+
use_mgz: bool = False,
|
|
88
|
+
neuro: bool = False,
|
|
89
|
+
gnifti: bool = False,
|
|
90
|
+
nifti: bool = False,
|
|
91
|
+
inflate: float | None = None,
|
|
92
|
+
set_space: str | None = None,
|
|
93
|
+
ld: float | None = None,
|
|
94
|
+
ldpref: str | None = None,
|
|
95
|
+
no_ld: bool = False,
|
|
66
96
|
) -> VSumaMakeSpecFsParameters:
|
|
67
97
|
"""
|
|
68
98
|
Build parameters.
|
|
69
99
|
|
|
70
100
|
Args:
|
|
71
101
|
subject_id: Required subject ID for file naming.
|
|
102
|
+
debug: Print debug information along the way; default level is 0, max\
|
|
103
|
+
is 2.
|
|
104
|
+
fs_setup: Source $FREESURFER_HOME/SetUpFreeSurfer.csh.
|
|
105
|
+
filesystem_path: Path to 'surf' and 'orig' directories; defaults to\
|
|
106
|
+
'./', the current directory.
|
|
107
|
+
extra_annot_labels: Convert extra annot files into ROI datasets.
|
|
108
|
+
extra_fs_dsets: List other datasets to include; defaults are thickness,\
|
|
109
|
+
curv, sulc.
|
|
110
|
+
make_rank_dsets: Create *rank* datasets; for backward compatibility.
|
|
111
|
+
use_mgz: Use MGZ volumes even if COR volumes are there.
|
|
112
|
+
neuro: Use neurological orientation.
|
|
113
|
+
gnifti: Produce files in exchangeable formats; same as -NIFTI.
|
|
114
|
+
nifti: Produce files in exchangeable formats; output files in NIFTI\
|
|
115
|
+
format and surfaces in GIFTI format.
|
|
116
|
+
inflate: Create moderately inflated surfaces using SurfSmooth; control\
|
|
117
|
+
the amount of smoothness with INF.
|
|
118
|
+
set_space: Set the space flag of all volumes; defaults to 'orig' space.
|
|
119
|
+
ld: Create standard mesh surfaces with mesh density linear depth set to\
|
|
120
|
+
LD.
|
|
121
|
+
ldpref: Supply the prefix option for MapIcosahedron; defaults to std.LD.
|
|
122
|
+
no_ld: Do not run MapIcosahedron.
|
|
72
123
|
Returns:
|
|
73
124
|
Parameter dictionary
|
|
74
125
|
"""
|
|
75
126
|
params = {
|
|
76
127
|
"__STYXTYPE__": "@SUMA_Make_Spec_FS",
|
|
77
128
|
"subject_id": subject_id,
|
|
129
|
+
"fs_setup": fs_setup,
|
|
130
|
+
"make_rank_dsets": make_rank_dsets,
|
|
131
|
+
"use_mgz": use_mgz,
|
|
132
|
+
"neuro": neuro,
|
|
133
|
+
"gnifti": gnifti,
|
|
134
|
+
"nifti": nifti,
|
|
135
|
+
"no_ld": no_ld,
|
|
78
136
|
}
|
|
137
|
+
if debug is not None:
|
|
138
|
+
params["debug"] = debug
|
|
139
|
+
if filesystem_path is not None:
|
|
140
|
+
params["filesystem_path"] = filesystem_path
|
|
141
|
+
if extra_annot_labels is not None:
|
|
142
|
+
params["extra_annot_labels"] = extra_annot_labels
|
|
143
|
+
if extra_fs_dsets is not None:
|
|
144
|
+
params["extra_fs_dsets"] = extra_fs_dsets
|
|
145
|
+
if inflate is not None:
|
|
146
|
+
params["inflate"] = inflate
|
|
147
|
+
if set_space is not None:
|
|
148
|
+
params["set_space"] = set_space
|
|
149
|
+
if ld is not None:
|
|
150
|
+
params["ld"] = ld
|
|
151
|
+
if ldpref is not None:
|
|
152
|
+
params["ldpref"] = ldpref
|
|
79
153
|
return params
|
|
80
154
|
|
|
81
155
|
|
|
@@ -94,11 +168,64 @@ def v__suma_make_spec_fs_cargs(
|
|
|
94
168
|
"""
|
|
95
169
|
cargs = []
|
|
96
170
|
cargs.append("@SUMA_Make_Spec_FS")
|
|
97
|
-
cargs.append("[OPTIONS]")
|
|
98
171
|
cargs.extend([
|
|
99
172
|
"-sid",
|
|
100
173
|
params.get("subject_id")
|
|
101
174
|
])
|
|
175
|
+
if params.get("debug") is not None:
|
|
176
|
+
cargs.extend([
|
|
177
|
+
"-debug",
|
|
178
|
+
str(params.get("debug"))
|
|
179
|
+
])
|
|
180
|
+
if params.get("fs_setup"):
|
|
181
|
+
cargs.append("-fs_setup")
|
|
182
|
+
if params.get("filesystem_path") is not None:
|
|
183
|
+
cargs.extend([
|
|
184
|
+
"-fspath",
|
|
185
|
+
params.get("filesystem_path")
|
|
186
|
+
])
|
|
187
|
+
if params.get("extra_annot_labels") is not None:
|
|
188
|
+
cargs.extend([
|
|
189
|
+
"-extra_annot_labels",
|
|
190
|
+
*params.get("extra_annot_labels")
|
|
191
|
+
])
|
|
192
|
+
if params.get("extra_fs_dsets") is not None:
|
|
193
|
+
cargs.extend([
|
|
194
|
+
"-extra_fs_dsets",
|
|
195
|
+
*params.get("extra_fs_dsets")
|
|
196
|
+
])
|
|
197
|
+
if params.get("make_rank_dsets"):
|
|
198
|
+
cargs.append("-make_rank_dsets")
|
|
199
|
+
if params.get("use_mgz"):
|
|
200
|
+
cargs.append("-use_mgz")
|
|
201
|
+
if params.get("neuro"):
|
|
202
|
+
cargs.append("-neuro")
|
|
203
|
+
if params.get("gnifti"):
|
|
204
|
+
cargs.append("-GNIFTI")
|
|
205
|
+
if params.get("nifti"):
|
|
206
|
+
cargs.append("-NIFTI")
|
|
207
|
+
if params.get("inflate") is not None:
|
|
208
|
+
cargs.extend([
|
|
209
|
+
"-inflate",
|
|
210
|
+
str(params.get("inflate"))
|
|
211
|
+
])
|
|
212
|
+
if params.get("set_space") is not None:
|
|
213
|
+
cargs.extend([
|
|
214
|
+
"-set_space",
|
|
215
|
+
params.get("set_space")
|
|
216
|
+
])
|
|
217
|
+
if params.get("ld") is not None:
|
|
218
|
+
cargs.extend([
|
|
219
|
+
"-ld",
|
|
220
|
+
str(params.get("ld"))
|
|
221
|
+
])
|
|
222
|
+
if params.get("ldpref") is not None:
|
|
223
|
+
cargs.extend([
|
|
224
|
+
"-ldpref",
|
|
225
|
+
params.get("ldpref")
|
|
226
|
+
])
|
|
227
|
+
if params.get("no_ld"):
|
|
228
|
+
cargs.append("-no_ld")
|
|
102
229
|
return cargs
|
|
103
230
|
|
|
104
231
|
|
|
@@ -148,6 +275,21 @@ def v__suma_make_spec_fs_execute(
|
|
|
148
275
|
|
|
149
276
|
def v__suma_make_spec_fs(
|
|
150
277
|
subject_id: str,
|
|
278
|
+
debug: int | None = None,
|
|
279
|
+
fs_setup: bool = False,
|
|
280
|
+
filesystem_path: str | None = None,
|
|
281
|
+
extra_annot_labels: list[str] | None = None,
|
|
282
|
+
extra_fs_dsets: list[str] | None = None,
|
|
283
|
+
make_rank_dsets: bool = False,
|
|
284
|
+
use_mgz: bool = False,
|
|
285
|
+
neuro: bool = False,
|
|
286
|
+
gnifti: bool = False,
|
|
287
|
+
nifti: bool = False,
|
|
288
|
+
inflate: float | None = None,
|
|
289
|
+
set_space: str | None = None,
|
|
290
|
+
ld: float | None = None,
|
|
291
|
+
ldpref: str | None = None,
|
|
292
|
+
no_ld: bool = False,
|
|
151
293
|
runner: Runner | None = None,
|
|
152
294
|
) -> VSumaMakeSpecFsOutputs:
|
|
153
295
|
"""
|
|
@@ -159,6 +301,27 @@ def v__suma_make_spec_fs(
|
|
|
159
301
|
|
|
160
302
|
Args:
|
|
161
303
|
subject_id: Required subject ID for file naming.
|
|
304
|
+
debug: Print debug information along the way; default level is 0, max\
|
|
305
|
+
is 2.
|
|
306
|
+
fs_setup: Source $FREESURFER_HOME/SetUpFreeSurfer.csh.
|
|
307
|
+
filesystem_path: Path to 'surf' and 'orig' directories; defaults to\
|
|
308
|
+
'./', the current directory.
|
|
309
|
+
extra_annot_labels: Convert extra annot files into ROI datasets.
|
|
310
|
+
extra_fs_dsets: List other datasets to include; defaults are thickness,\
|
|
311
|
+
curv, sulc.
|
|
312
|
+
make_rank_dsets: Create *rank* datasets; for backward compatibility.
|
|
313
|
+
use_mgz: Use MGZ volumes even if COR volumes are there.
|
|
314
|
+
neuro: Use neurological orientation.
|
|
315
|
+
gnifti: Produce files in exchangeable formats; same as -NIFTI.
|
|
316
|
+
nifti: Produce files in exchangeable formats; output files in NIFTI\
|
|
317
|
+
format and surfaces in GIFTI format.
|
|
318
|
+
inflate: Create moderately inflated surfaces using SurfSmooth; control\
|
|
319
|
+
the amount of smoothness with INF.
|
|
320
|
+
set_space: Set the space flag of all volumes; defaults to 'orig' space.
|
|
321
|
+
ld: Create standard mesh surfaces with mesh density linear depth set to\
|
|
322
|
+
LD.
|
|
323
|
+
ldpref: Supply the prefix option for MapIcosahedron; defaults to std.LD.
|
|
324
|
+
no_ld: Do not run MapIcosahedron.
|
|
162
325
|
runner: Command runner.
|
|
163
326
|
Returns:
|
|
164
327
|
NamedTuple of outputs (described in `VSumaMakeSpecFsOutputs`).
|
|
@@ -167,6 +330,21 @@ def v__suma_make_spec_fs(
|
|
|
167
330
|
execution = runner.start_execution(V__SUMA_MAKE_SPEC_FS_METADATA)
|
|
168
331
|
params = v__suma_make_spec_fs_params(
|
|
169
332
|
subject_id=subject_id,
|
|
333
|
+
debug=debug,
|
|
334
|
+
fs_setup=fs_setup,
|
|
335
|
+
filesystem_path=filesystem_path,
|
|
336
|
+
extra_annot_labels=extra_annot_labels,
|
|
337
|
+
extra_fs_dsets=extra_fs_dsets,
|
|
338
|
+
make_rank_dsets=make_rank_dsets,
|
|
339
|
+
use_mgz=use_mgz,
|
|
340
|
+
neuro=neuro,
|
|
341
|
+
gnifti=gnifti,
|
|
342
|
+
nifti=nifti,
|
|
343
|
+
inflate=inflate,
|
|
344
|
+
set_space=set_space,
|
|
345
|
+
ld=ld,
|
|
346
|
+
ldpref=ldpref,
|
|
347
|
+
no_ld=no_ld,
|
|
170
348
|
)
|
|
171
349
|
return v__suma_make_spec_fs_execute(params, execution)
|
|
172
350
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V__TO_MNI_QWARPAR_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="75281e790c897850e305c48d74fb4c5120d9e282.boutiques",
|
|
10
10
|
name="@toMNI_Qwarpar",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -15,6 +15,8 @@ V__TO_MNI_QWARPAR_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
VToMniQwarparParameters = typing.TypedDict('VToMniQwarparParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["@toMNI_Qwarpar"],
|
|
18
|
+
"numcpu": float,
|
|
19
|
+
"numjob": float,
|
|
18
20
|
})
|
|
19
21
|
|
|
20
22
|
|
|
@@ -61,16 +63,24 @@ class VToMniQwarparOutputs(typing.NamedTuple):
|
|
|
61
63
|
|
|
62
64
|
|
|
63
65
|
def v__to_mni_qwarpar_params(
|
|
66
|
+
numcpu: float,
|
|
67
|
+
numjob: float,
|
|
64
68
|
) -> VToMniQwarparParameters:
|
|
65
69
|
"""
|
|
66
70
|
Build parameters.
|
|
67
71
|
|
|
68
72
|
Args:
|
|
73
|
+
numcpu: TOTAL NUMBER OF CPUS TO USE; should not exceed the number of\
|
|
74
|
+
CPUs (cores) on the system.
|
|
75
|
+
numjob: MAX NUMBER OF JOBS TO USE; often set to the same value as\
|
|
76
|
+
numcpu so that 1 dataset is processed in 1 core.
|
|
69
77
|
Returns:
|
|
70
78
|
Parameter dictionary
|
|
71
79
|
"""
|
|
72
80
|
params = {
|
|
73
81
|
"__STYXTYPE__": "@toMNI_Qwarpar",
|
|
82
|
+
"numcpu": numcpu,
|
|
83
|
+
"numjob": numjob,
|
|
74
84
|
}
|
|
75
85
|
return params
|
|
76
86
|
|
|
@@ -90,6 +100,8 @@ def v__to_mni_qwarpar_cargs(
|
|
|
90
100
|
"""
|
|
91
101
|
cargs = []
|
|
92
102
|
cargs.append("@toMNI_Qwarpar")
|
|
103
|
+
cargs.append(str(params.get("numcpu")))
|
|
104
|
+
cargs.append(str(params.get("numjob")))
|
|
93
105
|
return cargs
|
|
94
106
|
|
|
95
107
|
|
|
@@ -139,6 +151,8 @@ def v__to_mni_qwarpar_execute(
|
|
|
139
151
|
|
|
140
152
|
|
|
141
153
|
def v__to_mni_qwarpar(
|
|
154
|
+
numcpu: float,
|
|
155
|
+
numjob: float,
|
|
142
156
|
runner: Runner | None = None,
|
|
143
157
|
) -> VToMniQwarparOutputs:
|
|
144
158
|
"""
|
|
@@ -150,6 +164,10 @@ def v__to_mni_qwarpar(
|
|
|
150
164
|
URL: https://afni.nimh.nih.gov/
|
|
151
165
|
|
|
152
166
|
Args:
|
|
167
|
+
numcpu: TOTAL NUMBER OF CPUS TO USE; should not exceed the number of\
|
|
168
|
+
CPUs (cores) on the system.
|
|
169
|
+
numjob: MAX NUMBER OF JOBS TO USE; often set to the same value as\
|
|
170
|
+
numcpu so that 1 dataset is processed in 1 core.
|
|
153
171
|
runner: Command runner.
|
|
154
172
|
Returns:
|
|
155
173
|
NamedTuple of outputs (described in `VToMniQwarparOutputs`).
|
|
@@ -157,6 +175,8 @@ def v__to_mni_qwarpar(
|
|
|
157
175
|
runner = runner or get_global_runner()
|
|
158
176
|
execution = runner.start_execution(V__TO_MNI_QWARPAR_METADATA)
|
|
159
177
|
params = v__to_mni_qwarpar_params(
|
|
178
|
+
numcpu=numcpu,
|
|
179
|
+
numjob=numjob,
|
|
160
180
|
)
|
|
161
181
|
return v__to_mni_qwarpar_execute(params, execution)
|
|
162
182
|
|
niwrap_afni/afni/v__to_rai.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V__TO_RAI_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="8c60899686c3401d179992be9780ca970e04a901.boutiques",
|
|
10
10
|
name="@ToRAI",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -15,6 +15,8 @@ V__TO_RAI_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
VToRaiParameters = typing.TypedDict('VToRaiParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["@ToRAI"],
|
|
18
|
+
"coordinates": list[float],
|
|
19
|
+
"orientation": str,
|
|
18
20
|
})
|
|
19
21
|
|
|
20
22
|
|
|
@@ -58,16 +60,22 @@ class VToRaiOutputs(typing.NamedTuple):
|
|
|
58
60
|
|
|
59
61
|
|
|
60
62
|
def v__to_rai_params(
|
|
63
|
+
coordinates: list[float],
|
|
64
|
+
orientation: str,
|
|
61
65
|
) -> VToRaiParameters:
|
|
62
66
|
"""
|
|
63
67
|
Build parameters.
|
|
64
68
|
|
|
65
69
|
Args:
|
|
70
|
+
coordinates: Specify the X, Y, and Z coordinates.
|
|
71
|
+
orientation: Specify the orientation.
|
|
66
72
|
Returns:
|
|
67
73
|
Parameter dictionary
|
|
68
74
|
"""
|
|
69
75
|
params = {
|
|
70
76
|
"__STYXTYPE__": "@ToRAI",
|
|
77
|
+
"coordinates": coordinates,
|
|
78
|
+
"orientation": orientation,
|
|
71
79
|
}
|
|
72
80
|
return params
|
|
73
81
|
|
|
@@ -87,12 +95,14 @@ def v__to_rai_cargs(
|
|
|
87
95
|
"""
|
|
88
96
|
cargs = []
|
|
89
97
|
cargs.append("@ToRAI")
|
|
90
|
-
cargs.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cargs.
|
|
95
|
-
|
|
98
|
+
cargs.extend([
|
|
99
|
+
"-xyz",
|
|
100
|
+
*map(str, params.get("coordinates"))
|
|
101
|
+
])
|
|
102
|
+
cargs.extend([
|
|
103
|
+
"-or",
|
|
104
|
+
params.get("orientation")
|
|
105
|
+
])
|
|
96
106
|
return cargs
|
|
97
107
|
|
|
98
108
|
|
|
@@ -140,6 +150,8 @@ def v__to_rai_execute(
|
|
|
140
150
|
|
|
141
151
|
|
|
142
152
|
def v__to_rai(
|
|
153
|
+
coordinates: list[float],
|
|
154
|
+
orientation: str,
|
|
143
155
|
runner: Runner | None = None,
|
|
144
156
|
) -> VToRaiOutputs:
|
|
145
157
|
"""
|
|
@@ -150,6 +162,8 @@ def v__to_rai(
|
|
|
150
162
|
URL: https://afni.nimh.nih.gov/
|
|
151
163
|
|
|
152
164
|
Args:
|
|
165
|
+
coordinates: Specify the X, Y, and Z coordinates.
|
|
166
|
+
orientation: Specify the orientation.
|
|
153
167
|
runner: Command runner.
|
|
154
168
|
Returns:
|
|
155
169
|
NamedTuple of outputs (described in `VToRaiOutputs`).
|
|
@@ -157,6 +171,8 @@ def v__to_rai(
|
|
|
157
171
|
runner = runner or get_global_runner()
|
|
158
172
|
execution = runner.start_execution(V__TO_RAI_METADATA)
|
|
159
173
|
params = v__to_rai_params(
|
|
174
|
+
coordinates=coordinates,
|
|
175
|
+
orientation=orientation,
|
|
160
176
|
)
|
|
161
177
|
return v__to_rai_execute(params, execution)
|
|
162
178
|
|