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.

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.2.dist-info}/METADATA +1 -1
  110. {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.2.dist-info}/RECORD +111 -111
  111. {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.2.dist-info}/WHEEL +0 -0
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  CONVERT_SURFACE_METADATA = Metadata(
9
- id="2b7452b8bf057bc43ac7efc4c5a01abd5236749c.boutiques",
9
+ id="1515f74e677d72fcea38965b1c198adce4b27a82.boutiques",
10
10
  name="ConvertSurface",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -19,8 +19,11 @@ ConvertSurfaceParameters = typing.TypedDict('ConvertSurfaceParameters', {
19
19
  "output_surface": str,
20
20
  "surface_volume": typing.NotRequired[str | None],
21
21
  "transform_tlrc": bool,
22
+ "mni_rai": bool,
22
23
  "mni_lpi": bool,
24
+ "xmat_1D": typing.NotRequired[str | None],
23
25
  "ixmat_1D": typing.NotRequired[str | None],
26
+ "seed": typing.NotRequired[str | None],
24
27
  "native": bool,
25
28
  })
26
29
 
@@ -72,8 +75,11 @@ def convert_surface_params(
72
75
  output_surface: str,
73
76
  surface_volume: str | None = None,
74
77
  transform_tlrc: bool = False,
78
+ mni_rai: bool = False,
75
79
  mni_lpi: bool = False,
80
+ xmat_1_d: str | None = None,
76
81
  ixmat_1_d: str | None = None,
82
+ seed: str | None = None,
77
83
  native: bool = False,
78
84
  ) -> ConvertSurfaceParameters:
79
85
  """
@@ -84,8 +90,12 @@ def convert_surface_params(
84
90
  output_surface: Specifies the output surface.
85
91
  surface_volume: Specifies a surface volume.
86
92
  transform_tlrc: Apply Talairach transform.
93
+ mni_rai: Turn AFNI tlrc coordinates (RAI) into MNI coord space in RAI.
87
94
  mni_lpi: Turn AFNI tlrc coordinates (RAI) into MNI coord space in LPI.
95
+ xmat_1_d: Apply transformation specified in 1D file.
88
96
  ixmat_1_d: Apply inverse transformation specified in 1D file.
97
+ seed: Specify SEED to seed the random number generator for random\
98
+ matrix generation.
89
99
  native: Write the output surface in the coordinate system native to its\
90
100
  format.
91
101
  Returns:
@@ -96,13 +106,18 @@ def convert_surface_params(
96
106
  "input_surface": input_surface,
97
107
  "output_surface": output_surface,
98
108
  "transform_tlrc": transform_tlrc,
109
+ "mni_rai": mni_rai,
99
110
  "mni_lpi": mni_lpi,
100
111
  "native": native,
101
112
  }
102
113
  if surface_volume is not None:
103
114
  params["surface_volume"] = surface_volume
115
+ if xmat_1_d is not None:
116
+ params["xmat_1D"] = xmat_1_d
104
117
  if ixmat_1_d is not None:
105
118
  params["ixmat_1D"] = ixmat_1_d
119
+ if seed is not None:
120
+ params["seed"] = seed
106
121
  return params
107
122
 
108
123
 
@@ -136,13 +151,25 @@ def convert_surface_cargs(
136
151
  ])
137
152
  if params.get("transform_tlrc"):
138
153
  cargs.append("-tlrc")
154
+ if params.get("mni_rai"):
155
+ cargs.append("-MNI_rai")
139
156
  if params.get("mni_lpi"):
140
157
  cargs.append("-MNI_lpi")
158
+ if params.get("xmat_1D") is not None:
159
+ cargs.extend([
160
+ "-xmat_1D",
161
+ params.get("xmat_1D")
162
+ ])
141
163
  if params.get("ixmat_1D") is not None:
142
164
  cargs.extend([
143
165
  "-ixmat_1D",
144
166
  params.get("ixmat_1D")
145
167
  ])
168
+ if params.get("seed") is not None:
169
+ cargs.extend([
170
+ "-seed",
171
+ params.get("seed")
172
+ ])
146
173
  if params.get("native"):
147
174
  cargs.append("-native")
148
175
  return cargs
@@ -198,8 +225,11 @@ def convert_surface(
198
225
  output_surface: str,
199
226
  surface_volume: str | None = None,
200
227
  transform_tlrc: bool = False,
228
+ mni_rai: bool = False,
201
229
  mni_lpi: bool = False,
230
+ xmat_1_d: str | None = None,
202
231
  ixmat_1_d: str | None = None,
232
+ seed: str | None = None,
203
233
  native: bool = False,
204
234
  runner: Runner | None = None,
205
235
  ) -> ConvertSurfaceOutputs:
@@ -216,8 +246,12 @@ def convert_surface(
216
246
  output_surface: Specifies the output surface.
217
247
  surface_volume: Specifies a surface volume.
218
248
  transform_tlrc: Apply Talairach transform.
249
+ mni_rai: Turn AFNI tlrc coordinates (RAI) into MNI coord space in RAI.
219
250
  mni_lpi: Turn AFNI tlrc coordinates (RAI) into MNI coord space in LPI.
251
+ xmat_1_d: Apply transformation specified in 1D file.
220
252
  ixmat_1_d: Apply inverse transformation specified in 1D file.
253
+ seed: Specify SEED to seed the random number generator for random\
254
+ matrix generation.
221
255
  native: Write the output surface in the coordinate system native to its\
222
256
  format.
223
257
  runner: Command runner.
@@ -231,8 +265,11 @@ def convert_surface(
231
265
  output_surface=output_surface,
232
266
  surface_volume=surface_volume,
233
267
  transform_tlrc=transform_tlrc,
268
+ mni_rai=mni_rai,
234
269
  mni_lpi=mni_lpi,
270
+ xmat_1_d=xmat_1_d,
235
271
  ixmat_1_d=ixmat_1_d,
272
+ seed=seed,
236
273
  native=native,
237
274
  )
238
275
  return convert_surface_execute(params, execution)
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  DICOM_HINFO_METADATA = Metadata(
9
- id="0de7df6566656068c4dc0dc5d6d2bae576cab754.boutiques",
9
+ id="f60ca8dfbe8adb47a80fe29002ccd4b8c68b8af2.boutiques",
10
10
  name="dicom_hinfo",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -20,6 +20,7 @@ DicomHinfoParameters = typing.TypedDict('DicomHinfoParameters', {
20
20
  "full_entry": bool,
21
21
  "no_name": bool,
22
22
  "namelast": bool,
23
+ "files": list[InputPathType],
23
24
  })
24
25
 
25
26
 
@@ -64,6 +65,7 @@ class DicomHinfoOutputs(typing.NamedTuple):
64
65
 
65
66
  def dicom_hinfo_params(
66
67
  tag: list[str],
68
+ files: list[InputPathType],
67
69
  sepstr: str | None = None,
68
70
  full_entry: bool = False,
69
71
  no_name: bool = False,
@@ -75,6 +77,7 @@ def dicom_hinfo_params(
75
77
  Args:
76
78
  tag: Specify one or more DICOM tags to print, in the format aaaa,bbbb\
77
79
  where aaaa and bbbb are hexadecimal digits.
80
+ files: DICOM file(s) to process.
78
81
  sepstr: Use the specified string to separate fields instead of space.
79
82
  full_entry: Output the full entry if it is more than one word or\
80
83
  contains white space.
@@ -89,6 +92,7 @@ def dicom_hinfo_params(
89
92
  "full_entry": full_entry,
90
93
  "no_name": no_name,
91
94
  "namelast": namelast,
95
+ "files": files,
92
96
  }
93
97
  if sepstr is not None:
94
98
  params["sepstr"] = sepstr
@@ -125,7 +129,7 @@ def dicom_hinfo_cargs(
125
129
  cargs.append("-no_name")
126
130
  if params.get("namelast"):
127
131
  cargs.append("-namelast")
128
- cargs.append("[FILES...]")
132
+ cargs.extend([execution.input_file(f) for f in params.get("files")])
129
133
  return cargs
130
134
 
131
135
 
@@ -174,6 +178,7 @@ def dicom_hinfo_execute(
174
178
 
175
179
  def dicom_hinfo(
176
180
  tag: list[str],
181
+ files: list[InputPathType],
177
182
  sepstr: str | None = None,
178
183
  full_entry: bool = False,
179
184
  no_name: bool = False,
@@ -190,6 +195,7 @@ def dicom_hinfo(
190
195
  Args:
191
196
  tag: Specify one or more DICOM tags to print, in the format aaaa,bbbb\
192
197
  where aaaa and bbbb are hexadecimal digits.
198
+ files: DICOM file(s) to process.
193
199
  sepstr: Use the specified string to separate fields instead of space.
194
200
  full_entry: Output the full entry if it is more than one word or\
195
201
  contains white space.
@@ -207,6 +213,7 @@ def dicom_hinfo(
207
213
  full_entry=full_entry,
208
214
  no_name=no_name,
209
215
  namelast=namelast,
216
+ files=files,
210
217
  )
211
218
  return dicom_hinfo_execute(params, execution)
212
219
 
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  DSETSTAT2P_METADATA = Metadata(
9
- id="b07011bb5bdd8084543d33f9a06e2ddf0d7fd9f2.boutiques",
9
+ id="7f3cbe6fcd6916e0065f078f2d35efc0d9307028.boutiques",
10
10
  name="dsetstat2p",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -17,6 +17,8 @@ Dsetstat2pParameters = typing.TypedDict('Dsetstat2pParameters', {
17
17
  "__STYX_TYPE__": typing.Literal["dsetstat2p"],
18
18
  "dataset": str,
19
19
  "statval": float,
20
+ "bisided": bool,
21
+ "two_sided": bool,
20
22
  "one_sided": bool,
21
23
  "quiet": bool,
22
24
  })
@@ -67,6 +69,8 @@ class Dsetstat2pOutputs(typing.NamedTuple):
67
69
  def dsetstat2p_params(
68
70
  dataset: str,
69
71
  statval: float,
72
+ bisided: bool = False,
73
+ two_sided: bool = False,
70
74
  one_sided: bool = False,
71
75
  quiet: bool = False,
72
76
  ) -> Dsetstat2pParameters:
@@ -81,6 +85,8 @@ def dsetstat2p_params(
81
85
  of a string label selector.
82
86
  statval: Input stat-value S, which MUST be in the interval [0,\
83
87
  infinity).
88
+ bisided: Choose one-sided or bi-sided/two-sided testing.
89
+ two_sided: Choose one-sided or bi-sided/two-sided testing.
84
90
  one_sided: Choose one-sided or bi-sided/two-sided testing.
85
91
  quiet: An optional flag so that output ONLY the final statistic value\
86
92
  output to standard output; this can be then be viewed, redirected to a\
@@ -93,6 +99,8 @@ def dsetstat2p_params(
93
99
  "__STYXTYPE__": "dsetstat2p",
94
100
  "dataset": dataset,
95
101
  "statval": statval,
102
+ "bisided": bisided,
103
+ "two_sided": two_sided,
96
104
  "one_sided": one_sided,
97
105
  "quiet": quiet,
98
106
  }
@@ -116,6 +124,10 @@ def dsetstat2p_cargs(
116
124
  cargs.append("dsetstat2p")
117
125
  cargs.append(params.get("dataset"))
118
126
  cargs.append(str(params.get("statval")))
127
+ if params.get("bisided"):
128
+ cargs.append("-bisided")
129
+ if params.get("two_sided"):
130
+ cargs.append("-2sided")
119
131
  if params.get("one_sided"):
120
132
  cargs.append("-1sided")
121
133
  if params.get("quiet"):
@@ -170,6 +182,8 @@ def dsetstat2p_execute(
170
182
  def dsetstat2p(
171
183
  dataset: str,
172
184
  statval: float,
185
+ bisided: bool = False,
186
+ two_sided: bool = False,
173
187
  one_sided: bool = False,
174
188
  quiet: bool = False,
175
189
  runner: Runner | None = None,
@@ -189,6 +203,8 @@ def dsetstat2p(
189
203
  of a string label selector.
190
204
  statval: Input stat-value S, which MUST be in the interval [0,\
191
205
  infinity).
206
+ bisided: Choose one-sided or bi-sided/two-sided testing.
207
+ two_sided: Choose one-sided or bi-sided/two-sided testing.
192
208
  one_sided: Choose one-sided or bi-sided/two-sided testing.
193
209
  quiet: An optional flag so that output ONLY the final statistic value\
194
210
  output to standard output; this can be then be viewed, redirected to a\
@@ -203,6 +219,8 @@ def dsetstat2p(
203
219
  params = dsetstat2p_params(
204
220
  dataset=dataset,
205
221
  statval=statval,
222
+ bisided=bisided,
223
+ two_sided=two_sided,
206
224
  one_sided=one_sided,
207
225
  quiet=quiet,
208
226
  )
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  FAT_PROC_ALIGN_ANAT_PAIR_METADATA = Metadata(
9
- id="b81d41214e66c7f77b2bbc885c2f23369ad68254.boutiques",
9
+ id="bcbf8258d04aa65236dca0e8a04659e810e17311.boutiques",
10
10
  name="fat_proc_align_anat_pair",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -19,6 +19,7 @@ FatProcAlignAnatPairParameters = typing.TypedDict('FatProcAlignAnatPairParameter
19
19
  "input_t2w": InputPathType,
20
20
  "output_prefix": str,
21
21
  "output_grid": typing.NotRequired[float | None],
22
+ "out_t2w_grid": bool,
22
23
  "input_t2w_mask": typing.NotRequired[InputPathType | None],
23
24
  "do_ss_tmp_t1w": bool,
24
25
  "warp": typing.NotRequired[str | None],
@@ -80,6 +81,7 @@ def fat_proc_align_anat_pair_params(
80
81
  input_t2w: InputPathType,
81
82
  output_prefix: str,
82
83
  output_grid: float | None = None,
84
+ out_t2w_grid: bool = False,
83
85
  input_t2w_mask: InputPathType | None = None,
84
86
  do_ss_tmp_t1w: bool = False,
85
87
  warp: str | None = None,
@@ -96,6 +98,7 @@ def fat_proc_align_anat_pair_params(
96
98
  input_t2w: T2-weighted volume.
97
99
  output_prefix: Output prefix for files and snapshots.
98
100
  output_grid: Specify output T1w volume's final resolution (isotropic).
101
+ out_t2w_grid: Final T1w volume is on the T2W volume's grid.
99
102
  input_t2w_mask: Input a mask to apply to the T2w volume for alignment.
100
103
  do_ss_tmp_t1w: Apply skullstripping to the T1w volume during an\
101
104
  intermediate step.
@@ -114,6 +117,7 @@ def fat_proc_align_anat_pair_params(
114
117
  "input_t1w": input_t1w,
115
118
  "input_t2w": input_t2w,
116
119
  "output_prefix": output_prefix,
120
+ "out_t2w_grid": out_t2w_grid,
117
121
  "do_ss_tmp_t1w": do_ss_tmp_t1w,
118
122
  "no_cmd_out": no_cmd_out,
119
123
  "no_clean": no_clean,
@@ -163,6 +167,8 @@ def fat_proc_align_anat_pair_cargs(
163
167
  "-newgrid",
164
168
  str(params.get("output_grid"))
165
169
  ])
170
+ if params.get("out_t2w_grid"):
171
+ cargs.append("-out_t2w_grid")
166
172
  if params.get("input_t2w_mask") is not None:
167
173
  cargs.extend([
168
174
  "-in_t2w_mask",
@@ -244,6 +250,7 @@ def fat_proc_align_anat_pair(
244
250
  input_t2w: InputPathType,
245
251
  output_prefix: str,
246
252
  output_grid: float | None = None,
253
+ out_t2w_grid: bool = False,
247
254
  input_t2w_mask: InputPathType | None = None,
248
255
  do_ss_tmp_t1w: bool = False,
249
256
  warp: str | None = None,
@@ -266,6 +273,7 @@ def fat_proc_align_anat_pair(
266
273
  input_t2w: T2-weighted volume.
267
274
  output_prefix: Output prefix for files and snapshots.
268
275
  output_grid: Specify output T1w volume's final resolution (isotropic).
276
+ out_t2w_grid: Final T1w volume is on the T2W volume's grid.
269
277
  input_t2w_mask: Input a mask to apply to the T2w volume for alignment.
270
278
  do_ss_tmp_t1w: Apply skullstripping to the T1w volume during an\
271
279
  intermediate step.
@@ -287,6 +295,7 @@ def fat_proc_align_anat_pair(
287
295
  input_t2w=input_t2w,
288
296
  output_prefix=output_prefix,
289
297
  output_grid=output_grid,
298
+ out_t2w_grid=out_t2w_grid,
290
299
  input_t2w_mask=input_t2w_mask,
291
300
  do_ss_tmp_t1w=do_ss_tmp_t1w,
292
301
  warp=warp,
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  FAT_PROC_CONVERT_DCM_ANAT_METADATA = Metadata(
9
- id="b710eae3e3dfce23951c6f5d44bae1dc65d2b536.boutiques",
9
+ id="9a696ac4933b9ed6358cfaf7a01ab13f371ba70a.boutiques",
10
10
  name="fat_proc_convert_dcm_anat",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -15,6 +15,7 @@ FAT_PROC_CONVERT_DCM_ANAT_METADATA = Metadata(
15
15
 
16
16
  FatProcConvertDcmAnatParameters = typing.TypedDict('FatProcConvertDcmAnatParameters', {
17
17
  "__STYX_TYPE__": typing.Literal["fat_proc_convert_dcm_anat"],
18
+ "dicom_directory": typing.NotRequired[str | None],
18
19
  "nifti_input": typing.NotRequired[InputPathType | None],
19
20
  "prefix": str,
20
21
  "workdir": typing.NotRequired[str | None],
@@ -71,6 +72,7 @@ class FatProcConvertDcmAnatOutputs(typing.NamedTuple):
71
72
 
72
73
  def fat_proc_convert_dcm_anat_params(
73
74
  prefix: str,
75
+ dicom_directory: str | None = None,
74
76
  nifti_input: InputPathType | None = None,
75
77
  workdir: str | None = None,
76
78
  orient: str | None = None,
@@ -85,6 +87,8 @@ def fat_proc_convert_dcm_anat_params(
85
87
 
86
88
  Args:
87
89
  prefix: Set prefix (and path) for output data.
90
+ dicom_directory: Input as DICOM directory; DIR_IN should contain only\
91
+ DICOM files; all will be selected.
88
92
  nifti_input: Input as NIFTI file (zipped or unzipped fine). Alternative\
89
93
  to '-indir ..'.
90
94
  workdir: Specify a working directory, which can be removed (default\
@@ -111,6 +115,8 @@ def fat_proc_convert_dcm_anat_params(
111
115
  "no_cmd_out": no_cmd_out,
112
116
  "no_qc_view": no_qc_view,
113
117
  }
118
+ if dicom_directory is not None:
119
+ params["dicom_directory"] = dicom_directory
114
120
  if nifti_input is not None:
115
121
  params["nifti_input"] = nifti_input
116
122
  if workdir is not None:
@@ -137,6 +143,11 @@ def fat_proc_convert_dcm_anat_cargs(
137
143
  """
138
144
  cargs = []
139
145
  cargs.append("fat_proc_convert_dcm_anat")
146
+ if params.get("dicom_directory") is not None:
147
+ cargs.extend([
148
+ "-indir",
149
+ params.get("dicom_directory")
150
+ ])
140
151
  if params.get("nifti_input") is not None:
141
152
  cargs.extend([
142
153
  "-innii",
@@ -219,6 +230,7 @@ def fat_proc_convert_dcm_anat_execute(
219
230
 
220
231
  def fat_proc_convert_dcm_anat(
221
232
  prefix: str,
233
+ dicom_directory: str | None = None,
222
234
  nifti_input: InputPathType | None = None,
223
235
  workdir: str | None = None,
224
236
  orient: str | None = None,
@@ -239,6 +251,8 @@ def fat_proc_convert_dcm_anat(
239
251
 
240
252
  Args:
241
253
  prefix: Set prefix (and path) for output data.
254
+ dicom_directory: Input as DICOM directory; DIR_IN should contain only\
255
+ DICOM files; all will be selected.
242
256
  nifti_input: Input as NIFTI file (zipped or unzipped fine). Alternative\
243
257
  to '-indir ..'.
244
258
  workdir: Specify a working directory, which can be removed (default\
@@ -261,6 +275,7 @@ def fat_proc_convert_dcm_anat(
261
275
  runner = runner or get_global_runner()
262
276
  execution = runner.start_execution(FAT_PROC_CONVERT_DCM_ANAT_METADATA)
263
277
  params = fat_proc_convert_dcm_anat_params(
278
+ dicom_directory=dicom_directory,
264
279
  nifti_input=nifti_input,
265
280
  prefix=prefix,
266
281
  workdir=workdir,
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  FAT_ROI_ROW_METADATA = Metadata(
9
- id="027b80948cf0bd1ac046353e98ebb2ca04186002.boutiques",
9
+ id="a4a1c061c97d682d3d4d61503f3c28a11502fc06.boutiques",
10
10
  name="fat_roi_row",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -119,19 +119,16 @@ def fat_roi_row_cargs(
119
119
  "-r",
120
120
  params.get("roi")
121
121
  ])
122
- cargs.append("{")
123
122
  if params.get("matrix_files") is not None:
124
123
  cargs.extend([
125
124
  "-m",
126
125
  params.get("matrix_files")
127
126
  ])
128
- cargs.append("|")
129
127
  if params.get("list_file") is not None:
130
128
  cargs.extend([
131
129
  "-l",
132
130
  execution.input_file(params.get("list_file"))
133
131
  ])
134
- cargs.append("}")
135
132
  if params.get("extern_labs_no"):
136
133
  cargs.append("-E")
137
134
  return cargs
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  FSREAD_ANNOT_METADATA = Metadata(
9
- id="1aee44cf7efa00cb2630f7f3d7fb84af69eadb4f.boutiques",
9
+ id="791089bdafa5aacda0d88f6366afe5d004fd749e.boutiques",
10
10
  name="FSread_annot",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -155,7 +155,7 @@ def fsread_annot_cargs(
155
155
  cargs.append("FSread_annot")
156
156
  cargs.extend([
157
157
  "-input",
158
- "-" + execution.input_file(params.get("infile"))
158
+ execution.input_file(params.get("infile"))
159
159
  ])
160
160
  if params.get("hemi") is not None:
161
161
  cargs.extend([
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  IMROTATE_METADATA = Metadata(
9
- id="046eb12264816ed4b6d2246d2d697caf596e0670.boutiques",
9
+ id="7c817965f8c449aac8c4bfbde437361551c5546b.boutiques",
10
10
  name="imrotate",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -15,6 +15,7 @@ IMROTATE_METADATA = Metadata(
15
15
 
16
16
  ImrotateParameters = typing.TypedDict('ImrotateParameters', {
17
17
  "__STYX_TYPE__": typing.Literal["imrotate"],
18
+ "linear_interpolation": bool,
18
19
  "fourier_interpolation": bool,
19
20
  "dx": float,
20
21
  "dy": float,
@@ -72,6 +73,7 @@ def imrotate_params(
72
73
  phi: float,
73
74
  input_image: InputPathType,
74
75
  output_image: str,
76
+ linear_interpolation: bool = False,
75
77
  fourier_interpolation: bool = False,
76
78
  ) -> ImrotateParameters:
77
79
  """
@@ -83,12 +85,14 @@ def imrotate_params(
83
85
  phi: Degrees to rotate clockwise.
84
86
  input_image: Input image file.
85
87
  output_image: Output image file.
88
+ linear_interpolation: Use bilinear interpolation (default is bicubic).
86
89
  fourier_interpolation: Use Fourier interpolation.
87
90
  Returns:
88
91
  Parameter dictionary
89
92
  """
90
93
  params = {
91
94
  "__STYXTYPE__": "imrotate",
95
+ "linear_interpolation": linear_interpolation,
92
96
  "fourier_interpolation": fourier_interpolation,
93
97
  "dx": dx,
94
98
  "dy": dy,
@@ -114,6 +118,8 @@ def imrotate_cargs(
114
118
  """
115
119
  cargs = []
116
120
  cargs.append("imrotate")
121
+ if params.get("linear_interpolation"):
122
+ cargs.append("-linear")
117
123
  if params.get("fourier_interpolation"):
118
124
  cargs.append("-Fourier")
119
125
  cargs.append(str(params.get("dx")))
@@ -174,6 +180,7 @@ def imrotate(
174
180
  phi: float,
175
181
  input_image: InputPathType,
176
182
  output_image: str,
183
+ linear_interpolation: bool = False,
177
184
  fourier_interpolation: bool = False,
178
185
  runner: Runner | None = None,
179
186
  ) -> ImrotateOutputs:
@@ -190,6 +197,7 @@ def imrotate(
190
197
  phi: Degrees to rotate clockwise.
191
198
  input_image: Input image file.
192
199
  output_image: Output image file.
200
+ linear_interpolation: Use bilinear interpolation (default is bicubic).
193
201
  fourier_interpolation: Use Fourier interpolation.
194
202
  runner: Command runner.
195
203
  Returns:
@@ -198,6 +206,7 @@ def imrotate(
198
206
  runner = runner or get_global_runner()
199
207
  execution = runner.start_execution(IMROTATE_METADATA)
200
208
  params = imrotate_params(
209
+ linear_interpolation=linear_interpolation,
201
210
  fourier_interpolation=fourier_interpolation,
202
211
  dx=dx,
203
212
  dy=dy,
niwrap_afni/afni/myget.py CHANGED
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  MYGET_METADATA = Metadata(
9
- id="2f6d3f9ad29fa84e230f411a821134ff68c91853.boutiques",
9
+ id="10043a869267d2f44f577e75349933f7e7bb0e5e.boutiques",
10
10
  name="myget",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -17,6 +17,7 @@ MygetParameters = typing.TypedDict('MygetParameters', {
17
17
  "__STYX_TYPE__": typing.Literal["myget"],
18
18
  "protocol_version": typing.NotRequired[typing.Literal["-1", "-1.1"] | None],
19
19
  "url": str,
20
+ "output_file": str,
20
21
  })
21
22
 
22
23
 
@@ -64,6 +65,7 @@ class MygetOutputs(typing.NamedTuple):
64
65
 
65
66
  def myget_params(
66
67
  url: str,
68
+ output_file: str,
67
69
  protocol_version: typing.Literal["-1", "-1.1"] | None = None,
68
70
  ) -> MygetParameters:
69
71
  """
@@ -71,6 +73,7 @@ def myget_params(
71
73
 
72
74
  Args:
73
75
  url: The URL to download the file from.
76
+ output_file: The filename to save the downloaded file.
74
77
  protocol_version: Specify protocol version. You can choose between -1\
75
78
  or -1.1.
76
79
  Returns:
@@ -79,6 +82,7 @@ def myget_params(
79
82
  params = {
80
83
  "__STYXTYPE__": "myget",
81
84
  "url": url,
85
+ "output_file": output_file,
82
86
  }
83
87
  if protocol_version is not None:
84
88
  params["protocol_version"] = protocol_version
@@ -99,8 +103,14 @@ def myget_cargs(
99
103
  Command-line arguments.
100
104
  """
101
105
  cargs = []
106
+ cargs.append("myget")
102
107
  if params.get("protocol_version") is not None:
103
- cargs.append("myget" + params.get("protocol_version") + params.get("url"))
108
+ cargs.append(params.get("protocol_version"))
109
+ cargs.append(params.get("url"))
110
+ cargs.extend([
111
+ ">",
112
+ params.get("output_file")
113
+ ])
104
114
  return cargs
105
115
 
106
116
 
@@ -119,7 +129,7 @@ def myget_outputs(
119
129
  """
120
130
  ret = MygetOutputs(
121
131
  root=execution.output_file("."),
122
- output_file=execution.output_file("[OUTPUT_FILE]"),
132
+ output_file=execution.output_file(params.get("output_file")),
123
133
  )
124
134
  return ret
125
135
 
@@ -150,6 +160,7 @@ def myget_execute(
150
160
 
151
161
  def myget(
152
162
  url: str,
163
+ output_file: str,
153
164
  protocol_version: typing.Literal["-1", "-1.1"] | None = None,
154
165
  runner: Runner | None = None,
155
166
  ) -> MygetOutputs:
@@ -162,6 +173,7 @@ def myget(
162
173
 
163
174
  Args:
164
175
  url: The URL to download the file from.
176
+ output_file: The filename to save the downloaded file.
165
177
  protocol_version: Specify protocol version. You can choose between -1\
166
178
  or -1.1.
167
179
  runner: Command runner.
@@ -173,6 +185,7 @@ def myget(
173
185
  params = myget_params(
174
186
  protocol_version=protocol_version,
175
187
  url=url,
188
+ output_file=output_file,
176
189
  )
177
190
  return myget_execute(params, execution)
178
191
 
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  NIFTI_TOOL_METADATA = Metadata(
9
- id="3d62871ad5a6df5a56027e145232bf726b83d960.boutiques",
9
+ id="38a2d9449adee7d6233168e977d87d95385ebe37.boutiques",
10
10
  name="nifti_tool",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -146,7 +146,8 @@ def nifti_tool_cargs(
146
146
  Command-line arguments.
147
147
  """
148
148
  cargs = []
149
- cargs.append("nifti_tool" + params.get("action"))
149
+ cargs.append("nifti_tool")
150
+ cargs.append(params.get("action"))
150
151
  if params.get("input_files") is not None:
151
152
  cargs.extend([
152
153
  "-infiles",