niwrap-afni 0.5.1__py3-none-any.whl → 0.5.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of niwrap-afni might be problematic. Click here for more details.
- niwrap_afni/afni/abids_json_tool_py.py +104 -1
- niwrap_afni/afni/abids_tool.py +43 -1
- niwrap_afni/afni/adjunct_make_script_and_rst_py.py +2 -2
- niwrap_afni/afni/afni_batch_r.py +1 -2
- niwrap_afni/afni/balloon.py +25 -1
- niwrap_afni/afni/brain_skin.py +16 -1
- niwrap_afni/afni/build_afni_py.py +28 -1
- niwrap_afni/afni/cat_matvec.py +23 -1
- niwrap_afni/afni/convert_surface.py +38 -1
- niwrap_afni/afni/dicom_hinfo.py +9 -2
- niwrap_afni/afni/dsetstat2p.py +19 -1
- niwrap_afni/afni/fat_proc_align_anat_pair.py +10 -1
- niwrap_afni/afni/fat_proc_convert_dcm_anat.py +16 -1
- niwrap_afni/afni/fat_roi_row.py +1 -4
- niwrap_afni/afni/fsread_annot.py +2 -2
- niwrap_afni/afni/imrotate.py +10 -1
- niwrap_afni/afni/myget.py +16 -3
- niwrap_afni/afni/nifti_tool.py +3 -2
- niwrap_afni/afni/p2dsetstat.py +19 -1
- niwrap_afni/afni/plugout_drive.py +93 -1
- niwrap_afni/afni/prompt_popup.py +46 -1
- niwrap_afni/afni/prompt_user.py +16 -1
- niwrap_afni/afni/rbox.py +170 -9
- niwrap_afni/afni/samp_bias.py +16 -1
- niwrap_afni/afni/sfim.py +9 -2
- niwrap_afni/afni/stimband.py +22 -3
- niwrap_afni/afni/surf_dist.py +47 -1
- niwrap_afni/afni/surf_fwhm.py +1 -5
- niwrap_afni/afni/surf_info.py +99 -2
- niwrap_afni/afni/surface_metrics.py +179 -172
- niwrap_afni/afni/tedana_wrapper_py.py +19 -1
- niwrap_afni/afni/v_1d_bport.py +12 -1
- niwrap_afni/afni/v_1d_correlate.py +39 -1
- niwrap_afni/afni/v_1d_marry.py +1 -2
- niwrap_afni/afni/v_1d_rplot.py +233 -4
- niwrap_afni/afni/v_1d_sem.py +157 -2
- niwrap_afni/afni/v_1d_tsort.py +10 -1
- niwrap_afni/afni/v_1ddot.py +5 -4
- niwrap_afni/afni/v_1deval.py +16 -1
- niwrap_afni/afni/v_1dgen_arma11.py +16 -1
- niwrap_afni/afni/v_3_droimaker.py +16 -1
- niwrap_afni/afni/v_3d_afnito3_d.py +34 -4
- niwrap_afni/afni/v_3d_afnito_niml.py +34 -2
- niwrap_afni/afni/v_3d_amp_to_rsfc.py +10 -9
- niwrap_afni/afni/v_3d_anova3.py +323 -20
- niwrap_afni/afni/v_3d_clip_level.py +38 -2
- niwrap_afni/afni/v_3d_clust_sim.py +275 -22
- niwrap_afni/afni/v_3d_cm.py +103 -2
- niwrap_afni/afni/v_3d_dtto_dwi.py +58 -4
- niwrap_afni/afni/v_3d_dwito_dt.py +299 -2
- niwrap_afni/afni/v_3d_ecm.py +24 -2
- niwrap_afni/afni/v_3d_fdr.py +14 -1
- niwrap_afni/afni/v_3d_gen_feature_dist.py +53 -1
- niwrap_afni/afni/v_3d_hist.py +14 -1
- niwrap_afni/afni/v_3d_icc.py +137 -2
- niwrap_afni/afni/v_3d_lfcd.py +24 -5
- niwrap_afni/afni/v_3d_lme.py +1 -3
- niwrap_afni/afni/v_3d_local_histog.py +32 -1
- niwrap_afni/afni/v_3d_lrflip.py +46 -1
- niwrap_afni/afni/v_3d_lss.py +107 -4
- niwrap_afni/afni/v_3d_mask_to_ascii.py +12 -4
- niwrap_afni/afni/v_3d_mema.py +301 -3
- niwrap_afni/afni/v_3d_mepfm.py +1 -2
- niwrap_afni/afni/v_3d_nlfim.py +487 -30
- niwrap_afni/afni/v_3d_nwarp_xyz.py +27 -14
- niwrap_afni/afni/v_3d_overlap.py +20 -6
- niwrap_afni/afni/v_3d_par2_afni.py +32 -1
- niwrap_afni/afni/v_3d_pfm.py +200 -2
- niwrap_afni/afni/v_3d_remlfit.py +41 -1
- niwrap_afni/afni/v_3d_roistats.py +1 -2
- niwrap_afni/afni/v_3d_rsfc.py +240 -6
- niwrap_afni/afni/v_3d_stat_clust.py +19 -1
- niwrap_afni/afni/v_3d_tcat.py +24 -5
- niwrap_afni/afni/v_3d_threeto_rgb.py +1 -2
- niwrap_afni/afni/v_3d_toy_prog.py +111 -1
- niwrap_afni/afni/v_3d_tsgen.py +18 -1
- niwrap_afni/afni/v_3d_tsort.py +10 -1
- niwrap_afni/afni/v_3d_tstat.py +25 -15
- niwrap_afni/afni/v_3d_undump.py +10 -1
- niwrap_afni/afni/v_3d_warp.py +236 -2
- niwrap_afni/afni/v_3d_wilcoxon.py +9 -7
- niwrap_afni/afni/v_3dbucket.py +14 -1
- niwrap_afni/afni/v_3dcalc.py +1 -1
- niwrap_afni/afni/v_3dcopy.py +31 -3
- niwrap_afni/afni/v_3dmask_svd.py +99 -2
- niwrap_afni/afni/v__4_daverage.py +11 -2
- niwrap_afni/afni/v__afni_env.py +19 -1
- niwrap_afni/afni/v__afni_refacer_run.py +36 -1
- niwrap_afni/afni/v__build_afni_xlib.py +21 -1
- niwrap_afni/afni/v__chauffeur_afni.py +184 -2
- niwrap_afni/afni/v__command_globb.py +13 -7
- niwrap_afni/afni/v__compute_oc_weights.py +16 -1
- niwrap_afni/afni/v__deblank_file_names.py +13 -2
- niwrap_afni/afni/v__dice_metric.py +18 -14
- niwrap_afni/afni/v__djunct_edgy_align_check.py +82 -10
- niwrap_afni/afni/v__djunct_montage_coordinator.py +10 -1
- niwrap_afni/afni/v__get_afni_res.py +3 -2
- niwrap_afni/afni/v__grad_flip_test.py +38 -42
- niwrap_afni/afni/v__grayplot.py +34 -1
- niwrap_afni/afni/v__help_afni.py +63 -2
- niwrap_afni/afni/v__make_label_table.py +14 -1
- niwrap_afni/afni/v__no_ext.py +9 -2
- niwrap_afni/afni/v__reorder.py +10 -1
- niwrap_afni/afni/v__skull_strip_touch_up.py +10 -1
- niwrap_afni/afni/v__suma_make_spec_caret.py +62 -2
- niwrap_afni/afni/v__suma_make_spec_fs.py +180 -2
- niwrap_afni/afni/v__to_mni_qwarpar.py +21 -1
- niwrap_afni/afni/v__to_rai.py +23 -7
- {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.2.dist-info}/METADATA +1 -1
- {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.2.dist-info}/RECORD +111 -111
- {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.2.dist-info}/WHEEL +0 -0
niwrap_afni/afni/v__grayplot.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V__GRAYPLOT_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="530147880dced9ec34da9598833b42371288db6a.boutiques",
|
|
10
10
|
name="@grayplot",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -16,6 +16,9 @@ V__GRAYPLOT_METADATA = Metadata(
|
|
|
16
16
|
VGrayplotParameters = typing.TypedDict('VGrayplotParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["@grayplot"],
|
|
18
18
|
"dirname": str,
|
|
19
|
+
"pvorder": bool,
|
|
20
|
+
"peelorder": bool,
|
|
21
|
+
"ijkorder": bool,
|
|
19
22
|
"allorder": bool,
|
|
20
23
|
})
|
|
21
24
|
|
|
@@ -64,6 +67,9 @@ class VGrayplotOutputs(typing.NamedTuple):
|
|
|
64
67
|
|
|
65
68
|
def v__grayplot_params(
|
|
66
69
|
dirname: str,
|
|
70
|
+
pvorder: bool = False,
|
|
71
|
+
peelorder: bool = False,
|
|
72
|
+
ijkorder: bool = False,
|
|
67
73
|
allorder: bool = False,
|
|
68
74
|
) -> VGrayplotParameters:
|
|
69
75
|
"""
|
|
@@ -71,6 +77,12 @@ def v__grayplot_params(
|
|
|
71
77
|
|
|
72
78
|
Args:
|
|
73
79
|
dirname: Directory containing afni_proc.py results.
|
|
80
|
+
pvorder: Within each partition, voxels are ordered by a simple\
|
|
81
|
+
similarity measure.
|
|
82
|
+
peelorder: Within each partition, voxels are ordered by how many 'peel'\
|
|
83
|
+
operations are needed to reach a given voxel.
|
|
84
|
+
ijkorder: Within each partition, voxels are ordered by the 3D index in\
|
|
85
|
+
which they appear in the dataset.
|
|
74
86
|
allorder: Create grayplots for all ordering methods.
|
|
75
87
|
Returns:
|
|
76
88
|
Parameter dictionary
|
|
@@ -78,6 +90,9 @@ def v__grayplot_params(
|
|
|
78
90
|
params = {
|
|
79
91
|
"__STYXTYPE__": "@grayplot",
|
|
80
92
|
"dirname": dirname,
|
|
93
|
+
"pvorder": pvorder,
|
|
94
|
+
"peelorder": peelorder,
|
|
95
|
+
"ijkorder": ijkorder,
|
|
81
96
|
"allorder": allorder,
|
|
82
97
|
}
|
|
83
98
|
return params
|
|
@@ -99,6 +114,12 @@ def v__grayplot_cargs(
|
|
|
99
114
|
cargs = []
|
|
100
115
|
cargs.append("@grayplot")
|
|
101
116
|
cargs.append(params.get("dirname"))
|
|
117
|
+
if params.get("pvorder"):
|
|
118
|
+
cargs.append("-pvorder")
|
|
119
|
+
if params.get("peelorder"):
|
|
120
|
+
cargs.append("-peelorder")
|
|
121
|
+
if params.get("ijkorder"):
|
|
122
|
+
cargs.append("-ijkorder")
|
|
102
123
|
if params.get("allorder"):
|
|
103
124
|
cargs.append("-ALLorder")
|
|
104
125
|
return cargs
|
|
@@ -152,6 +173,9 @@ def v__grayplot_execute(
|
|
|
152
173
|
|
|
153
174
|
def v__grayplot(
|
|
154
175
|
dirname: str,
|
|
176
|
+
pvorder: bool = False,
|
|
177
|
+
peelorder: bool = False,
|
|
178
|
+
ijkorder: bool = False,
|
|
155
179
|
allorder: bool = False,
|
|
156
180
|
runner: Runner | None = None,
|
|
157
181
|
) -> VGrayplotOutputs:
|
|
@@ -166,6 +190,12 @@ def v__grayplot(
|
|
|
166
190
|
|
|
167
191
|
Args:
|
|
168
192
|
dirname: Directory containing afni_proc.py results.
|
|
193
|
+
pvorder: Within each partition, voxels are ordered by a simple\
|
|
194
|
+
similarity measure.
|
|
195
|
+
peelorder: Within each partition, voxels are ordered by how many 'peel'\
|
|
196
|
+
operations are needed to reach a given voxel.
|
|
197
|
+
ijkorder: Within each partition, voxels are ordered by the 3D index in\
|
|
198
|
+
which they appear in the dataset.
|
|
169
199
|
allorder: Create grayplots for all ordering methods.
|
|
170
200
|
runner: Command runner.
|
|
171
201
|
Returns:
|
|
@@ -175,6 +205,9 @@ def v__grayplot(
|
|
|
175
205
|
execution = runner.start_execution(V__GRAYPLOT_METADATA)
|
|
176
206
|
params = v__grayplot_params(
|
|
177
207
|
dirname=dirname,
|
|
208
|
+
pvorder=pvorder,
|
|
209
|
+
peelorder=peelorder,
|
|
210
|
+
ijkorder=ijkorder,
|
|
178
211
|
allorder=allorder,
|
|
179
212
|
)
|
|
180
213
|
return v__grayplot_execute(params, execution)
|
niwrap_afni/afni/v__help_afni.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V__HELP_AFNI_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="feadd2af7149741e9f9192b504b7c09e3ad50dc5.boutiques",
|
|
10
10
|
name="@help.AFNI",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -15,6 +15,12 @@ V__HELP_AFNI_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
VHelpAfniParameters = typing.TypedDict('VHelpAfniParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["@help.AFNI"],
|
|
18
|
+
"match": typing.NotRequired[str | None],
|
|
19
|
+
"lynx": bool,
|
|
20
|
+
"vi": bool,
|
|
21
|
+
"less": bool,
|
|
22
|
+
"nedit": bool,
|
|
23
|
+
"noview": bool,
|
|
18
24
|
})
|
|
19
25
|
|
|
20
26
|
|
|
@@ -58,17 +64,38 @@ class VHelpAfniOutputs(typing.NamedTuple):
|
|
|
58
64
|
|
|
59
65
|
|
|
60
66
|
def v__help_afni_params(
|
|
67
|
+
match: str | None = None,
|
|
68
|
+
lynx: bool = False,
|
|
69
|
+
vi: bool = False,
|
|
70
|
+
less: bool = False,
|
|
71
|
+
nedit: bool = False,
|
|
72
|
+
noview: bool = False,
|
|
61
73
|
) -> VHelpAfniParameters:
|
|
62
74
|
"""
|
|
63
75
|
Build parameters.
|
|
64
76
|
|
|
65
77
|
Args:
|
|
78
|
+
match: Looks for occurrence of each word in the list in the help file.\
|
|
79
|
+
For a match with multiple words, all the words must be on the same line\
|
|
80
|
+
of text in the help file.
|
|
81
|
+
lynx: Set viewer to lynx.
|
|
82
|
+
vi: Set viewer to vi.
|
|
83
|
+
less: Set viewer to less (default).
|
|
84
|
+
nedit: Set viewer to nedit.
|
|
85
|
+
noview: Set viewer to no view.
|
|
66
86
|
Returns:
|
|
67
87
|
Parameter dictionary
|
|
68
88
|
"""
|
|
69
89
|
params = {
|
|
70
90
|
"__STYXTYPE__": "@help.AFNI",
|
|
91
|
+
"lynx": lynx,
|
|
92
|
+
"vi": vi,
|
|
93
|
+
"less": less,
|
|
94
|
+
"nedit": nedit,
|
|
95
|
+
"noview": noview,
|
|
71
96
|
}
|
|
97
|
+
if match is not None:
|
|
98
|
+
params["match"] = match
|
|
72
99
|
return params
|
|
73
100
|
|
|
74
101
|
|
|
@@ -87,7 +114,21 @@ def v__help_afni_cargs(
|
|
|
87
114
|
"""
|
|
88
115
|
cargs = []
|
|
89
116
|
cargs.append("@help.AFNI")
|
|
90
|
-
|
|
117
|
+
if params.get("match") is not None:
|
|
118
|
+
cargs.extend([
|
|
119
|
+
"-match",
|
|
120
|
+
params.get("match")
|
|
121
|
+
])
|
|
122
|
+
if params.get("lynx"):
|
|
123
|
+
cargs.append("-lynx")
|
|
124
|
+
if params.get("vi"):
|
|
125
|
+
cargs.append("-vi")
|
|
126
|
+
if params.get("less"):
|
|
127
|
+
cargs.append("-less")
|
|
128
|
+
if params.get("nedit"):
|
|
129
|
+
cargs.append("-nedit")
|
|
130
|
+
if params.get("noview"):
|
|
131
|
+
cargs.append("-noview")
|
|
91
132
|
return cargs
|
|
92
133
|
|
|
93
134
|
|
|
@@ -135,6 +176,12 @@ def v__help_afni_execute(
|
|
|
135
176
|
|
|
136
177
|
|
|
137
178
|
def v__help_afni(
|
|
179
|
+
match: str | None = None,
|
|
180
|
+
lynx: bool = False,
|
|
181
|
+
vi: bool = False,
|
|
182
|
+
less: bool = False,
|
|
183
|
+
nedit: bool = False,
|
|
184
|
+
noview: bool = False,
|
|
138
185
|
runner: Runner | None = None,
|
|
139
186
|
) -> VHelpAfniOutputs:
|
|
140
187
|
"""
|
|
@@ -145,6 +192,14 @@ def v__help_afni(
|
|
|
145
192
|
URL: https://afni.nimh.nih.gov/
|
|
146
193
|
|
|
147
194
|
Args:
|
|
195
|
+
match: Looks for occurrence of each word in the list in the help file.\
|
|
196
|
+
For a match with multiple words, all the words must be on the same line\
|
|
197
|
+
of text in the help file.
|
|
198
|
+
lynx: Set viewer to lynx.
|
|
199
|
+
vi: Set viewer to vi.
|
|
200
|
+
less: Set viewer to less (default).
|
|
201
|
+
nedit: Set viewer to nedit.
|
|
202
|
+
noview: Set viewer to no view.
|
|
148
203
|
runner: Command runner.
|
|
149
204
|
Returns:
|
|
150
205
|
NamedTuple of outputs (described in `VHelpAfniOutputs`).
|
|
@@ -152,6 +207,12 @@ def v__help_afni(
|
|
|
152
207
|
runner = runner or get_global_runner()
|
|
153
208
|
execution = runner.start_execution(V__HELP_AFNI_METADATA)
|
|
154
209
|
params = v__help_afni_params(
|
|
210
|
+
match=match,
|
|
211
|
+
lynx=lynx,
|
|
212
|
+
vi=vi,
|
|
213
|
+
less=less,
|
|
214
|
+
nedit=nedit,
|
|
215
|
+
noview=noview,
|
|
155
216
|
)
|
|
156
217
|
return v__help_afni_execute(params, execution)
|
|
157
218
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V__MAKE_LABEL_TABLE_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="287075a9705f1e3aa4609a67bab5671fa4e1d6b9.boutiques",
|
|
10
10
|
name="@MakeLabelTable",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -19,6 +19,7 @@ VMakeLabelTableParameters = typing.TypedDict('VMakeLabelTableParameters', {
|
|
|
19
19
|
"atlas_pointlist": typing.NotRequired[str | None],
|
|
20
20
|
"lab_r": typing.NotRequired[list[str] | None],
|
|
21
21
|
"lab_v": typing.NotRequired[list[str] | None],
|
|
22
|
+
"lab_file_delim": typing.NotRequired[str | None],
|
|
22
23
|
"lab_file": typing.NotRequired[list[str] | None],
|
|
23
24
|
"dset": typing.NotRequired[InputPathType | None],
|
|
24
25
|
"longnames": typing.NotRequired[float | None],
|
|
@@ -105,6 +106,7 @@ def v__make_label_table_params(
|
|
|
105
106
|
atlas_pointlist: str | None = None,
|
|
106
107
|
lab_r: list[str] | None = None,
|
|
107
108
|
lab_v: list[str] | None = None,
|
|
109
|
+
lab_file_delim: str | None = None,
|
|
108
110
|
lab_file: list[str] | None = None,
|
|
109
111
|
dset: InputPathType | None = None,
|
|
110
112
|
longnames: float | None = None,
|
|
@@ -144,6 +146,7 @@ def v__make_label_table_params(
|
|
|
144
146
|
atlas_pointlist: Instead of a label table, produce an atlas point list.
|
|
145
147
|
lab_r: Define a label with its minimum and maximum key values.
|
|
146
148
|
lab_v: Define a label and its value.
|
|
149
|
+
lab_file_delim: Set column delimiter for -lab_file option.
|
|
147
150
|
lab_file: Specify labels and keys from a text file.
|
|
148
151
|
dset: Attach the label table (or atlas point list) to dataset.
|
|
149
152
|
longnames: Allow for another column of long names for regions.
|
|
@@ -202,6 +205,8 @@ def v__make_label_table_params(
|
|
|
202
205
|
params["lab_r"] = lab_r
|
|
203
206
|
if lab_v is not None:
|
|
204
207
|
params["lab_v"] = lab_v
|
|
208
|
+
if lab_file_delim is not None:
|
|
209
|
+
params["lab_file_delim"] = lab_file_delim
|
|
205
210
|
if lab_file is not None:
|
|
206
211
|
params["lab_file"] = lab_file
|
|
207
212
|
if dset is not None:
|
|
@@ -279,6 +284,11 @@ def v__make_label_table_cargs(
|
|
|
279
284
|
"-lab_v",
|
|
280
285
|
*params.get("lab_v")
|
|
281
286
|
])
|
|
287
|
+
if params.get("lab_file_delim") is not None:
|
|
288
|
+
cargs.extend([
|
|
289
|
+
"-lab_file_delim",
|
|
290
|
+
params.get("lab_file_delim")
|
|
291
|
+
])
|
|
282
292
|
if params.get("lab_file") is not None:
|
|
283
293
|
cargs.extend([
|
|
284
294
|
"-lab_file",
|
|
@@ -454,6 +464,7 @@ def v__make_label_table(
|
|
|
454
464
|
atlas_pointlist: str | None = None,
|
|
455
465
|
lab_r: list[str] | None = None,
|
|
456
466
|
lab_v: list[str] | None = None,
|
|
467
|
+
lab_file_delim: str | None = None,
|
|
457
468
|
lab_file: list[str] | None = None,
|
|
458
469
|
dset: InputPathType | None = None,
|
|
459
470
|
longnames: float | None = None,
|
|
@@ -498,6 +509,7 @@ def v__make_label_table(
|
|
|
498
509
|
atlas_pointlist: Instead of a label table, produce an atlas point list.
|
|
499
510
|
lab_r: Define a label with its minimum and maximum key values.
|
|
500
511
|
lab_v: Define a label and its value.
|
|
512
|
+
lab_file_delim: Set column delimiter for -lab_file option.
|
|
501
513
|
lab_file: Specify labels and keys from a text file.
|
|
502
514
|
dset: Attach the label table (or atlas point list) to dataset.
|
|
503
515
|
longnames: Allow for another column of long names for regions.
|
|
@@ -544,6 +556,7 @@ def v__make_label_table(
|
|
|
544
556
|
atlas_pointlist=atlas_pointlist,
|
|
545
557
|
lab_r=lab_r,
|
|
546
558
|
lab_v=lab_v,
|
|
559
|
+
lab_file_delim=lab_file_delim,
|
|
547
560
|
lab_file=lab_file,
|
|
548
561
|
dset=dset,
|
|
549
562
|
longnames=longnames,
|
niwrap_afni/afni/v__no_ext.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V__NO_EXT_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="b30bcb77c107d7bb2ff272f07e711f98bc966c50.boutiques",
|
|
10
10
|
name="@NoExt",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -15,6 +15,7 @@ V__NO_EXT_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
VNoExtParameters = typing.TypedDict('VNoExtParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["@NoExt"],
|
|
18
|
+
"inputfile": str,
|
|
18
19
|
"extensions": typing.NotRequired[list[str] | None],
|
|
19
20
|
})
|
|
20
21
|
|
|
@@ -62,18 +63,21 @@ class VNoExtOutputs(typing.NamedTuple):
|
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
def v__no_ext_params(
|
|
66
|
+
inputfile: str,
|
|
65
67
|
extensions: list[str] | None = None,
|
|
66
68
|
) -> VNoExtParameters:
|
|
67
69
|
"""
|
|
68
70
|
Build parameters.
|
|
69
71
|
|
|
70
72
|
Args:
|
|
73
|
+
inputfile: Input file name with extension.
|
|
71
74
|
extensions: Extensions to be removed.
|
|
72
75
|
Returns:
|
|
73
76
|
Parameter dictionary
|
|
74
77
|
"""
|
|
75
78
|
params = {
|
|
76
79
|
"__STYXTYPE__": "@NoExt",
|
|
80
|
+
"inputfile": inputfile,
|
|
77
81
|
}
|
|
78
82
|
if extensions is not None:
|
|
79
83
|
params["extensions"] = extensions
|
|
@@ -95,7 +99,7 @@ def v__no_ext_cargs(
|
|
|
95
99
|
"""
|
|
96
100
|
cargs = []
|
|
97
101
|
cargs.append("@NoExt")
|
|
98
|
-
cargs.append("
|
|
102
|
+
cargs.append(params.get("inputfile"))
|
|
99
103
|
if params.get("extensions") is not None:
|
|
100
104
|
cargs.extend(params.get("extensions"))
|
|
101
105
|
return cargs
|
|
@@ -146,6 +150,7 @@ def v__no_ext_execute(
|
|
|
146
150
|
|
|
147
151
|
|
|
148
152
|
def v__no_ext(
|
|
153
|
+
inputfile: str,
|
|
149
154
|
extensions: list[str] | None = None,
|
|
150
155
|
runner: Runner | None = None,
|
|
151
156
|
) -> VNoExtOutputs:
|
|
@@ -157,6 +162,7 @@ def v__no_ext(
|
|
|
157
162
|
URL: https://afni.nimh.nih.gov/
|
|
158
163
|
|
|
159
164
|
Args:
|
|
165
|
+
inputfile: Input file name with extension.
|
|
160
166
|
extensions: Extensions to be removed.
|
|
161
167
|
runner: Command runner.
|
|
162
168
|
Returns:
|
|
@@ -165,6 +171,7 @@ def v__no_ext(
|
|
|
165
171
|
runner = runner or get_global_runner()
|
|
166
172
|
execution = runner.start_execution(V__NO_EXT_METADATA)
|
|
167
173
|
params = v__no_ext_params(
|
|
174
|
+
inputfile=inputfile,
|
|
168
175
|
extensions=extensions,
|
|
169
176
|
)
|
|
170
177
|
return v__no_ext_execute(params, execution)
|
niwrap_afni/afni/v__reorder.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V__REORDER_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="a1aaf6dbb807ea79af1609bee99a7c13181932fa.boutiques",
|
|
10
10
|
name="@Reorder",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -21,6 +21,7 @@ VReorderParameters = typing.TypedDict('VReorderParameters', {
|
|
|
21
21
|
"offset": typing.NotRequired[float | None],
|
|
22
22
|
"save_work": bool,
|
|
23
23
|
"test": bool,
|
|
24
|
+
"help": bool,
|
|
24
25
|
})
|
|
25
26
|
|
|
26
27
|
|
|
@@ -73,6 +74,7 @@ def v__reorder_params(
|
|
|
73
74
|
offset: float | None = None,
|
|
74
75
|
save_work: bool = False,
|
|
75
76
|
test: bool = False,
|
|
77
|
+
help_: bool = False,
|
|
76
78
|
) -> VReorderParameters:
|
|
77
79
|
"""
|
|
78
80
|
Build parameters.
|
|
@@ -84,6 +86,7 @@ def v__reorder_params(
|
|
|
84
86
|
offset: Offset mapfile TR indices by OFFSET (in TRs).
|
|
85
87
|
save_work: Do not delete work directory (reorder.work.dir) at the end.
|
|
86
88
|
test: Just report sub-bricks, do not create datasets.
|
|
89
|
+
help_: Show help message.
|
|
87
90
|
Returns:
|
|
88
91
|
Parameter dictionary
|
|
89
92
|
"""
|
|
@@ -94,6 +97,7 @@ def v__reorder_params(
|
|
|
94
97
|
"prefix": prefix,
|
|
95
98
|
"save_work": save_work,
|
|
96
99
|
"test": test,
|
|
100
|
+
"help": help_,
|
|
97
101
|
}
|
|
98
102
|
if offset is not None:
|
|
99
103
|
params["offset"] = offset
|
|
@@ -127,6 +131,8 @@ def v__reorder_cargs(
|
|
|
127
131
|
cargs.append("-save_work")
|
|
128
132
|
if params.get("test"):
|
|
129
133
|
cargs.append("-test")
|
|
134
|
+
if params.get("help"):
|
|
135
|
+
cargs.append("-help")
|
|
130
136
|
return cargs
|
|
131
137
|
|
|
132
138
|
|
|
@@ -182,6 +188,7 @@ def v__reorder(
|
|
|
182
188
|
offset: float | None = None,
|
|
183
189
|
save_work: bool = False,
|
|
184
190
|
test: bool = False,
|
|
191
|
+
help_: bool = False,
|
|
185
192
|
runner: Runner | None = None,
|
|
186
193
|
) -> VReorderOutputs:
|
|
187
194
|
"""
|
|
@@ -199,6 +206,7 @@ def v__reorder(
|
|
|
199
206
|
offset: Offset mapfile TR indices by OFFSET (in TRs).
|
|
200
207
|
save_work: Do not delete work directory (reorder.work.dir) at the end.
|
|
201
208
|
test: Just report sub-bricks, do not create datasets.
|
|
209
|
+
help_: Show help message.
|
|
202
210
|
runner: Command runner.
|
|
203
211
|
Returns:
|
|
204
212
|
NamedTuple of outputs (described in `VReorderOutputs`).
|
|
@@ -212,6 +220,7 @@ def v__reorder(
|
|
|
212
220
|
offset=offset,
|
|
213
221
|
save_work=save_work,
|
|
214
222
|
test=test,
|
|
223
|
+
help_=help_,
|
|
215
224
|
)
|
|
216
225
|
return v__reorder_execute(params, execution)
|
|
217
226
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V__SKULL_STRIP_TOUCH_UP_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="460010f2b657da6818c5cc52af6697286e7b7fd3.boutiques",
|
|
10
10
|
name="@SkullStrip_TouchUp",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -20,6 +20,7 @@ VSkullStripTouchUpParameters = typing.TypedDict('VSkullStripTouchUpParameters',
|
|
|
20
20
|
"head_dataset": InputPathType,
|
|
21
21
|
"mask_out": bool,
|
|
22
22
|
"orig_dim": bool,
|
|
23
|
+
"help": bool,
|
|
23
24
|
})
|
|
24
25
|
|
|
25
26
|
|
|
@@ -73,6 +74,7 @@ def v__skull_strip_touch_up_params(
|
|
|
73
74
|
head_dataset: InputPathType,
|
|
74
75
|
mask_out: bool = False,
|
|
75
76
|
orig_dim: bool = False,
|
|
77
|
+
help_: bool = False,
|
|
76
78
|
) -> VSkullStripTouchUpParameters:
|
|
77
79
|
"""
|
|
78
80
|
Build parameters.
|
|
@@ -83,6 +85,7 @@ def v__skull_strip_touch_up_params(
|
|
|
83
85
|
head_dataset: Whole head anatomical data set.
|
|
84
86
|
mask_out: Output a binary mask in addition to actual data.
|
|
85
87
|
orig_dim: Edit in the original image dimensions.
|
|
88
|
+
help_: Show this help message.
|
|
86
89
|
Returns:
|
|
87
90
|
Parameter dictionary
|
|
88
91
|
"""
|
|
@@ -93,6 +96,7 @@ def v__skull_strip_touch_up_params(
|
|
|
93
96
|
"head_dataset": head_dataset,
|
|
94
97
|
"mask_out": mask_out,
|
|
95
98
|
"orig_dim": orig_dim,
|
|
99
|
+
"help": help_,
|
|
96
100
|
}
|
|
97
101
|
return params
|
|
98
102
|
|
|
@@ -128,6 +132,8 @@ def v__skull_strip_touch_up_cargs(
|
|
|
128
132
|
cargs.append("-mask_out")
|
|
129
133
|
if params.get("orig_dim"):
|
|
130
134
|
cargs.append("-orig_dim")
|
|
135
|
+
if params.get("help"):
|
|
136
|
+
cargs.append("-help")
|
|
131
137
|
return cargs
|
|
132
138
|
|
|
133
139
|
|
|
@@ -183,6 +189,7 @@ def v__skull_strip_touch_up(
|
|
|
183
189
|
head_dataset: InputPathType,
|
|
184
190
|
mask_out: bool = False,
|
|
185
191
|
orig_dim: bool = False,
|
|
192
|
+
help_: bool = False,
|
|
186
193
|
runner: Runner | None = None,
|
|
187
194
|
) -> VSkullStripTouchUpOutputs:
|
|
188
195
|
"""
|
|
@@ -199,6 +206,7 @@ def v__skull_strip_touch_up(
|
|
|
199
206
|
head_dataset: Whole head anatomical data set.
|
|
200
207
|
mask_out: Output a binary mask in addition to actual data.
|
|
201
208
|
orig_dim: Edit in the original image dimensions.
|
|
209
|
+
help_: Show this help message.
|
|
202
210
|
runner: Command runner.
|
|
203
211
|
Returns:
|
|
204
212
|
NamedTuple of outputs (described in `VSkullStripTouchUpOutputs`).
|
|
@@ -211,6 +219,7 @@ def v__skull_strip_touch_up(
|
|
|
211
219
|
head_dataset=head_dataset,
|
|
212
220
|
mask_out=mask_out,
|
|
213
221
|
orig_dim=orig_dim,
|
|
222
|
+
help_=help_,
|
|
214
223
|
)
|
|
215
224
|
return v__skull_strip_touch_up_execute(params, execution)
|
|
216
225
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
V__SUMA_MAKE_SPEC_CARET_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="ef058c5698e2c248a0e9c472b24e31f1b02dc1ae.boutiques",
|
|
10
10
|
name="@SUMA_Make_Spec_Caret",
|
|
11
11
|
package="afni",
|
|
12
12
|
container_image_tag="afni/afni_make_build:AFNI_24.2.06",
|
|
@@ -16,6 +16,11 @@ V__SUMA_MAKE_SPEC_CARET_METADATA = Metadata(
|
|
|
16
16
|
VSumaMakeSpecCaretParameters = typing.TypedDict('VSumaMakeSpecCaretParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["@SUMA_Make_Spec_Caret"],
|
|
18
18
|
"subject_id": str,
|
|
19
|
+
"help": bool,
|
|
20
|
+
"debug": typing.NotRequired[int | None],
|
|
21
|
+
"echo": bool,
|
|
22
|
+
"surface_path": typing.NotRequired[str | None],
|
|
23
|
+
"side_labels_style": typing.NotRequired[int | None],
|
|
19
24
|
})
|
|
20
25
|
|
|
21
26
|
|
|
@@ -65,19 +70,39 @@ class VSumaMakeSpecCaretOutputs(typing.NamedTuple):
|
|
|
65
70
|
|
|
66
71
|
def v__suma_make_spec_caret_params(
|
|
67
72
|
subject_id: str,
|
|
73
|
+
help_: bool = False,
|
|
74
|
+
debug: int | None = None,
|
|
75
|
+
echo: bool = False,
|
|
76
|
+
surface_path: str | None = None,
|
|
77
|
+
side_labels_style: int | None = None,
|
|
68
78
|
) -> VSumaMakeSpecCaretParameters:
|
|
69
79
|
"""
|
|
70
80
|
Build parameters.
|
|
71
81
|
|
|
72
82
|
Args:
|
|
73
83
|
subject_id: Subject ID for file naming.
|
|
84
|
+
help_: Show help information.
|
|
85
|
+
debug: Print debug information along the way.
|
|
86
|
+
echo: Turn shell echo on.
|
|
87
|
+
surface_path: Path to directory containing 'SURFACES' and AFNI volume\
|
|
88
|
+
used in creating the surfaces.
|
|
89
|
+
side_labels_style: Naming style for Left, Right sides. Allowed values:\
|
|
90
|
+
1 for L R LR style (default), 2 for LEFT RIGHT LR style, 3 for A B AB.
|
|
74
91
|
Returns:
|
|
75
92
|
Parameter dictionary
|
|
76
93
|
"""
|
|
77
94
|
params = {
|
|
78
95
|
"__STYXTYPE__": "@SUMA_Make_Spec_Caret",
|
|
79
96
|
"subject_id": subject_id,
|
|
97
|
+
"help": help_,
|
|
98
|
+
"echo": echo,
|
|
80
99
|
}
|
|
100
|
+
if debug is not None:
|
|
101
|
+
params["debug"] = debug
|
|
102
|
+
if surface_path is not None:
|
|
103
|
+
params["surface_path"] = surface_path
|
|
104
|
+
if side_labels_style is not None:
|
|
105
|
+
params["side_labels_style"] = side_labels_style
|
|
81
106
|
return params
|
|
82
107
|
|
|
83
108
|
|
|
@@ -96,11 +121,29 @@ def v__suma_make_spec_caret_cargs(
|
|
|
96
121
|
"""
|
|
97
122
|
cargs = []
|
|
98
123
|
cargs.append("@SUMA_Make_Spec_Caret")
|
|
99
|
-
cargs.append("[OPTIONS]")
|
|
100
124
|
cargs.extend([
|
|
101
125
|
"-sid",
|
|
102
126
|
params.get("subject_id")
|
|
103
127
|
])
|
|
128
|
+
if params.get("help"):
|
|
129
|
+
cargs.append("-help")
|
|
130
|
+
if params.get("debug") is not None:
|
|
131
|
+
cargs.extend([
|
|
132
|
+
"-debug",
|
|
133
|
+
str(params.get("debug"))
|
|
134
|
+
])
|
|
135
|
+
if params.get("echo"):
|
|
136
|
+
cargs.append("-echo")
|
|
137
|
+
if params.get("surface_path") is not None:
|
|
138
|
+
cargs.extend([
|
|
139
|
+
"-sfpath",
|
|
140
|
+
params.get("surface_path")
|
|
141
|
+
])
|
|
142
|
+
if params.get("side_labels_style") is not None:
|
|
143
|
+
cargs.extend([
|
|
144
|
+
"-side_labels_style",
|
|
145
|
+
str(params.get("side_labels_style"))
|
|
146
|
+
])
|
|
104
147
|
return cargs
|
|
105
148
|
|
|
106
149
|
|
|
@@ -151,6 +194,11 @@ def v__suma_make_spec_caret_execute(
|
|
|
151
194
|
|
|
152
195
|
def v__suma_make_spec_caret(
|
|
153
196
|
subject_id: str,
|
|
197
|
+
help_: bool = False,
|
|
198
|
+
debug: int | None = None,
|
|
199
|
+
echo: bool = False,
|
|
200
|
+
surface_path: str | None = None,
|
|
201
|
+
side_labels_style: int | None = None,
|
|
154
202
|
runner: Runner | None = None,
|
|
155
203
|
) -> VSumaMakeSpecCaretOutputs:
|
|
156
204
|
"""
|
|
@@ -162,6 +210,13 @@ def v__suma_make_spec_caret(
|
|
|
162
210
|
|
|
163
211
|
Args:
|
|
164
212
|
subject_id: Subject ID for file naming.
|
|
213
|
+
help_: Show help information.
|
|
214
|
+
debug: Print debug information along the way.
|
|
215
|
+
echo: Turn shell echo on.
|
|
216
|
+
surface_path: Path to directory containing 'SURFACES' and AFNI volume\
|
|
217
|
+
used in creating the surfaces.
|
|
218
|
+
side_labels_style: Naming style for Left, Right sides. Allowed values:\
|
|
219
|
+
1 for L R LR style (default), 2 for LEFT RIGHT LR style, 3 for A B AB.
|
|
165
220
|
runner: Command runner.
|
|
166
221
|
Returns:
|
|
167
222
|
NamedTuple of outputs (described in `VSumaMakeSpecCaretOutputs`).
|
|
@@ -170,6 +225,11 @@ def v__suma_make_spec_caret(
|
|
|
170
225
|
execution = runner.start_execution(V__SUMA_MAKE_SPEC_CARET_METADATA)
|
|
171
226
|
params = v__suma_make_spec_caret_params(
|
|
172
227
|
subject_id=subject_id,
|
|
228
|
+
help_=help_,
|
|
229
|
+
debug=debug,
|
|
230
|
+
echo=echo,
|
|
231
|
+
surface_path=surface_path,
|
|
232
|
+
side_labels_style=side_labels_style,
|
|
173
233
|
)
|
|
174
234
|
return v__suma_make_spec_caret_execute(params, execution)
|
|
175
235
|
|