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
  ABIDS_JSON_TOOL_PY_METADATA = Metadata(
9
- id="9cd5d1cbe0772f0f1c51d0bd811ef0336e43437f.boutiques",
9
+ id="e329338100a8b98497d00dd658e2d105dfa05630.boutiques",
10
10
  name="abids_json_tool.py",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -17,7 +17,16 @@ AbidsJsonToolPyParameters = typing.TypedDict('AbidsJsonToolPyParameters', {
17
17
  "__STYX_TYPE__": typing.Literal["abids_json_tool.py"],
18
18
  "input_file": InputPathType,
19
19
  "prefix": str,
20
+ "txt2json": bool,
21
+ "json2txt": bool,
22
+ "add_json": typing.NotRequired[list[str] | None],
20
23
  "del_json": typing.NotRequired[str | None],
24
+ "force_add": bool,
25
+ "overwrite": bool,
26
+ "help": bool,
27
+ "delimiter_major": typing.NotRequired[str | None],
28
+ "delimiter_minor": typing.NotRequired[str | None],
29
+ "literal_keys": bool,
21
30
  "values_stay_str": bool,
22
31
  })
23
32
 
@@ -64,7 +73,16 @@ class AbidsJsonToolPyOutputs(typing.NamedTuple):
64
73
  def abids_json_tool_py_params(
65
74
  input_file: InputPathType,
66
75
  prefix: str,
76
+ txt2json: bool = False,
77
+ json2txt: bool = False,
78
+ add_json: list[str] | None = None,
67
79
  del_json: str | None = None,
80
+ force_add: bool = False,
81
+ overwrite: bool = False,
82
+ help_: bool = False,
83
+ delimiter_major: str | None = None,
84
+ delimiter_minor: str | None = None,
85
+ literal_keys: bool = False,
68
86
  values_stay_str: bool = False,
69
87
  ) -> AbidsJsonToolPyParameters:
70
88
  """
@@ -74,7 +92,21 @@ def abids_json_tool_py_params(
74
92
  input_file: One file to convert. Enter NULL with -add_json to create\
75
93
  new json file.
76
94
  prefix: Output file name.
95
+ txt2json: Convert from ':' separated text file to json formatted file.
96
+ json2txt: Convert from json formatted file to ':' separated text file.
97
+ add_json: Add an attribute to the end of the specified json file.
77
98
  del_json: Remove attribute (KEY) from the -input json file.
99
+ force_add: Use with -add_json to overwrite an existing attribute in the\
100
+ specified json file.
101
+ overwrite: Use caution as this will overwrite the -prefix file if it\
102
+ exists!!.
103
+ help_: Show this help and exit.
104
+ delimiter_major: Specify the new (major) delimiter to separate keys and\
105
+ values when using '-txt2json' opt.
106
+ delimiter_minor: Specify the new (minor) delimiter to separate value\
107
+ items when using '-txt2json' opt.
108
+ literal_keys: Do not replace spaces with '_', nor parentheses and\
109
+ brackets with ''.
78
110
  values_stay_str: Each numeric or str item gets saved as a str;\
79
111
  otherwise, guess at int and float.
80
112
  Returns:
@@ -84,10 +116,22 @@ def abids_json_tool_py_params(
84
116
  "__STYXTYPE__": "abids_json_tool.py",
85
117
  "input_file": input_file,
86
118
  "prefix": prefix,
119
+ "txt2json": txt2json,
120
+ "json2txt": json2txt,
121
+ "force_add": force_add,
122
+ "overwrite": overwrite,
123
+ "help": help_,
124
+ "literal_keys": literal_keys,
87
125
  "values_stay_str": values_stay_str,
88
126
  }
127
+ if add_json is not None:
128
+ params["add_json"] = add_json
89
129
  if del_json is not None:
90
130
  params["del_json"] = del_json
131
+ if delimiter_major is not None:
132
+ params["delimiter_major"] = delimiter_major
133
+ if delimiter_minor is not None:
134
+ params["delimiter_minor"] = delimiter_minor
91
135
  return params
92
136
 
93
137
 
@@ -114,11 +158,38 @@ def abids_json_tool_py_cargs(
114
158
  "-prefix",
115
159
  params.get("prefix")
116
160
  ])
161
+ if params.get("txt2json"):
162
+ cargs.append("-txt2json")
163
+ if params.get("json2txt"):
164
+ cargs.append("-json2txt")
165
+ if params.get("add_json") is not None:
166
+ cargs.extend([
167
+ "-add_json",
168
+ *params.get("add_json")
169
+ ])
117
170
  if params.get("del_json") is not None:
118
171
  cargs.extend([
119
172
  "-del_json",
120
173
  params.get("del_json")
121
174
  ])
175
+ if params.get("force_add"):
176
+ cargs.append("-f")
177
+ if params.get("overwrite"):
178
+ cargs.append("-overwrite")
179
+ if params.get("help"):
180
+ cargs.append("-help")
181
+ if params.get("delimiter_major") is not None:
182
+ cargs.extend([
183
+ "-delimiter_major",
184
+ params.get("delimiter_major")
185
+ ])
186
+ if params.get("delimiter_minor") is not None:
187
+ cargs.extend([
188
+ "-delimiter_minor",
189
+ params.get("delimiter_minor")
190
+ ])
191
+ if params.get("literal_keys"):
192
+ cargs.append("-literal_keys")
122
193
  if params.get("values_stay_str"):
123
194
  cargs.append("-values_stay_str")
124
195
  return cargs
@@ -170,7 +241,16 @@ def abids_json_tool_py_execute(
170
241
  def abids_json_tool_py(
171
242
  input_file: InputPathType,
172
243
  prefix: str,
244
+ txt2json: bool = False,
245
+ json2txt: bool = False,
246
+ add_json: list[str] | None = None,
173
247
  del_json: str | None = None,
248
+ force_add: bool = False,
249
+ overwrite: bool = False,
250
+ help_: bool = False,
251
+ delimiter_major: str | None = None,
252
+ delimiter_minor: str | None = None,
253
+ literal_keys: bool = False,
174
254
  values_stay_str: bool = False,
175
255
  runner: Runner | None = None,
176
256
  ) -> AbidsJsonToolPyOutputs:
@@ -185,7 +265,21 @@ def abids_json_tool_py(
185
265
  input_file: One file to convert. Enter NULL with -add_json to create\
186
266
  new json file.
187
267
  prefix: Output file name.
268
+ txt2json: Convert from ':' separated text file to json formatted file.
269
+ json2txt: Convert from json formatted file to ':' separated text file.
270
+ add_json: Add an attribute to the end of the specified json file.
188
271
  del_json: Remove attribute (KEY) from the -input json file.
272
+ force_add: Use with -add_json to overwrite an existing attribute in the\
273
+ specified json file.
274
+ overwrite: Use caution as this will overwrite the -prefix file if it\
275
+ exists!!.
276
+ help_: Show this help and exit.
277
+ delimiter_major: Specify the new (major) delimiter to separate keys and\
278
+ values when using '-txt2json' opt.
279
+ delimiter_minor: Specify the new (minor) delimiter to separate value\
280
+ items when using '-txt2json' opt.
281
+ literal_keys: Do not replace spaces with '_', nor parentheses and\
282
+ brackets with ''.
189
283
  values_stay_str: Each numeric or str item gets saved as a str;\
190
284
  otherwise, guess at int and float.
191
285
  runner: Command runner.
@@ -197,7 +291,16 @@ def abids_json_tool_py(
197
291
  params = abids_json_tool_py_params(
198
292
  input_file=input_file,
199
293
  prefix=prefix,
294
+ txt2json=txt2json,
295
+ json2txt=json2txt,
296
+ add_json=add_json,
200
297
  del_json=del_json,
298
+ force_add=force_add,
299
+ overwrite=overwrite,
300
+ help_=help_,
301
+ delimiter_major=delimiter_major,
302
+ delimiter_minor=delimiter_minor,
303
+ literal_keys=literal_keys,
201
304
  values_stay_str=values_stay_str,
202
305
  )
203
306
  return abids_json_tool_py_execute(params, execution)
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  ABIDS_TOOL_METADATA = Metadata(
9
- id="ecdd7e187a3a330cd02d094f809fb0b75a51fe76.boutiques",
9
+ id="44f26320aab699eef15ef4c3c6fdea66a995e467.boutiques",
10
10
  name="abids_tool",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -16,7 +16,11 @@ ABIDS_TOOL_METADATA = Metadata(
16
16
  AbidsToolParameters = typing.TypedDict('AbidsToolParameters', {
17
17
  "__STYX_TYPE__": typing.Literal["abids_tool"],
18
18
  "input_files": list[InputPathType],
19
+ "tr_match": bool,
20
+ "add_tr": bool,
21
+ "add_slice_times": bool,
19
22
  "copy_prefix": typing.NotRequired[list[str] | None],
23
+ "help_flag": bool,
20
24
  })
21
25
 
22
26
 
@@ -61,21 +65,36 @@ class AbidsToolOutputs(typing.NamedTuple):
61
65
 
62
66
  def abids_tool_params(
63
67
  input_files: list[InputPathType],
68
+ tr_match: bool = False,
69
+ add_tr: bool = False,
70
+ add_slice_times: bool = False,
64
71
  copy_prefix: list[str] | None = None,
72
+ help_flag: bool = False,
65
73
  ) -> AbidsToolParameters:
66
74
  """
67
75
  Build parameters.
68
76
 
69
77
  Args:
70
78
  input_files: At least one 3d+time dataset in NIFTI format.
79
+ tr_match: Check if the TR in the json file matches the TR from input\
80
+ dataset header. (Returns 1 if match).
81
+ add_tr: Add the TR from the BIDS json file to the input dataset using\
82
+ 3drefit.
83
+ add_slice_times: Add the slice times from the BIDS json file to the\
84
+ input dataset using 3drefit.
71
85
  copy_prefix: Copy both the NIFTI dataset(s) and matching .json file(s)\
72
86
  to PREFIX. Must have the same number of prefixes as datasets.
87
+ help_flag: Show help information and exit.
73
88
  Returns:
74
89
  Parameter dictionary
75
90
  """
76
91
  params = {
77
92
  "__STYXTYPE__": "abids_tool",
78
93
  "input_files": input_files,
94
+ "tr_match": tr_match,
95
+ "add_tr": add_tr,
96
+ "add_slice_times": add_slice_times,
97
+ "help_flag": help_flag,
79
98
  }
80
99
  if copy_prefix is not None:
81
100
  params["copy_prefix"] = copy_prefix
@@ -98,11 +117,19 @@ def abids_tool_cargs(
98
117
  cargs = []
99
118
  cargs.append("abids_tool.py")
100
119
  cargs.extend([execution.input_file(f) for f in params.get("input_files")])
120
+ if params.get("tr_match"):
121
+ cargs.append("-TR_match")
122
+ if params.get("add_tr"):
123
+ cargs.append("-add_TR")
124
+ if params.get("add_slice_times"):
125
+ cargs.append("-add_slice_times")
101
126
  if params.get("copy_prefix") is not None:
102
127
  cargs.extend([
103
128
  "-copy",
104
129
  *params.get("copy_prefix")
105
130
  ])
131
+ if params.get("help_flag"):
132
+ cargs.append("-help")
106
133
  return cargs
107
134
 
108
135
 
@@ -153,7 +180,11 @@ def abids_tool_execute(
153
180
 
154
181
  def abids_tool(
155
182
  input_files: list[InputPathType],
183
+ tr_match: bool = False,
184
+ add_tr: bool = False,
185
+ add_slice_times: bool = False,
156
186
  copy_prefix: list[str] | None = None,
187
+ help_flag: bool = False,
157
188
  runner: Runner | None = None,
158
189
  ) -> AbidsToolOutputs:
159
190
  """
@@ -167,8 +198,15 @@ def abids_tool(
167
198
 
168
199
  Args:
169
200
  input_files: At least one 3d+time dataset in NIFTI format.
201
+ tr_match: Check if the TR in the json file matches the TR from input\
202
+ dataset header. (Returns 1 if match).
203
+ add_tr: Add the TR from the BIDS json file to the input dataset using\
204
+ 3drefit.
205
+ add_slice_times: Add the slice times from the BIDS json file to the\
206
+ input dataset using 3drefit.
170
207
  copy_prefix: Copy both the NIFTI dataset(s) and matching .json file(s)\
171
208
  to PREFIX. Must have the same number of prefixes as datasets.
209
+ help_flag: Show help information and exit.
172
210
  runner: Command runner.
173
211
  Returns:
174
212
  NamedTuple of outputs (described in `AbidsToolOutputs`).
@@ -177,7 +215,11 @@ def abids_tool(
177
215
  execution = runner.start_execution(ABIDS_TOOL_METADATA)
178
216
  params = abids_tool_params(
179
217
  input_files=input_files,
218
+ tr_match=tr_match,
219
+ add_tr=add_tr,
220
+ add_slice_times=add_slice_times,
180
221
  copy_prefix=copy_prefix,
222
+ help_flag=help_flag,
181
223
  )
182
224
  return abids_tool_execute(params, execution)
183
225
 
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  ADJUNCT_MAKE_SCRIPT_AND_RST_PY_METADATA = Metadata(
9
- id="b713438ba08e71d534cca42445c2bcd23acbc3af.boutiques",
9
+ id="5cd9b08bee37168399c0b35d303c4cdeaaeeffeb.boutiques",
10
10
  name="adjunct_make_script_and_rst.py",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -120,7 +120,7 @@ def adjunct_make_script_and_rst_py_cargs(
120
120
  cargs.append("adjunct_make_script_and_rst.py")
121
121
  cargs.extend([
122
122
  "-input",
123
- "-" + execution.input_file(params.get("input_script"))
123
+ execution.input_file(params.get("input_script"))
124
124
  ])
125
125
  cargs.extend([
126
126
  "--prefix_rst",
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  AFNI_BATCH_R_METADATA = Metadata(
9
- id="78789aab686dc723a7f6543875033396e8a4b97c.boutiques",
9
+ id="8f19b113f220df5c4c707c9f78252bd08a223bb3.boutiques",
10
10
  name="AFNI_Batch_R",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -119,7 +119,6 @@ def afni_batch_r_cargs(
119
119
  cargs.append("--no-readline")
120
120
  if params.get("vanilla_mode"):
121
121
  cargs.append("--vanilla")
122
- cargs.append("--args")
123
122
  if params.get("help"):
124
123
  cargs.append("-help")
125
124
  return cargs
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  BALLOON_METADATA = Metadata(
9
- id="d38a0b74f4c93d5365bdded27c362f4ddc6e6b5f.boutiques",
9
+ id="efa704edebd4da856d63213685c5a8439a31d101.boutiques",
10
10
  name="balloon",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -18,7 +18,9 @@ BalloonParameters = typing.TypedDict('BalloonParameters', {
18
18
  "tr": float,
19
19
  "num_scans": int,
20
20
  "event_times": InputPathType,
21
+ "t_rise": typing.NotRequired[list[float] | None],
21
22
  "t_fall": typing.NotRequired[list[float] | None],
23
+ "t_sustain": typing.NotRequired[list[float] | None],
22
24
  })
23
25
 
24
26
 
@@ -65,7 +67,9 @@ def balloon_params(
65
67
  tr: float,
66
68
  num_scans: int,
67
69
  event_times: InputPathType,
70
+ t_rise: list[float] | None = None,
68
71
  t_fall: list[float] | None = None,
72
+ t_sustain: list[float] | None = None,
69
73
  ) -> BalloonParameters:
70
74
  """
71
75
  Build parameters.
@@ -78,8 +82,12 @@ def balloon_params(
78
82
  event_times: The name of a file containing the event timings, in\
79
83
  seconds, as ASCII strings separated by white space, with time 0 being\
80
84
  the time at which the initial scan occurred.
85
+ t_rise: Haemodynamic rise time in seconds (typically between 4s and\
86
+ 6s).
81
87
  t_fall: Haemodynamic fall time in seconds (typically between 4s and\
82
88
  6s).
89
+ t_sustain: Haemodynamic sustain time in seconds (typically between 0s\
90
+ and 4s).
83
91
  Returns:
84
92
  Parameter dictionary
85
93
  """
@@ -89,8 +97,12 @@ def balloon_params(
89
97
  "num_scans": num_scans,
90
98
  "event_times": event_times,
91
99
  }
100
+ if t_rise is not None:
101
+ params["t_rise"] = t_rise
92
102
  if t_fall is not None:
93
103
  params["t_fall"] = t_fall
104
+ if t_sustain is not None:
105
+ params["t_sustain"] = t_sustain
94
106
  return params
95
107
 
96
108
 
@@ -112,8 +124,12 @@ def balloon_cargs(
112
124
  cargs.append(str(params.get("tr")))
113
125
  cargs.append(str(params.get("num_scans")))
114
126
  cargs.append(execution.input_file(params.get("event_times")))
127
+ if params.get("t_rise") is not None:
128
+ cargs.extend(map(str, params.get("t_rise")))
115
129
  if params.get("t_fall") is not None:
116
130
  cargs.extend(map(str, params.get("t_fall")))
131
+ if params.get("t_sustain") is not None:
132
+ cargs.extend(map(str, params.get("t_sustain")))
117
133
  return cargs
118
134
 
119
135
 
@@ -165,7 +181,9 @@ def balloon(
165
181
  tr: float,
166
182
  num_scans: int,
167
183
  event_times: InputPathType,
184
+ t_rise: list[float] | None = None,
168
185
  t_fall: list[float] | None = None,
186
+ t_sustain: list[float] | None = None,
169
187
  runner: Runner | None = None,
170
188
  ) -> BalloonOutputs:
171
189
  """
@@ -184,8 +202,12 @@ def balloon(
184
202
  event_times: The name of a file containing the event timings, in\
185
203
  seconds, as ASCII strings separated by white space, with time 0 being\
186
204
  the time at which the initial scan occurred.
205
+ t_rise: Haemodynamic rise time in seconds (typically between 4s and\
206
+ 6s).
187
207
  t_fall: Haemodynamic fall time in seconds (typically between 4s and\
188
208
  6s).
209
+ t_sustain: Haemodynamic sustain time in seconds (typically between 0s\
210
+ and 4s).
189
211
  runner: Command runner.
190
212
  Returns:
191
213
  NamedTuple of outputs (described in `BalloonOutputs`).
@@ -196,7 +218,9 @@ def balloon(
196
218
  tr=tr,
197
219
  num_scans=num_scans,
198
220
  event_times=event_times,
221
+ t_rise=t_rise,
199
222
  t_fall=t_fall,
223
+ t_sustain=t_sustain,
200
224
  )
201
225
  return balloon_execute(params, execution)
202
226
 
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  BRAIN_SKIN_METADATA = Metadata(
9
- id="4f110568466cb173a0801348ecaabe46ca587148.boutiques",
9
+ id="b29116757bd00299a9e042bed62f178844c81d0f.boutiques",
10
10
  name="BrainSkin",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -24,6 +24,7 @@ BrainSkinParameters = typing.TypedDict('BrainSkinParameters', {
24
24
  "voxelize": typing.NotRequired[str | None],
25
25
  "infill": typing.NotRequired[str | None],
26
26
  "out_file": typing.NotRequired[InputPathType | None],
27
+ "vol_skin": typing.NotRequired[InputPathType | None],
27
28
  "vol_hull": typing.NotRequired[InputPathType | None],
28
29
  "no_zero_attraction": bool,
29
30
  "node_dbg": typing.NotRequired[float | None],
@@ -103,6 +104,7 @@ def brain_skin_params(
103
104
  voxelize: str | None = None,
104
105
  infill: str | None = None,
105
106
  out_file: InputPathType | None = None,
107
+ vol_skin: InputPathType | None = None,
106
108
  vol_hull: InputPathType | None = None,
107
109
  no_zero_attraction: bool = False,
108
110
  node_dbg: float | None = None,
@@ -124,6 +126,8 @@ def brain_skin_params(
124
126
  infill: Infill method. Choose from: slow: proper infill, but not\
125
127
  needed, fast: brutish infill, all we need (default).
126
128
  out_file: Output intermediary results from skin forming step.
129
+ vol_skin: Deform an Icosahedron to match the outer boundary of a mask\
130
+ volume.
127
131
  vol_hull: Deform an Icosahedron to match the convex hull of a mask\
128
132
  volume.
129
133
  no_zero_attraction: With vol_skin, the surface will try to shrink\
@@ -152,6 +156,8 @@ def brain_skin_params(
152
156
  params["infill"] = infill
153
157
  if out_file is not None:
154
158
  params["out_file"] = out_file
159
+ if vol_skin is not None:
160
+ params["vol_skin"] = vol_skin
155
161
  if vol_hull is not None:
156
162
  params["vol_hull"] = vol_hull
157
163
  if node_dbg is not None:
@@ -213,6 +219,11 @@ def brain_skin_cargs(
213
219
  "-out",
214
220
  execution.input_file(params.get("out_file"))
215
221
  ])
222
+ if params.get("vol_skin") is not None:
223
+ cargs.extend([
224
+ "-vol_skin",
225
+ execution.input_file(params.get("vol_skin"))
226
+ ])
216
227
  if params.get("vol_hull") is not None:
217
228
  cargs.extend([
218
229
  "-vol_hull",
@@ -293,6 +304,7 @@ def brain_skin(
293
304
  voxelize: str | None = None,
294
305
  infill: str | None = None,
295
306
  out_file: InputPathType | None = None,
307
+ vol_skin: InputPathType | None = None,
296
308
  vol_hull: InputPathType | None = None,
297
309
  no_zero_attraction: bool = False,
298
310
  node_dbg: float | None = None,
@@ -320,6 +332,8 @@ def brain_skin(
320
332
  infill: Infill method. Choose from: slow: proper infill, but not\
321
333
  needed, fast: brutish infill, all we need (default).
322
334
  out_file: Output intermediary results from skin forming step.
335
+ vol_skin: Deform an Icosahedron to match the outer boundary of a mask\
336
+ volume.
323
337
  vol_hull: Deform an Icosahedron to match the convex hull of a mask\
324
338
  volume.
325
339
  no_zero_attraction: With vol_skin, the surface will try to shrink\
@@ -342,6 +356,7 @@ def brain_skin(
342
356
  voxelize=voxelize,
343
357
  infill=infill,
344
358
  out_file=out_file,
359
+ vol_skin=vol_skin,
345
360
  vol_hull=vol_hull,
346
361
  no_zero_attraction=no_zero_attraction,
347
362
  node_dbg=node_dbg,
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  BUILD_AFNI_PY_METADATA = Metadata(
9
- id="8b01bbfc26acb4a73b16110f6849bc381629f972.boutiques",
9
+ id="e6c59cd0d5e67711746b75a7e41644183586e675.boutiques",
10
10
  name="build_afni.py",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -27,6 +27,9 @@ BuildAfniPyParameters = typing.TypedDict('BuildAfniPyParameters', {
27
27
  "run_cmake": typing.NotRequired[str | None],
28
28
  "run_make": typing.NotRequired[str | None],
29
29
  "verbose_level": typing.NotRequired[float | None],
30
+ "help": bool,
31
+ "history": bool,
32
+ "show_valid_opts": bool,
30
33
  "version": bool,
31
34
  })
32
35
 
@@ -88,6 +91,9 @@ def build_afni_py_params(
88
91
  run_cmake: str | None = None,
89
92
  run_make: str | None = None,
90
93
  verbose_level: float | None = None,
94
+ help_: bool = False,
95
+ history: bool = False,
96
+ show_valid_opts: bool = False,
91
97
  version: bool = False,
92
98
  ) -> BuildAfniPyParameters:
93
99
  """
@@ -106,6 +112,9 @@ def build_afni_py_params(
106
112
  run_cmake: Choose whether to run a cmake build. Default is no.
107
113
  run_make: Choose whether to run a make build. Default is yes.
108
114
  verbose_level: Set the verbosity level. Default is 1.
115
+ help_: Show help message.
116
+ history: Show module history.
117
+ show_valid_opts: List valid options.
109
118
  version: Show the current version.
110
119
  Returns:
111
120
  Parameter dictionary
@@ -114,6 +123,9 @@ def build_afni_py_params(
114
123
  "__STYXTYPE__": "build_afni.py",
115
124
  "build_root": build_root,
116
125
  "prep_only": prep_only,
126
+ "help": help_,
127
+ "history": history,
128
+ "show_valid_opts": show_valid_opts,
117
129
  "version": version,
118
130
  }
119
131
  if clean_root is not None:
@@ -210,6 +222,12 @@ def build_afni_py_cargs(
210
222
  "-verb",
211
223
  str(params.get("verbose_level"))
212
224
  ])
225
+ if params.get("help"):
226
+ cargs.append("-help")
227
+ if params.get("history"):
228
+ cargs.append("-hist")
229
+ if params.get("show_valid_opts"):
230
+ cargs.append("-show_valid_opts")
213
231
  if params.get("version"):
214
232
  cargs.append("-ver")
215
233
  return cargs
@@ -273,6 +291,9 @@ def build_afni_py(
273
291
  run_cmake: str | None = None,
274
292
  run_make: str | None = None,
275
293
  verbose_level: float | None = None,
294
+ help_: bool = False,
295
+ history: bool = False,
296
+ show_valid_opts: bool = False,
276
297
  version: bool = False,
277
298
  runner: Runner | None = None,
278
299
  ) -> BuildAfniPyOutputs:
@@ -296,6 +317,9 @@ def build_afni_py(
296
317
  run_cmake: Choose whether to run a cmake build. Default is no.
297
318
  run_make: Choose whether to run a make build. Default is yes.
298
319
  verbose_level: Set the verbosity level. Default is 1.
320
+ help_: Show help message.
321
+ history: Show module history.
322
+ show_valid_opts: List valid options.
299
323
  version: Show the current version.
300
324
  runner: Command runner.
301
325
  Returns:
@@ -316,6 +340,9 @@ def build_afni_py(
316
340
  run_cmake=run_cmake,
317
341
  run_make=run_make,
318
342
  verbose_level=verbose_level,
343
+ help_=help_,
344
+ history=history,
345
+ show_valid_opts=show_valid_opts,
319
346
  version=version,
320
347
  )
321
348
  return build_afni_py_execute(params, execution)
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  CAT_MATVEC_METADATA = Metadata(
9
- id="ea044673965ec2f3a89f325814e9677a680c6cec.boutiques",
9
+ id="38568441c32dcbccb9c494130a605bc3b4f2c16b.boutiques",
10
10
  name="cat_matvec",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -15,6 +15,8 @@ CAT_MATVEC_METADATA = Metadata(
15
15
 
16
16
  CatMatvecParameters = typing.TypedDict('CatMatvecParameters', {
17
17
  "__STYX_TYPE__": typing.Literal["cat_matvec"],
18
+ "matrix_format": bool,
19
+ "oneline_format": bool,
18
20
  "four_by_four_format": bool,
19
21
  "matvec_spec": list[str],
20
22
  })
@@ -61,6 +63,8 @@ class CatMatvecOutputs(typing.NamedTuple):
61
63
 
62
64
  def cat_matvec_params(
63
65
  matvec_spec: list[str],
66
+ matrix_format: bool = False,
67
+ oneline_format: bool = False,
64
68
  four_by_four_format: bool = False,
65
69
  ) -> CatMatvecParameters:
66
70
  """
@@ -69,6 +73,10 @@ def cat_matvec_params(
69
73
  Args:
70
74
  matvec_spec: Specifies the matrix transformation. Can take forms\
71
75
  described in the documentation.
76
+ matrix_format: Indicates that the resulting matrix will be written in\
77
+ the 'MATRIX(...)' format (FORM 3).
78
+ oneline_format: Option indicates that the resulting matrix will simply\
79
+ be written as 12 numbers on one line.
72
80
  four_by_four_format: Output matrix in augmented form (last row is 0 0 0\
73
81
  1). This option does not work with -MATRIX or -ONELINE.
74
82
  Returns:
@@ -76,6 +84,8 @@ def cat_matvec_params(
76
84
  """
77
85
  params = {
78
86
  "__STYXTYPE__": "cat_matvec",
87
+ "matrix_format": matrix_format,
88
+ "oneline_format": oneline_format,
79
89
  "four_by_four_format": four_by_four_format,
80
90
  "matvec_spec": matvec_spec,
81
91
  }
@@ -97,6 +107,10 @@ def cat_matvec_cargs(
97
107
  """
98
108
  cargs = []
99
109
  cargs.append("cat_matvec")
110
+ if params.get("matrix_format"):
111
+ cargs.append("-MATRIX")
112
+ if params.get("oneline_format"):
113
+ cargs.append("-ONELINE")
100
114
  if params.get("four_by_four_format"):
101
115
  cargs.append("-4x4")
102
116
  cargs.extend(params.get("matvec_spec"))
@@ -148,6 +162,8 @@ def cat_matvec_execute(
148
162
 
149
163
  def cat_matvec(
150
164
  matvec_spec: list[str],
165
+ matrix_format: bool = False,
166
+ oneline_format: bool = False,
151
167
  four_by_four_format: bool = False,
152
168
  runner: Runner | None = None,
153
169
  ) -> CatMatvecOutputs:
@@ -161,6 +177,10 @@ def cat_matvec(
161
177
  Args:
162
178
  matvec_spec: Specifies the matrix transformation. Can take forms\
163
179
  described in the documentation.
180
+ matrix_format: Indicates that the resulting matrix will be written in\
181
+ the 'MATRIX(...)' format (FORM 3).
182
+ oneline_format: Option indicates that the resulting matrix will simply\
183
+ be written as 12 numbers on one line.
164
184
  four_by_four_format: Output matrix in augmented form (last row is 0 0 0\
165
185
  1). This option does not work with -MATRIX or -ONELINE.
166
186
  runner: Command runner.
@@ -170,6 +190,8 @@ def cat_matvec(
170
190
  runner = runner or get_global_runner()
171
191
  execution = runner.start_execution(CAT_MATVEC_METADATA)
172
192
  params = cat_matvec_params(
193
+ matrix_format=matrix_format,
194
+ oneline_format=oneline_format,
173
195
  four_by_four_format=four_by_four_format,
174
196
  matvec_spec=matvec_spec,
175
197
  )