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.

Files changed (111) hide show
  1. niwrap_afni/afni/abids_json_tool_py.py +104 -1
  2. niwrap_afni/afni/abids_tool.py +43 -1
  3. niwrap_afni/afni/adjunct_make_script_and_rst_py.py +2 -2
  4. niwrap_afni/afni/afni_batch_r.py +1 -2
  5. niwrap_afni/afni/balloon.py +25 -1
  6. niwrap_afni/afni/brain_skin.py +16 -1
  7. niwrap_afni/afni/build_afni_py.py +28 -1
  8. niwrap_afni/afni/cat_matvec.py +23 -1
  9. niwrap_afni/afni/convert_surface.py +38 -1
  10. niwrap_afni/afni/dicom_hinfo.py +9 -2
  11. niwrap_afni/afni/dsetstat2p.py +19 -1
  12. niwrap_afni/afni/fat_proc_align_anat_pair.py +10 -1
  13. niwrap_afni/afni/fat_proc_convert_dcm_anat.py +16 -1
  14. niwrap_afni/afni/fat_roi_row.py +1 -4
  15. niwrap_afni/afni/fsread_annot.py +2 -2
  16. niwrap_afni/afni/imrotate.py +10 -1
  17. niwrap_afni/afni/myget.py +16 -3
  18. niwrap_afni/afni/nifti_tool.py +3 -2
  19. niwrap_afni/afni/p2dsetstat.py +19 -1
  20. niwrap_afni/afni/plugout_drive.py +93 -1
  21. niwrap_afni/afni/prompt_popup.py +46 -1
  22. niwrap_afni/afni/prompt_user.py +16 -1
  23. niwrap_afni/afni/rbox.py +170 -9
  24. niwrap_afni/afni/samp_bias.py +16 -1
  25. niwrap_afni/afni/sfim.py +9 -2
  26. niwrap_afni/afni/stimband.py +22 -3
  27. niwrap_afni/afni/surf_dist.py +47 -1
  28. niwrap_afni/afni/surf_fwhm.py +1 -5
  29. niwrap_afni/afni/surf_info.py +99 -2
  30. niwrap_afni/afni/surface_metrics.py +179 -172
  31. niwrap_afni/afni/tedana_wrapper_py.py +19 -1
  32. niwrap_afni/afni/v_1d_bport.py +12 -1
  33. niwrap_afni/afni/v_1d_correlate.py +39 -1
  34. niwrap_afni/afni/v_1d_marry.py +1 -2
  35. niwrap_afni/afni/v_1d_rplot.py +233 -4
  36. niwrap_afni/afni/v_1d_sem.py +157 -2
  37. niwrap_afni/afni/v_1d_tsort.py +10 -1
  38. niwrap_afni/afni/v_1ddot.py +5 -4
  39. niwrap_afni/afni/v_1deval.py +16 -1
  40. niwrap_afni/afni/v_1dgen_arma11.py +16 -1
  41. niwrap_afni/afni/v_3_droimaker.py +16 -1
  42. niwrap_afni/afni/v_3d_afnito3_d.py +34 -4
  43. niwrap_afni/afni/v_3d_afnito_niml.py +34 -2
  44. niwrap_afni/afni/v_3d_amp_to_rsfc.py +10 -9
  45. niwrap_afni/afni/v_3d_anova3.py +323 -20
  46. niwrap_afni/afni/v_3d_clip_level.py +38 -2
  47. niwrap_afni/afni/v_3d_clust_sim.py +275 -22
  48. niwrap_afni/afni/v_3d_cm.py +103 -2
  49. niwrap_afni/afni/v_3d_dtto_dwi.py +58 -4
  50. niwrap_afni/afni/v_3d_dwito_dt.py +299 -2
  51. niwrap_afni/afni/v_3d_ecm.py +24 -2
  52. niwrap_afni/afni/v_3d_fdr.py +14 -1
  53. niwrap_afni/afni/v_3d_gen_feature_dist.py +53 -1
  54. niwrap_afni/afni/v_3d_hist.py +14 -1
  55. niwrap_afni/afni/v_3d_icc.py +137 -2
  56. niwrap_afni/afni/v_3d_lfcd.py +24 -5
  57. niwrap_afni/afni/v_3d_lme.py +1 -3
  58. niwrap_afni/afni/v_3d_local_histog.py +32 -1
  59. niwrap_afni/afni/v_3d_lrflip.py +46 -1
  60. niwrap_afni/afni/v_3d_lss.py +107 -4
  61. niwrap_afni/afni/v_3d_mask_to_ascii.py +12 -4
  62. niwrap_afni/afni/v_3d_mema.py +301 -3
  63. niwrap_afni/afni/v_3d_mepfm.py +1 -2
  64. niwrap_afni/afni/v_3d_nlfim.py +487 -30
  65. niwrap_afni/afni/v_3d_nwarp_xyz.py +27 -14
  66. niwrap_afni/afni/v_3d_overlap.py +20 -6
  67. niwrap_afni/afni/v_3d_par2_afni.py +32 -1
  68. niwrap_afni/afni/v_3d_pfm.py +200 -2
  69. niwrap_afni/afni/v_3d_remlfit.py +41 -1
  70. niwrap_afni/afni/v_3d_roistats.py +1 -2
  71. niwrap_afni/afni/v_3d_rsfc.py +240 -6
  72. niwrap_afni/afni/v_3d_stat_clust.py +19 -1
  73. niwrap_afni/afni/v_3d_tcat.py +24 -5
  74. niwrap_afni/afni/v_3d_threeto_rgb.py +1 -2
  75. niwrap_afni/afni/v_3d_toy_prog.py +111 -1
  76. niwrap_afni/afni/v_3d_tsgen.py +18 -1
  77. niwrap_afni/afni/v_3d_tsort.py +10 -1
  78. niwrap_afni/afni/v_3d_tstat.py +25 -15
  79. niwrap_afni/afni/v_3d_undump.py +10 -1
  80. niwrap_afni/afni/v_3d_warp.py +236 -2
  81. niwrap_afni/afni/v_3d_wilcoxon.py +9 -7
  82. niwrap_afni/afni/v_3dbucket.py +14 -1
  83. niwrap_afni/afni/v_3dcalc.py +1 -1
  84. niwrap_afni/afni/v_3dcopy.py +31 -3
  85. niwrap_afni/afni/v_3dmask_svd.py +99 -2
  86. niwrap_afni/afni/v__4_daverage.py +11 -2
  87. niwrap_afni/afni/v__afni_env.py +19 -1
  88. niwrap_afni/afni/v__afni_refacer_run.py +36 -1
  89. niwrap_afni/afni/v__build_afni_xlib.py +21 -1
  90. niwrap_afni/afni/v__chauffeur_afni.py +184 -2
  91. niwrap_afni/afni/v__command_globb.py +13 -7
  92. niwrap_afni/afni/v__compute_oc_weights.py +16 -1
  93. niwrap_afni/afni/v__deblank_file_names.py +13 -2
  94. niwrap_afni/afni/v__dice_metric.py +18 -14
  95. niwrap_afni/afni/v__djunct_edgy_align_check.py +82 -10
  96. niwrap_afni/afni/v__djunct_montage_coordinator.py +10 -1
  97. niwrap_afni/afni/v__get_afni_res.py +3 -2
  98. niwrap_afni/afni/v__grad_flip_test.py +38 -42
  99. niwrap_afni/afni/v__grayplot.py +34 -1
  100. niwrap_afni/afni/v__help_afni.py +63 -2
  101. niwrap_afni/afni/v__make_label_table.py +14 -1
  102. niwrap_afni/afni/v__no_ext.py +9 -2
  103. niwrap_afni/afni/v__reorder.py +10 -1
  104. niwrap_afni/afni/v__skull_strip_touch_up.py +10 -1
  105. niwrap_afni/afni/v__suma_make_spec_caret.py +62 -2
  106. niwrap_afni/afni/v__suma_make_spec_fs.py +180 -2
  107. niwrap_afni/afni/v__to_mni_qwarpar.py +21 -1
  108. niwrap_afni/afni/v__to_rai.py +23 -7
  109. {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.3.dist-info}/METADATA +1 -1
  110. {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.3.dist-info}/RECORD +111 -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__COMPUTE_OC_WEIGHTS_METADATA = Metadata(
9
- id="4427220e56bd9be0b0fb6b294b7d2992dca6669c.boutiques",
9
+ id="ebfead8518bbfa4656b258644c98429751538187.boutiques",
10
10
  name="@compute_OC_weights",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -16,6 +16,7 @@ V__COMPUTE_OC_WEIGHTS_METADATA = Metadata(
16
16
  VComputeOcWeightsParameters = typing.TypedDict('VComputeOcWeightsParameters', {
17
17
  "__STYX_TYPE__": typing.Literal["@compute_OC_weights"],
18
18
  "echo_times": typing.NotRequired[str | None],
19
+ "echo_times_file": typing.NotRequired[InputPathType | None],
19
20
  "echo_dsets": list[str],
20
21
  "prefix": typing.NotRequired[str | None],
21
22
  "def_to_equal": typing.NotRequired[str | None],
@@ -72,6 +73,7 @@ class VComputeOcWeightsOutputs(typing.NamedTuple):
72
73
  def v__compute_oc_weights_params(
73
74
  echo_dsets: list[str],
74
75
  echo_times: str | None = None,
76
+ echo_times_file: InputPathType | None = None,
75
77
  prefix: str | None = None,
76
78
  def_to_equal: str | None = None,
77
79
  oc_method: str | None = None,
@@ -87,6 +89,8 @@ def v__compute_oc_weights_params(
87
89
  echo_dsets: Specify one run of multi-echo EPI data.
88
90
  echo_times: Specify echo times as list (e.g., "15 30.5 41"). Use either\
89
91
  -echo_times or -echo_times_files.
92
+ echo_times_file: Specify file with echo times. Use either -echo_times\
93
+ or -echo_times_files.
90
94
  prefix: Specify prefix of resulting OC weights dataset (e.g.,\
91
95
  OC.weights.SUBJ).
92
96
  def_to_equal: Specify whether to default to equal weights (default =\
@@ -107,6 +111,8 @@ def v__compute_oc_weights_params(
107
111
  }
108
112
  if echo_times is not None:
109
113
  params["echo_times"] = echo_times
114
+ if echo_times_file is not None:
115
+ params["echo_times_file"] = echo_times_file
110
116
  if prefix is not None:
111
117
  params["prefix"] = prefix
112
118
  if def_to_equal is not None:
@@ -142,6 +148,11 @@ def v__compute_oc_weights_cargs(
142
148
  "-echo_times",
143
149
  params.get("echo_times")
144
150
  ])
151
+ if params.get("echo_times_file") is not None:
152
+ cargs.extend([
153
+ "-echo_times_file",
154
+ execution.input_file(params.get("echo_times_file"))
155
+ ])
145
156
  cargs.extend([
146
157
  "-echo_dsets",
147
158
  *params.get("echo_dsets")
@@ -228,6 +239,7 @@ def v__compute_oc_weights_execute(
228
239
  def v__compute_oc_weights(
229
240
  echo_dsets: list[str],
230
241
  echo_times: str | None = None,
242
+ echo_times_file: InputPathType | None = None,
231
243
  prefix: str | None = None,
232
244
  def_to_equal: str | None = None,
233
245
  oc_method: str | None = None,
@@ -248,6 +260,8 @@ def v__compute_oc_weights(
248
260
  echo_dsets: Specify one run of multi-echo EPI data.
249
261
  echo_times: Specify echo times as list (e.g., "15 30.5 41"). Use either\
250
262
  -echo_times or -echo_times_files.
263
+ echo_times_file: Specify file with echo times. Use either -echo_times\
264
+ or -echo_times_files.
251
265
  prefix: Specify prefix of resulting OC weights dataset (e.g.,\
252
266
  OC.weights.SUBJ).
253
267
  def_to_equal: Specify whether to default to equal weights (default =\
@@ -266,6 +280,7 @@ def v__compute_oc_weights(
266
280
  execution = runner.start_execution(V__COMPUTE_OC_WEIGHTS_METADATA)
267
281
  params = v__compute_oc_weights_params(
268
282
  echo_times=echo_times,
283
+ echo_times_file=echo_times_file,
269
284
  echo_dsets=echo_dsets,
270
285
  prefix=prefix,
271
286
  def_to_equal=def_to_equal,
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  V__DEBLANK_FILE_NAMES_METADATA = Metadata(
9
- id="da8da0abd18b50263679955b0ea74ae940b81571.boutiques",
9
+ id="68ddb73b60e7fe7159ec6fd9653bf2405c5c6592.boutiques",
10
10
  name="@DeblankFileNames",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -20,6 +20,7 @@ VDeblankFileNamesParameters = typing.TypedDict('VDeblankFileNamesParameters', {
20
20
  "demo_set": bool,
21
21
  "echo": bool,
22
22
  "help": bool,
23
+ "files": typing.NotRequired[list[InputPathType] | None],
23
24
  })
24
25
 
25
26
 
@@ -68,6 +69,7 @@ def v__deblank_file_names_params(
68
69
  demo_set: bool = False,
69
70
  echo: bool = False,
70
71
  help_: bool = False,
72
+ files: list[InputPathType] | None = None,
71
73
  ) -> VDeblankFileNamesParameters:
72
74
  """
73
75
  Build parameters.
@@ -78,6 +80,8 @@ def v__deblank_file_names_params(
78
80
  demo_set: Create a toy directory with bad names for testing.
79
81
  echo: Turn on script echo.
80
82
  help_: Display help message.
83
+ files: Specify files to fix as opposed to letting it fix all the names\
84
+ in the current directory.
81
85
  Returns:
82
86
  Parameter dictionary
83
87
  """
@@ -89,6 +93,8 @@ def v__deblank_file_names_params(
89
93
  "echo": echo,
90
94
  "help": help_,
91
95
  }
96
+ if files is not None:
97
+ params["files"] = files
92
98
  return params
93
99
 
94
100
 
@@ -117,7 +123,8 @@ def v__deblank_file_names_cargs(
117
123
  cargs.append("-echo")
118
124
  if params.get("help"):
119
125
  cargs.append("-help")
120
- cargs.append("[FILES...]")
126
+ if params.get("files") is not None:
127
+ cargs.extend([execution.input_file(f) for f in params.get("files")])
121
128
  return cargs
122
129
 
123
130
 
@@ -170,6 +177,7 @@ def v__deblank_file_names(
170
177
  demo_set: bool = False,
171
178
  echo: bool = False,
172
179
  help_: bool = False,
180
+ files: list[InputPathType] | None = None,
173
181
  runner: Runner | None = None,
174
182
  ) -> VDeblankFileNamesOutputs:
175
183
  """
@@ -185,6 +193,8 @@ def v__deblank_file_names(
185
193
  demo_set: Create a toy directory with bad names for testing.
186
194
  echo: Turn on script echo.
187
195
  help_: Display help message.
196
+ files: Specify files to fix as opposed to letting it fix all the names\
197
+ in the current directory.
188
198
  runner: Command runner.
189
199
  Returns:
190
200
  NamedTuple of outputs (described in `VDeblankFileNamesOutputs`).
@@ -197,6 +207,7 @@ def v__deblank_file_names(
197
207
  demo_set=demo_set,
198
208
  echo=echo,
199
209
  help_=help_,
210
+ files=files,
200
211
  )
201
212
  return v__deblank_file_names_execute(params, execution)
202
213
 
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  V__DICE_METRIC_METADATA = Metadata(
9
- id="98eaa1a4d4837bef42b0135a72612d83719e6632.boutiques",
9
+ id="f304dc18b4f65735b81cfb996e5968c559cf2e3d.boutiques",
10
10
  name="@DiceMetric",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -18,8 +18,8 @@ VDiceMetricParameters = typing.TypedDict('VDiceMetricParameters', {
18
18
  "base": InputPathType,
19
19
  "dsets": list[InputPathType],
20
20
  "max_roi": typing.NotRequired[float | None],
21
+ "labeltable": typing.NotRequired[InputPathType | None],
21
22
  "forceoutput": typing.NotRequired[InputPathType | None],
22
- "forceoutput_1": typing.NotRequired[InputPathType | None],
23
23
  "echo": bool,
24
24
  "save_match": bool,
25
25
  "save_diff": bool,
@@ -74,8 +74,8 @@ def v__dice_metric_params(
74
74
  base: InputPathType,
75
75
  dsets: list[InputPathType],
76
76
  max_roi: float | None = None,
77
+ labeltable: InputPathType | None = None,
77
78
  forceoutput: InputPathType | None = None,
78
- forceoutput_1: InputPathType | None = None,
79
79
  echo: bool = False,
80
80
  save_match: bool = False,
81
81
  save_diff: bool = False,
@@ -94,8 +94,10 @@ def v__dice_metric_params(
94
94
  should be the last option on the command line.
95
95
  max_roi: The maximum possible ROI index. Default is 12 or based on\
96
96
  LTFILE if specified.
97
+ labeltable: If given, the labeltable is used to set the default MAX_ROI\
98
+ parameter. Also, this option forces an output for each key in the\
99
+ LTFILE.
97
100
  forceoutput: If given, force output for each class in LTFILE.
98
- forceoutput_1: If given, force output for each class in LTFILE.
99
101
  echo: Set echo.
100
102
  save_match: Save volume showing BASE*equals(BASE,DSET).
101
103
  save_diff: Save volume showing BASE*(1-equals(BASE,DSET)).
@@ -126,10 +128,10 @@ def v__dice_metric_params(
126
128
  }
127
129
  if max_roi is not None:
128
130
  params["max_roi"] = max_roi
131
+ if labeltable is not None:
132
+ params["labeltable"] = labeltable
129
133
  if forceoutput is not None:
130
134
  params["forceoutput"] = forceoutput
131
- if forceoutput_1 is not None:
132
- params["forceoutput_1"] = forceoutput_1
133
135
  if prefix is not None:
134
136
  params["prefix"] = prefix
135
137
  return params
@@ -163,15 +165,15 @@ def v__dice_metric_cargs(
163
165
  "-max_N_roi",
164
166
  str(params.get("max_roi"))
165
167
  ])
166
- if params.get("forceoutput") is not None:
168
+ if params.get("labeltable") is not None:
167
169
  cargs.extend([
168
- "-forceoutput",
169
- execution.input_file(params.get("forceoutput"))
170
+ "-labeltable",
171
+ execution.input_file(params.get("labeltable"))
170
172
  ])
171
- if params.get("forceoutput_1") is not None:
173
+ if params.get("forceoutput") is not None:
172
174
  cargs.extend([
173
175
  "-forceoutput",
174
- execution.input_file(params.get("forceoutput_1"))
176
+ execution.input_file(params.get("forceoutput"))
175
177
  ])
176
178
  if params.get("echo"):
177
179
  cargs.append("-echo")
@@ -242,8 +244,8 @@ def v__dice_metric(
242
244
  base: InputPathType,
243
245
  dsets: list[InputPathType],
244
246
  max_roi: float | None = None,
247
+ labeltable: InputPathType | None = None,
245
248
  forceoutput: InputPathType | None = None,
246
- forceoutput_1: InputPathType | None = None,
247
249
  echo: bool = False,
248
250
  save_match: bool = False,
249
251
  save_diff: bool = False,
@@ -267,8 +269,10 @@ def v__dice_metric(
267
269
  should be the last option on the command line.
268
270
  max_roi: The maximum possible ROI index. Default is 12 or based on\
269
271
  LTFILE if specified.
272
+ labeltable: If given, the labeltable is used to set the default MAX_ROI\
273
+ parameter. Also, this option forces an output for each key in the\
274
+ LTFILE.
270
275
  forceoutput: If given, force output for each class in LTFILE.
271
- forceoutput_1: If given, force output for each class in LTFILE.
272
276
  echo: Set echo.
273
277
  save_match: Save volume showing BASE*equals(BASE,DSET).
274
278
  save_diff: Save volume showing BASE*(1-equals(BASE,DSET)).
@@ -292,8 +296,8 @@ def v__dice_metric(
292
296
  base=base,
293
297
  dsets=dsets,
294
298
  max_roi=max_roi,
299
+ labeltable=labeltable,
295
300
  forceoutput=forceoutput,
296
- forceoutput_1=forceoutput_1,
297
301
  echo=echo,
298
302
  save_match=save_match,
299
303
  save_diff=save_diff,
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  V__DJUNCT_EDGY_ALIGN_CHECK_METADATA = Metadata(
9
- id="b256b5bb4b47e9c6b85c30cb947f43710826ac49.boutiques",
9
+ id="8e479ed45f214bcb93f3842c5934b8e03c6fc47c.boutiques",
10
10
  name="@djunct_edgy_align_check",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -29,6 +29,15 @@ VDjunctEdgyAlignCheckParameters = typing.TypedDict('VDjunctEdgyAlignCheckParamet
29
29
  "monty": typing.NotRequired[float | None],
30
30
  "use_olay_grid": typing.NotRequired[str | None],
31
31
  "label_mode": typing.NotRequired[str | None],
32
+ "help_flag": bool,
33
+ "ver_flag": bool,
34
+ "echo_flag": bool,
35
+ "sharpen_ulay_off_flag": bool,
36
+ "mask_olay_edges_flag": bool,
37
+ "no_cor_flag": bool,
38
+ "no_sag_flag": bool,
39
+ "no_axi_flag": bool,
40
+ "no_clean_flag": bool,
32
41
  "ulay_range": typing.NotRequired[list[float] | None],
33
42
  "ulay_range_nz": typing.NotRequired[list[float] | None],
34
43
  "ulay_range_am": typing.NotRequired[list[float] | None],
@@ -89,6 +98,15 @@ def v__djunct_edgy_align_check_params(
89
98
  monty: float | None = None,
90
99
  use_olay_grid: str | None = None,
91
100
  label_mode: str | None = None,
101
+ help_flag: bool = False,
102
+ ver_flag: bool = False,
103
+ echo_flag: bool = False,
104
+ sharpen_ulay_off_flag: bool = False,
105
+ mask_olay_edges_flag: bool = False,
106
+ no_cor_flag: bool = False,
107
+ no_sag_flag: bool = False,
108
+ no_axi_flag: bool = False,
109
+ no_clean_flag: bool = False,
92
110
  ulay_range: list[float] | None = None,
93
111
  ulay_range_nz: list[float] | None = None,
94
112
  ulay_range_am: list[float] | None = None,
@@ -111,6 +129,15 @@ def v__djunct_edgy_align_check_params(
111
129
  monty: Number of slices in Y-direction for montage.
112
130
  use_olay_grid: Grid interpolation method for overlay.
113
131
  label_mode: Mode for labeling.
132
+ help_flag: Display help message.
133
+ ver_flag: Show version.
134
+ echo_flag: Echo commands.
135
+ sharpen_ulay_off_flag: Disable underlay sharpening.
136
+ mask_olay_edges_flag: Mask overlay edges.
137
+ no_cor_flag: Exclude coronal plane.
138
+ no_sag_flag: Exclude sagittal plane.
139
+ no_axi_flag: Exclude axial plane.
140
+ no_clean_flag: Disable cleaning temporary files.
114
141
  ulay_range: Range for underlay {umin umax}.
115
142
  ulay_range_nz: Range for non-zero underlay {umin umax}.
116
143
  ulay_range_am: Range for auto-mask underlay {umin umax}.
@@ -122,6 +149,15 @@ def v__djunct_edgy_align_check_params(
122
149
  "ULAY": ulay,
123
150
  "OLAY": olay,
124
151
  "PREFIX": prefix,
152
+ "help_flag": help_flag,
153
+ "ver_flag": ver_flag,
154
+ "echo_flag": echo_flag,
155
+ "sharpen_ulay_off_flag": sharpen_ulay_off_flag,
156
+ "mask_olay_edges_flag": mask_olay_edges_flag,
157
+ "no_cor_flag": no_cor_flag,
158
+ "no_sag_flag": no_sag_flag,
159
+ "no_axi_flag": no_axi_flag,
160
+ "no_clean_flag": no_clean_flag,
125
161
  }
126
162
  if set_dicom_xyz is not None:
127
163
  params["set_dicom_xyz"] = set_dicom_xyz
@@ -194,15 +230,24 @@ def v__djunct_edgy_align_check_cargs(
194
230
  cargs.append(params.get("use_olay_grid"))
195
231
  if params.get("label_mode") is not None:
196
232
  cargs.append(params.get("label_mode"))
197
- cargs.append("[help_flag]")
198
- cargs.append("[ver_flag]")
199
- cargs.append("[echo_flag]")
200
- cargs.append("[sharpen_ulay_off_flag]")
201
- cargs.append("[mask_olay_edges_flag]")
202
- cargs.append("[no_cor_flag]")
203
- cargs.append("[no_sag_flag]")
204
- cargs.append("[no_axi_flag]")
205
- cargs.append("[no_clean_flag]")
233
+ if params.get("help_flag"):
234
+ cargs.append("-help")
235
+ if params.get("ver_flag"):
236
+ cargs.append("-ver")
237
+ if params.get("echo_flag"):
238
+ cargs.append("-echo")
239
+ if params.get("sharpen_ulay_off_flag"):
240
+ cargs.append("-sharpen_ulay_off")
241
+ if params.get("mask_olay_edges_flag"):
242
+ cargs.append("-mask_olay_edges")
243
+ if params.get("no_cor_flag"):
244
+ cargs.append("-no_cor")
245
+ if params.get("no_sag_flag"):
246
+ cargs.append("-no_sag")
247
+ if params.get("no_axi_flag"):
248
+ cargs.append("-no_axi")
249
+ if params.get("no_clean_flag"):
250
+ cargs.append("-no_clean")
206
251
  if params.get("ulay_range") is not None:
207
252
  cargs.extend(map(str, params.get("ulay_range")))
208
253
  if params.get("ulay_range_nz") is not None:
@@ -271,6 +316,15 @@ def v__djunct_edgy_align_check(
271
316
  monty: float | None = None,
272
317
  use_olay_grid: str | None = None,
273
318
  label_mode: str | None = None,
319
+ help_flag: bool = False,
320
+ ver_flag: bool = False,
321
+ echo_flag: bool = False,
322
+ sharpen_ulay_off_flag: bool = False,
323
+ mask_olay_edges_flag: bool = False,
324
+ no_cor_flag: bool = False,
325
+ no_sag_flag: bool = False,
326
+ no_axi_flag: bool = False,
327
+ no_clean_flag: bool = False,
274
328
  ulay_range: list[float] | None = None,
275
329
  ulay_range_nz: list[float] | None = None,
276
330
  ulay_range_am: list[float] | None = None,
@@ -299,6 +353,15 @@ def v__djunct_edgy_align_check(
299
353
  monty: Number of slices in Y-direction for montage.
300
354
  use_olay_grid: Grid interpolation method for overlay.
301
355
  label_mode: Mode for labeling.
356
+ help_flag: Display help message.
357
+ ver_flag: Show version.
358
+ echo_flag: Echo commands.
359
+ sharpen_ulay_off_flag: Disable underlay sharpening.
360
+ mask_olay_edges_flag: Mask overlay edges.
361
+ no_cor_flag: Exclude coronal plane.
362
+ no_sag_flag: Exclude sagittal plane.
363
+ no_axi_flag: Exclude axial plane.
364
+ no_clean_flag: Disable cleaning temporary files.
302
365
  ulay_range: Range for underlay {umin umax}.
303
366
  ulay_range_nz: Range for non-zero underlay {umin umax}.
304
367
  ulay_range_am: Range for auto-mask underlay {umin umax}.
@@ -323,6 +386,15 @@ def v__djunct_edgy_align_check(
323
386
  monty=monty,
324
387
  use_olay_grid=use_olay_grid,
325
388
  label_mode=label_mode,
389
+ help_flag=help_flag,
390
+ ver_flag=ver_flag,
391
+ echo_flag=echo_flag,
392
+ sharpen_ulay_off_flag=sharpen_ulay_off_flag,
393
+ mask_olay_edges_flag=mask_olay_edges_flag,
394
+ no_cor_flag=no_cor_flag,
395
+ no_sag_flag=no_sag_flag,
396
+ no_axi_flag=no_axi_flag,
397
+ no_clean_flag=no_clean_flag,
326
398
  ulay_range=ulay_range,
327
399
  ulay_range_nz=ulay_range_nz,
328
400
  ulay_range_am=ulay_range_am,
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  V__DJUNCT_MONTAGE_COORDINATOR_METADATA = Metadata(
9
- id="9c2cbb473d95421a680be52f18d9f90f2ec86dfb.boutiques",
9
+ id="8d747f7169ee7e4179813dc1818309f1663d903c.boutiques",
10
10
  name="@djunct_montage_coordinator",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -18,6 +18,7 @@ VDjunctMontageCoordinatorParameters = typing.TypedDict('VDjunctMontageCoordinato
18
18
  "input_file": InputPathType,
19
19
  "montx": float,
20
20
  "monty": float,
21
+ "out_ijk": bool,
21
22
  "out_xyz": bool,
22
23
  "help": bool,
23
24
  "version": bool,
@@ -70,6 +71,7 @@ def v__djunct_montage_coordinator_params(
70
71
  input_file: InputPathType,
71
72
  montx: float,
72
73
  monty: float,
74
+ out_ijk: bool = False,
73
75
  out_xyz: bool = False,
74
76
  help_: bool = False,
75
77
  version: bool = False,
@@ -83,6 +85,7 @@ def v__djunct_montage_coordinator_params(
83
85
  of cols).
84
86
  monty: Montage dimension: number of panels along y-axis (i.e., number\
85
87
  of rows).
88
+ out_ijk: Make program output 'I J K' values.
86
89
  out_xyz: Make program output 'X Y Z' values.
87
90
  help_: See helpfile.
88
91
  version: See version number.
@@ -94,6 +97,7 @@ def v__djunct_montage_coordinator_params(
94
97
  "input_file": input_file,
95
98
  "montx": montx,
96
99
  "monty": monty,
100
+ "out_ijk": out_ijk,
97
101
  "out_xyz": out_xyz,
98
102
  "help": help_,
99
103
  "version": version,
@@ -128,6 +132,8 @@ def v__djunct_montage_coordinator_cargs(
128
132
  "-monty",
129
133
  str(params.get("monty"))
130
134
  ])
135
+ if params.get("out_ijk"):
136
+ cargs.append("-out_ijk")
131
137
  if params.get("out_xyz"):
132
138
  cargs.append("-out_xyz")
133
139
  if params.get("help"):
@@ -186,6 +192,7 @@ def v__djunct_montage_coordinator(
186
192
  input_file: InputPathType,
187
193
  montx: float,
188
194
  monty: float,
195
+ out_ijk: bool = False,
189
196
  out_xyz: bool = False,
190
197
  help_: bool = False,
191
198
  version: bool = False,
@@ -205,6 +212,7 @@ def v__djunct_montage_coordinator(
205
212
  of cols).
206
213
  monty: Montage dimension: number of panels along y-axis (i.e., number\
207
214
  of rows).
215
+ out_ijk: Make program output 'I J K' values.
208
216
  out_xyz: Make program output 'X Y Z' values.
209
217
  help_: See helpfile.
210
218
  version: See version number.
@@ -218,6 +226,7 @@ def v__djunct_montage_coordinator(
218
226
  input_file=input_file,
219
227
  montx=montx,
220
228
  monty=monty,
229
+ out_ijk=out_ijk,
221
230
  out_xyz=out_xyz,
222
231
  help_=help_,
223
232
  version=version,
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  V__GET_AFNI_RES_METADATA = Metadata(
9
- id="8e9d3bd1817738927cfd2699a3bf4ffe4e305e07.boutiques",
9
+ id="e4786e6ad961f0208b6a0d65d657fb95dbacabc8.boutiques",
10
10
  name="@GetAfniRes",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -96,8 +96,9 @@ def v__get_afni_res_cargs(
96
96
  Command-line arguments.
97
97
  """
98
98
  cargs = []
99
+ cargs.append("@GetAfniRes")
99
100
  if params.get("output_type") is not None:
100
- cargs.append("@GetAfniRes" + params.get("output_type"))
101
+ cargs.append(params.get("output_type"))
101
102
  cargs.append(execution.input_file(params.get("input_dataset")))
102
103
  return cargs
103
104
 
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  V__GRAD_FLIP_TEST_METADATA = Metadata(
9
- id="83d02b240a4d1a85f3fc3038b96542312f180177.boutiques",
9
+ id="dda0017b4db56e4bd18047650c9ce39bfa2dacfb.boutiques",
10
10
  name="@GradFlipTest",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -16,10 +16,10 @@ V__GRAD_FLIP_TEST_METADATA = Metadata(
16
16
  VGradFlipTestParameters = typing.TypedDict('VGradFlipTestParameters', {
17
17
  "__STYX_TYPE__": typing.Literal["@GradFlipTest"],
18
18
  "dwi": InputPathType,
19
+ "grad_row_vec": typing.NotRequired[InputPathType | None],
20
+ "grad_col_vec": typing.NotRequired[InputPathType | None],
21
+ "grad_col_matA": typing.NotRequired[InputPathType | None],
19
22
  "grad_col_matT": typing.NotRequired[InputPathType | None],
20
- "grad_col_matT_1": typing.NotRequired[InputPathType | None],
21
- "grad_col_matT_2": typing.NotRequired[InputPathType | None],
22
- "grad_col_matT_3": typing.NotRequired[InputPathType | None],
23
23
  "mask": typing.NotRequired[InputPathType | None],
24
24
  "bvals": typing.NotRequired[InputPathType | None],
25
25
  "thresh_fa": typing.NotRequired[float | None],
@@ -78,10 +78,10 @@ class VGradFlipTestOutputs(typing.NamedTuple):
78
78
 
79
79
  def v__grad_flip_test_params(
80
80
  dwi: InputPathType,
81
+ grad_row_vec: InputPathType | None = None,
82
+ grad_col_vec: InputPathType | None = None,
83
+ grad_col_mat_a: InputPathType | None = None,
81
84
  grad_col_mat_t: InputPathType | None = None,
82
- grad_col_mat_t_1: InputPathType | None = None,
83
- grad_col_mat_t_2: InputPathType | None = None,
84
- grad_col_mat_t_3: InputPathType | None = None,
85
85
  mask: InputPathType | None = None,
86
86
  bvals: InputPathType | None = None,
87
87
  thresh_fa: float | None = None,
@@ -97,14 +97,12 @@ def v__grad_flip_test_params(
97
97
 
98
98
  Args:
99
99
  dwi: Set of DWIs (N total volumes).
100
+ grad_row_vec: Set of row-wise gradient vectors.
101
+ grad_col_vec: Set of column-wise gradient vectors.
102
+ grad_col_mat_a: Set of column-wise g- or b-matrix elements\
103
+ ("AFNI"-style format, "diagonal-first").
100
104
  grad_col_mat_t: Set of column-wise g- or b-matrix elements\
101
105
  ("TORTOISE"-style format, "row-first").
102
- grad_col_mat_t_1: Set of column-wise g- or b-matrix elements\
103
- ("TORTOISE"-style format, "row-first").
104
- grad_col_mat_t_2: Set of column-wise g- or b-matrix elements\
105
- ("TORTOISE"-style format, "row-first").
106
- grad_col_mat_t_3: Set of column-wise g- or b-matrix elements\
107
- ("TORTOISE"-style format, "row-first").
108
106
  mask: Optional mask (probably whole brain); otherwise, automasking is\
109
107
  performed.
110
108
  bvals: Can input bvals, if necessary (but shouldn't be necessary?).
@@ -127,14 +125,14 @@ def v__grad_flip_test_params(
127
125
  "scale_out_1000": scale_out_1000,
128
126
  "do_clean": do_clean,
129
127
  }
128
+ if grad_row_vec is not None:
129
+ params["grad_row_vec"] = grad_row_vec
130
+ if grad_col_vec is not None:
131
+ params["grad_col_vec"] = grad_col_vec
132
+ if grad_col_mat_a is not None:
133
+ params["grad_col_matA"] = grad_col_mat_a
130
134
  if grad_col_mat_t is not None:
131
135
  params["grad_col_matT"] = grad_col_mat_t
132
- if grad_col_mat_t_1 is not None:
133
- params["grad_col_matT_1"] = grad_col_mat_t_1
134
- if grad_col_mat_t_2 is not None:
135
- params["grad_col_matT_2"] = grad_col_mat_t_2
136
- if grad_col_mat_t_3 is not None:
137
- params["grad_col_matT_3"] = grad_col_mat_t_3
138
136
  if mask is not None:
139
137
  params["mask"] = mask
140
138
  if bvals is not None:
@@ -171,25 +169,25 @@ def v__grad_flip_test_cargs(
171
169
  "-in_dwi",
172
170
  execution.input_file(params.get("dwi"))
173
171
  ])
174
- if params.get("grad_col_matT") is not None:
172
+ if params.get("grad_row_vec") is not None:
175
173
  cargs.extend([
176
- "-in_col_matT",
177
- execution.input_file(params.get("grad_col_matT"))
174
+ "-in_row_vec",
175
+ execution.input_file(params.get("grad_row_vec"))
178
176
  ])
179
- if params.get("grad_col_matT_1") is not None:
177
+ if params.get("grad_col_vec") is not None:
180
178
  cargs.extend([
181
- "-in_col_matT",
182
- execution.input_file(params.get("grad_col_matT_1"))
179
+ "-in_col_vec",
180
+ execution.input_file(params.get("grad_col_vec"))
183
181
  ])
184
- if params.get("grad_col_matT_2") is not None:
182
+ if params.get("grad_col_matA") is not None:
185
183
  cargs.extend([
186
- "-in_col_matT",
187
- execution.input_file(params.get("grad_col_matT_2"))
184
+ "-in_col_matA",
185
+ execution.input_file(params.get("grad_col_matA"))
188
186
  ])
189
- if params.get("grad_col_matT_3") is not None:
187
+ if params.get("grad_col_matT") is not None:
190
188
  cargs.extend([
191
189
  "-in_col_matT",
192
- execution.input_file(params.get("grad_col_matT_3"))
190
+ execution.input_file(params.get("grad_col_matT"))
193
191
  ])
194
192
  if params.get("mask") is not None:
195
193
  cargs.extend([
@@ -280,10 +278,10 @@ def v__grad_flip_test_execute(
280
278
 
281
279
  def v__grad_flip_test(
282
280
  dwi: InputPathType,
281
+ grad_row_vec: InputPathType | None = None,
282
+ grad_col_vec: InputPathType | None = None,
283
+ grad_col_mat_a: InputPathType | None = None,
283
284
  grad_col_mat_t: InputPathType | None = None,
284
- grad_col_mat_t_1: InputPathType | None = None,
285
- grad_col_mat_t_2: InputPathType | None = None,
286
- grad_col_mat_t_3: InputPathType | None = None,
287
285
  mask: InputPathType | None = None,
288
286
  bvals: InputPathType | None = None,
289
287
  thresh_fa: float | None = None,
@@ -304,14 +302,12 @@ def v__grad_flip_test(
304
302
 
305
303
  Args:
306
304
  dwi: Set of DWIs (N total volumes).
305
+ grad_row_vec: Set of row-wise gradient vectors.
306
+ grad_col_vec: Set of column-wise gradient vectors.
307
+ grad_col_mat_a: Set of column-wise g- or b-matrix elements\
308
+ ("AFNI"-style format, "diagonal-first").
307
309
  grad_col_mat_t: Set of column-wise g- or b-matrix elements\
308
310
  ("TORTOISE"-style format, "row-first").
309
- grad_col_mat_t_1: Set of column-wise g- or b-matrix elements\
310
- ("TORTOISE"-style format, "row-first").
311
- grad_col_mat_t_2: Set of column-wise g- or b-matrix elements\
312
- ("TORTOISE"-style format, "row-first").
313
- grad_col_mat_t_3: Set of column-wise g- or b-matrix elements\
314
- ("TORTOISE"-style format, "row-first").
315
311
  mask: Optional mask (probably whole brain); otherwise, automasking is\
316
312
  performed.
317
313
  bvals: Can input bvals, if necessary (but shouldn't be necessary?).
@@ -333,10 +329,10 @@ def v__grad_flip_test(
333
329
  execution = runner.start_execution(V__GRAD_FLIP_TEST_METADATA)
334
330
  params = v__grad_flip_test_params(
335
331
  dwi=dwi,
332
+ grad_row_vec=grad_row_vec,
333
+ grad_col_vec=grad_col_vec,
334
+ grad_col_mat_a=grad_col_mat_a,
336
335
  grad_col_mat_t=grad_col_mat_t,
337
- grad_col_mat_t_1=grad_col_mat_t_1,
338
- grad_col_mat_t_2=grad_col_mat_t_2,
339
- grad_col_mat_t_3=grad_col_mat_t_3,
340
336
  mask=mask,
341
337
  bvals=bvals,
342
338
  thresh_fa=thresh_fa,