niwrap-afni 0.5.0__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 (569) hide show
  1. niwrap_afni/afni/__init__.py +582 -0
  2. niwrap_afni/afni/abids_json_info_py.py +247 -0
  3. niwrap_afni/afni/abids_json_tool_py.py +212 -0
  4. niwrap_afni/afni/abids_tool.py +191 -0
  5. niwrap_afni/afni/adjunct_apqc_tsnr_general.py +447 -0
  6. niwrap_afni/afni/adjunct_aw_tableize_roi_info_py.py +224 -0
  7. niwrap_afni/afni/adjunct_calc_mont_dims_py.py +173 -0
  8. niwrap_afni/afni/adjunct_combine_str_py.py +198 -0
  9. niwrap_afni/afni/adjunct_is_label_py.py +180 -0
  10. niwrap_afni/afni/adjunct_make_script_and_rst_py.py +237 -0
  11. niwrap_afni/afni/adjunct_select_str_py.py +188 -0
  12. niwrap_afni/afni/adjunct_simplify_cost.py +172 -0
  13. niwrap_afni/afni/adjunct_suma_fs_mask_and_qc.py +249 -0
  14. niwrap_afni/afni/adjunct_suma_fs_roi_info.py +228 -0
  15. niwrap_afni/afni/adjunct_tort_plot_dp_align.py +248 -0
  16. niwrap_afni/afni/adwarp.py +296 -0
  17. niwrap_afni/afni/afni.py +428 -0
  18. niwrap_afni/afni/afni_batch_r.py +215 -0
  19. niwrap_afni/afni/afni_check_omp.py +174 -0
  20. niwrap_afni/afni/afni_history.py +413 -0
  21. niwrap_afni/afni/afni_open.py +304 -0
  22. niwrap_afni/afni/afni_proc_py.py +283 -0
  23. niwrap_afni/afni/afni_run_r.py +180 -0
  24. niwrap_afni/afni/afni_system_check_py.py +274 -0
  25. niwrap_afni/afni/aiv.py +231 -0
  26. niwrap_afni/afni/align_epi_anat.py +356 -0
  27. niwrap_afni/afni/analyze_trace.py +292 -0
  28. niwrap_afni/afni/ap_run_simple_rest.py +293 -0
  29. niwrap_afni/afni/apqc_make_html.py +175 -0
  30. niwrap_afni/afni/apqc_make_tcsh_py.py +245 -0
  31. niwrap_afni/afni/apsearch.py +195 -0
  32. niwrap_afni/afni/auto_warp_py.py +527 -0
  33. niwrap_afni/afni/balloon.py +210 -0
  34. niwrap_afni/afni/bayes_view.py +196 -0
  35. niwrap_afni/afni/bayesian_group_ana_py.py +342 -0
  36. niwrap_afni/afni/brain_skin.py +358 -0
  37. niwrap_afni/afni/build_afni_py.py +330 -0
  38. niwrap_afni/afni/cat_matvec.py +185 -0
  39. niwrap_afni/afni/ccalc.py +192 -0
  40. niwrap_afni/afni/cifti_tool.py +271 -0
  41. niwrap_afni/afni/cjpeg.py +233 -0
  42. niwrap_afni/afni/clust_exp_hist_table_py.py +218 -0
  43. niwrap_afni/afni/clust_exp_stat_parse_py.py +346 -0
  44. niwrap_afni/afni/column_cat.py +208 -0
  45. niwrap_afni/afni/compare_surfaces.py +344 -0
  46. niwrap_afni/afni/convert_cdiflist_to_grads.py +251 -0
  47. niwrap_afni/afni/convert_dset.py +421 -0
  48. niwrap_afni/afni/convert_surface.py +247 -0
  49. niwrap_afni/afni/convex_hull.py +386 -0
  50. niwrap_afni/afni/count.py +327 -0
  51. niwrap_afni/afni/create_icosahedron.py +282 -0
  52. niwrap_afni/afni/dcm2niix_afni.py +550 -0
  53. niwrap_afni/afni/dicom_hdr.py +263 -0
  54. niwrap_afni/afni/dicom_hinfo.py +220 -0
  55. niwrap_afni/afni/dicom_to_raw.py +176 -0
  56. niwrap_afni/afni/dimon.py +286 -0
  57. niwrap_afni/afni/djpeg.py +233 -0
  58. niwrap_afni/afni/drive_suma.py +520 -0
  59. niwrap_afni/afni/dsetstat2p.py +218 -0
  60. niwrap_afni/afni/dtistudio_fiberto_segments.py +198 -0
  61. niwrap_afni/afni/epi_b0_correct.py +485 -0
  62. niwrap_afni/afni/examine_xmat.py +280 -0
  63. niwrap_afni/afni/fat_mat2d_plot_py.py +428 -0
  64. niwrap_afni/afni/fat_mat_sel_py.py +469 -0
  65. niwrap_afni/afni/fat_mat_tableize.py +292 -0
  66. niwrap_afni/afni/fat_mvm_gridconv_py.py +207 -0
  67. niwrap_afni/afni/fat_mvm_prep.py +256 -0
  68. niwrap_afni/afni/fat_mvm_scripter_py.py +353 -0
  69. niwrap_afni/afni/fat_proc_align_anat_pair.py +307 -0
  70. niwrap_afni/afni/fat_proc_axialize_anat.py +415 -0
  71. niwrap_afni/afni/fat_proc_connec_vis.py +346 -0
  72. niwrap_afni/afni/fat_proc_convert_dcm_anat.py +283 -0
  73. niwrap_afni/afni/fat_proc_convert_dcm_dwis.py +374 -0
  74. niwrap_afni/afni/fat_proc_decmap.py +321 -0
  75. niwrap_afni/afni/fat_proc_dwi_to_dt.py +522 -0
  76. niwrap_afni/afni/fat_proc_filter_dwis.py +321 -0
  77. niwrap_afni/afni/fat_proc_imit2w_from_t1w.py +283 -0
  78. niwrap_afni/afni/fat_proc_map_to_dti.py +308 -0
  79. niwrap_afni/afni/fat_proc_select_vols.py +266 -0
  80. niwrap_afni/afni/fat_roi_row.py +233 -0
  81. niwrap_afni/afni/fatcat_matplot.py +181 -0
  82. niwrap_afni/afni/fdrval.py +241 -0
  83. niwrap_afni/afni/fftest.py +197 -0
  84. niwrap_afni/afni/file_tool.py +580 -0
  85. niwrap_afni/afni/fim2.py +465 -0
  86. niwrap_afni/afni/find_variance_lines.py +353 -0
  87. niwrap_afni/afni/firdesign.py +235 -0
  88. niwrap_afni/afni/float_scan.py +213 -0
  89. niwrap_afni/afni/from3d.py +292 -0
  90. niwrap_afni/afni/fsread_annot.py +322 -0
  91. niwrap_afni/afni/gen_epi_review_py.py +292 -0
  92. niwrap_afni/afni/gen_group_command.py +324 -0
  93. niwrap_afni/afni/gen_ss_review_scripts.py +421 -0
  94. niwrap_afni/afni/gen_ss_review_table_py.py +324 -0
  95. niwrap_afni/afni/get_afni_model_prf.py +196 -0
  96. niwrap_afni/afni/get_afni_model_prf_6.py +222 -0
  97. niwrap_afni/afni/get_afni_model_prf_6_bad.py +212 -0
  98. niwrap_afni/afni/gifti_tool.py +426 -0
  99. niwrap_afni/afni/gltsymtest.py +193 -0
  100. niwrap_afni/afni/help_format.py +176 -0
  101. niwrap_afni/afni/im2niml.py +178 -0
  102. niwrap_afni/afni/images_equal.py +195 -0
  103. niwrap_afni/afni/imand.py +203 -0
  104. niwrap_afni/afni/imaver.py +201 -0
  105. niwrap_afni/afni/imcalc.py +235 -0
  106. niwrap_afni/afni/imcat.py +498 -0
  107. niwrap_afni/afni/imcutup.py +241 -0
  108. niwrap_afni/afni/imdump.py +177 -0
  109. niwrap_afni/afni/immask.py +223 -0
  110. niwrap_afni/afni/imreg.py +389 -0
  111. niwrap_afni/afni/imrotate.py +217 -0
  112. niwrap_afni/afni/imstack.py +209 -0
  113. niwrap_afni/afni/imstat.py +217 -0
  114. niwrap_afni/afni/imupsam.py +205 -0
  115. niwrap_afni/afni/init_user_dotfiles_py.py +353 -0
  116. niwrap_afni/afni/inspec.py +255 -0
  117. niwrap_afni/afni/iso_surface.py +344 -0
  118. niwrap_afni/afni/make_color_map.py +417 -0
  119. niwrap_afni/afni/make_pq_script_py.py +200 -0
  120. niwrap_afni/afni/make_random_timing_py.py +471 -0
  121. niwrap_afni/afni/make_stim_times_py.py +304 -0
  122. niwrap_afni/afni/map_icosahedron.py +296 -0
  123. niwrap_afni/afni/map_track_id.py +254 -0
  124. niwrap_afni/afni/mba.py +360 -0
  125. niwrap_afni/afni/meica_py.py +259 -0
  126. niwrap_afni/afni/myget.py +186 -0
  127. niwrap_afni/afni/neuro_deconvolve_py.py +291 -0
  128. niwrap_afni/afni/nicat.py +207 -0
  129. niwrap_afni/afni/niccc.py +307 -0
  130. niwrap_afni/afni/nifti_tool.py +310 -0
  131. niwrap_afni/afni/niml_feedme.py +260 -0
  132. niwrap_afni/afni/nsize.py +184 -0
  133. niwrap_afni/afni/p2dsetstat.py +216 -0
  134. niwrap_afni/afni/parse_fs_lt_log_py.py +217 -0
  135. niwrap_afni/afni/plugout_drive.py +259 -0
  136. niwrap_afni/afni/plugout_ijk.py +297 -0
  137. niwrap_afni/afni/plugout_tt.py +326 -0
  138. niwrap_afni/afni/plugout_tta.py +290 -0
  139. niwrap_afni/afni/prompt_popup.py +205 -0
  140. niwrap_afni/afni/prompt_user.py +190 -0
  141. niwrap_afni/afni/pta.py +279 -0
  142. niwrap_afni/afni/qdelaunay.py +534 -0
  143. niwrap_afni/afni/qhull.py +376 -0
  144. niwrap_afni/afni/quick_alpha_vals_py.py +189 -0
  145. niwrap_afni/afni/quickspec.py +259 -0
  146. niwrap_afni/afni/quickspec_sl.py +282 -0
  147. niwrap_afni/afni/quotize.py +194 -0
  148. niwrap_afni/afni/r_pkgs_install.py +227 -0
  149. niwrap_afni/afni/rba.py +508 -0
  150. niwrap_afni/afni/rbox.py +245 -0
  151. niwrap_afni/afni/read_matlab_files_py.py +225 -0
  152. niwrap_afni/afni/realtime_receiver.py +310 -0
  153. niwrap_afni/afni/retro_ts_py.py +477 -0
  154. niwrap_afni/afni/rmz.py +203 -0
  155. niwrap_afni/afni/roi2dataset.py +310 -0
  156. niwrap_afni/afni/roigrow.py +276 -0
  157. niwrap_afni/afni/rotcom.py +190 -0
  158. niwrap_afni/afni/rsfgen.py +330 -0
  159. niwrap_afni/afni/rtfeedme.py +308 -0
  160. niwrap_afni/afni/samp_bias.py +245 -0
  161. niwrap_afni/afni/scale_to_map.py +481 -0
  162. niwrap_afni/afni/serial_helper.py +298 -0
  163. niwrap_afni/afni/sfim.py +229 -0
  164. niwrap_afni/afni/slow_surf_clustsim_py.py +285 -0
  165. niwrap_afni/afni/spharm_deco.py +284 -0
  166. niwrap_afni/afni/spharm_reco.py +274 -0
  167. niwrap_afni/afni/stimband.py +229 -0
  168. niwrap_afni/afni/strblast.py +239 -0
  169. niwrap_afni/afni/suma_change_spec.py +225 -0
  170. niwrap_afni/afni/suma_glxdino.py +175 -0
  171. niwrap_afni/afni/surf2_vol_coord.py +305 -0
  172. niwrap_afni/afni/surf_clust.py +611 -0
  173. niwrap_afni/afni/surf_dist.py +208 -0
  174. niwrap_afni/afni/surf_dset_info.py +355 -0
  175. niwrap_afni/afni/surf_extrema.py +279 -0
  176. niwrap_afni/afni/surf_fwhm.py +350 -0
  177. niwrap_afni/afni/surf_info.py +288 -0
  178. niwrap_afni/afni/surf_layers.py +300 -0
  179. niwrap_afni/afni/surf_localstat.py +242 -0
  180. niwrap_afni/afni/surf_measures.py +373 -0
  181. niwrap_afni/afni/surf_mesh.py +256 -0
  182. niwrap_afni/afni/surf_patch.py +412 -0
  183. niwrap_afni/afni/surf_qual.py +250 -0
  184. niwrap_afni/afni/surf_retino_map.py +225 -0
  185. niwrap_afni/afni/surf_smooth.py +388 -0
  186. niwrap_afni/afni/surf_to_surf.py +327 -0
  187. niwrap_afni/afni/surface_metrics.py +377 -0
  188. niwrap_afni/afni/tedana_wrapper_py.py +306 -0
  189. niwrap_afni/afni/tfim.py +267 -0
  190. niwrap_afni/afni/timing_tool_py.py +406 -0
  191. niwrap_afni/afni/to3d.py +643 -0
  192. niwrap_afni/afni/tokens.py +192 -0
  193. niwrap_afni/afni/trr.py +405 -0
  194. niwrap_afni/afni/uber_align_test_py.py +266 -0
  195. niwrap_afni/afni/uber_proc_py.py +176 -0
  196. niwrap_afni/afni/uber_skel.py +277 -0
  197. niwrap_afni/afni/uber_subject_py.py +707 -0
  198. niwrap_afni/afni/un_warp_epi_py.py +232 -0
  199. niwrap_afni/afni/uniq_images.py +180 -0
  200. niwrap_afni/afni/v_1d_apar2mat.py +262 -0
  201. niwrap_afni/afni/v_1d_astrip.py +176 -0
  202. niwrap_afni/afni/v_1d_bandpass.py +238 -0
  203. niwrap_afni/afni/v_1d_bport.py +277 -0
  204. niwrap_afni/afni/v_1d_correlate.py +218 -0
  205. niwrap_afni/afni/v_1d_dw_grad_o_mat__.py +429 -0
  206. niwrap_afni/afni/v_1d_flag_motion.py +212 -0
  207. niwrap_afni/afni/v_1d_marry.py +214 -0
  208. niwrap_afni/afni/v_1d_nlfit.py +254 -0
  209. niwrap_afni/afni/v_1d_rplot.py +180 -0
  210. niwrap_afni/afni/v_1d_sem.py +215 -0
  211. niwrap_afni/afni/v_1d_tool_py.py +319 -0
  212. niwrap_afni/afni/v_1d_tsort.py +216 -0
  213. niwrap_afni/afni/v_1d_upsample.py +195 -0
  214. niwrap_afni/afni/v_1dcat.py +266 -0
  215. niwrap_afni/afni/v_1ddot.py +249 -0
  216. niwrap_afni/afni/v_1deval.py +265 -0
  217. niwrap_afni/afni/v_1dfft.py +269 -0
  218. niwrap_afni/afni/v_1dgen_arma11.py +319 -0
  219. niwrap_afni/afni/v_1dgrayplot.py +238 -0
  220. niwrap_afni/afni/v_1dmatcalc.py +180 -0
  221. niwrap_afni/afni/v_1dnorm.py +224 -0
  222. niwrap_afni/afni/v_1dplot.py +831 -0
  223. niwrap_afni/afni/v_1dplot_py.py +578 -0
  224. niwrap_afni/afni/v_1dsound.py +292 -0
  225. niwrap_afni/afni/v_1dsum.py +235 -0
  226. niwrap_afni/afni/v_1dsvd.py +272 -0
  227. niwrap_afni/afni/v_1dtranspose.py +188 -0
  228. niwrap_afni/afni/v_24swap.py +194 -0
  229. niwrap_afni/afni/v_2d_im_reg.py +312 -0
  230. niwrap_afni/afni/v_2dcat.py +496 -0
  231. niwrap_afni/afni/v_2perm.py +233 -0
  232. niwrap_afni/afni/v_2swap.py +181 -0
  233. niwrap_afni/afni/v_3_droimaker.py +419 -0
  234. niwrap_afni/afni/v_3d_aboverlap.py +211 -0
  235. niwrap_afni/afni/v_3d_acost.py +210 -0
  236. niwrap_afni/afni/v_3d_afnito3_d.py +177 -0
  237. niwrap_afni/afni/v_3d_afnito_analyze.py +219 -0
  238. niwrap_afni/afni/v_3d_afnito_nifti.py +245 -0
  239. niwrap_afni/afni/v_3d_afnito_niml.py +175 -0
  240. niwrap_afni/afni/v_3d_afnito_raw.py +202 -0
  241. niwrap_afni/afni/v_3d_allineate.py +350 -0
  242. niwrap_afni/afni/v_3d_amp_to_rsfc.py +262 -0
  243. niwrap_afni/afni/v_3d_anhist.py +260 -0
  244. niwrap_afni/afni/v_3d_anova.py +359 -0
  245. niwrap_afni/afni/v_3d_anova2.py +515 -0
  246. niwrap_afni/afni/v_3d_anova3.py +302 -0
  247. niwrap_afni/afni/v_3d_attribute.py +248 -0
  248. niwrap_afni/afni/v_3d_auto_tcorrelate.py +314 -0
  249. niwrap_afni/afni/v_3d_autobox.py +335 -0
  250. niwrap_afni/afni/v_3d_automask.py +258 -0
  251. niwrap_afni/afni/v_3d_ball_match.py +229 -0
  252. niwrap_afni/afni/v_3d_bandpass.py +381 -0
  253. niwrap_afni/afni/v_3d_blur_in_mask.py +291 -0
  254. niwrap_afni/afni/v_3d_blur_to_fwhm.py +267 -0
  255. niwrap_afni/afni/v_3d_brain_sync.py +267 -0
  256. niwrap_afni/afni/v_3d_brain_voyagerto_afni.py +313 -0
  257. niwrap_afni/afni/v_3d_brick_stat.py +463 -0
  258. niwrap_afni/afni/v_3d_clip_level.py +175 -0
  259. niwrap_afni/afni/v_3d_clust_count.py +229 -0
  260. niwrap_afni/afni/v_3d_clust_sim.py +196 -0
  261. niwrap_afni/afni/v_3d_clusterize.py +448 -0
  262. niwrap_afni/afni/v_3d_cm.py +177 -0
  263. niwrap_afni/afni/v_3d_compare_affine.py +215 -0
  264. niwrap_afni/afni/v_3d_conformist.py +176 -0
  265. niwrap_afni/afni/v_3d_convolve.py +197 -0
  266. niwrap_afni/afni/v_3d_cruiseto_afni.py +264 -0
  267. niwrap_afni/afni/v_3d_deconvolve.py +371 -0
  268. niwrap_afni/afni/v_3d_degree_centrality.py +270 -0
  269. niwrap_afni/afni/v_3d_depth_map.py +317 -0
  270. niwrap_afni/afni/v_3d_despike.py +191 -0
  271. niwrap_afni/afni/v_3d_detrend.py +191 -0
  272. niwrap_afni/afni/v_3d_dft.py +245 -0
  273. niwrap_afni/afni/v_3d_diff.py +254 -0
  274. niwrap_afni/afni/v_3d_dteig.py +236 -0
  275. niwrap_afni/afni/v_3d_dtto_dwi.py +199 -0
  276. niwrap_afni/afni/v_3d_dtto_noisy_dwi.py +275 -0
  277. niwrap_afni/afni/v_3d_dwito_dt.py +191 -0
  278. niwrap_afni/afni/v_3d_dwuncert.py +283 -0
  279. niwrap_afni/afni/v_3d_ecm.py +363 -0
  280. niwrap_afni/afni/v_3d_edu_01_scale.py +216 -0
  281. niwrap_afni/afni/v_3d_eigs_to_dt.py +271 -0
  282. niwrap_afni/afni/v_3d_empty.py +224 -0
  283. niwrap_afni/afni/v_3d_entropy.py +181 -0
  284. niwrap_afni/afni/v_3d_errts_cormat.py +243 -0
  285. niwrap_afni/afni/v_3d_exchange.py +226 -0
  286. niwrap_afni/afni/v_3d_extract_group_in_corr.py +195 -0
  287. niwrap_afni/afni/v_3d_extrema.py +384 -0
  288. niwrap_afni/afni/v_3d_fdr.py +325 -0
  289. niwrap_afni/afni/v_3d_fft.py +307 -0
  290. niwrap_afni/afni/v_3d_friedman.py +226 -0
  291. niwrap_afni/afni/v_3d_fwhmx.py +321 -0
  292. niwrap_afni/afni/v_3d_gen_feature_dist.py +262 -0
  293. niwrap_afni/afni/v_3d_gen_priors.py +487 -0
  294. niwrap_afni/afni/v_3d_getrow.py +243 -0
  295. niwrap_afni/afni/v_3d_grayplot.py +343 -0
  296. niwrap_afni/afni/v_3d_group_in_corr.py +484 -0
  297. niwrap_afni/afni/v_3d_hist.py +406 -0
  298. niwrap_afni/afni/v_3d_icc.py +228 -0
  299. niwrap_afni/afni/v_3d_intracranial.py +275 -0
  300. niwrap_afni/afni/v_3d_inv_fmri.py +317 -0
  301. niwrap_afni/afni/v_3d_isc.py +298 -0
  302. niwrap_afni/afni/v_3d_kruskal_wallis.py +231 -0
  303. niwrap_afni/afni/v_3d_lfcd.py +249 -0
  304. niwrap_afni/afni/v_3d_lme.py +524 -0
  305. niwrap_afni/afni/v_3d_lmer.py +425 -0
  306. niwrap_afni/afni/v_3d_local_acf.py +224 -0
  307. niwrap_afni/afni/v_3d_local_bistat.py +325 -0
  308. niwrap_afni/afni/v_3d_local_histog.py +268 -0
  309. niwrap_afni/afni/v_3d_local_pv.py +318 -0
  310. niwrap_afni/afni/v_3d_local_svd.py +258 -0
  311. niwrap_afni/afni/v_3d_local_unifize.py +286 -0
  312. niwrap_afni/afni/v_3d_localstat.py +427 -0
  313. niwrap_afni/afni/v_3d_lomb_scargle.py +307 -0
  314. niwrap_afni/afni/v_3d_lrflip.py +202 -0
  315. niwrap_afni/afni/v_3d_lss.py +175 -0
  316. niwrap_afni/afni/v_3d_mann_whitney.py +234 -0
  317. niwrap_afni/afni/v_3d_mask_to_ascii.py +189 -0
  318. niwrap_afni/afni/v_3d_match.py +300 -0
  319. niwrap_afni/afni/v_3d_mean.py +364 -0
  320. niwrap_afni/afni/v_3d_median_filter.py +238 -0
  321. niwrap_afni/afni/v_3d_mema.py +171 -0
  322. niwrap_afni/afni/v_3d_mepfm.py +256 -0
  323. niwrap_afni/afni/v_3d_mse.py +283 -0
  324. niwrap_afni/afni/v_3d_mss.py +397 -0
  325. niwrap_afni/afni/v_3d_multi_thresh.py +306 -0
  326. niwrap_afni/afni/v_3d_mvm.py +359 -0
  327. niwrap_afni/afni/v_3d_mvm_validator.py +191 -0
  328. niwrap_afni/afni/v_3d_net_corr.py +398 -0
  329. niwrap_afni/afni/v_3d_nlfim.py +241 -0
  330. niwrap_afni/afni/v_3d_normality_test.py +209 -0
  331. niwrap_afni/afni/v_3d_notes.py +246 -0
  332. niwrap_afni/afni/v_3d_nwarp_adjust.py +218 -0
  333. niwrap_afni/afni/v_3d_nwarp_apply.py +349 -0
  334. niwrap_afni/afni/v_3d_nwarp_cat.py +277 -0
  335. niwrap_afni/afni/v_3d_nwarp_funcs.py +232 -0
  336. niwrap_afni/afni/v_3d_nwarp_xyz.py +193 -0
  337. niwrap_afni/afni/v_3d_overlap.py +188 -0
  338. niwrap_afni/afni/v_3d_par2_afni.py +244 -0
  339. niwrap_afni/afni/v_3d_periodogram.py +220 -0
  340. niwrap_afni/afni/v_3d_pfm.py +248 -0
  341. niwrap_afni/afni/v_3d_polyfit.py +357 -0
  342. niwrap_afni/afni/v_3d_pval.py +232 -0
  343. niwrap_afni/afni/v_3d_pvmap.py +221 -0
  344. niwrap_afni/afni/v_3d_qwarp.py +359 -0
  345. niwrap_afni/afni/v_3d_rank.py +222 -0
  346. niwrap_afni/afni/v_3d_rankizer.py +241 -0
  347. niwrap_afni/afni/v_3d_re_ho.py +376 -0
  348. niwrap_afni/afni/v_3d_reg_ana.py +377 -0
  349. niwrap_afni/afni/v_3d_remlfit.py +322 -0
  350. niwrap_afni/afni/v_3d_retino_phase.py +379 -0
  351. niwrap_afni/afni/v_3d_roistats.py +379 -0
  352. niwrap_afni/afni/v_3d_row_fillin.py +231 -0
  353. niwrap_afni/afni/v_3d_rprog_demo.py +282 -0
  354. niwrap_afni/afni/v_3d_rsfc.py +198 -0
  355. niwrap_afni/afni/v_3d_seg.py +437 -0
  356. niwrap_afni/afni/v_3d_setup_group_in_corr.py +273 -0
  357. niwrap_afni/afni/v_3d_sharpen.py +206 -0
  358. niwrap_afni/afni/v_3d_signatures.py +230 -0
  359. niwrap_afni/afni/v_3d_skull_strip.py +204 -0
  360. niwrap_afni/afni/v_3d_slice_ndice.py +235 -0
  361. niwrap_afni/afni/v_3d_space_time_corr.py +265 -0
  362. niwrap_afni/afni/v_3d_spat_norm.py +265 -0
  363. niwrap_afni/afni/v_3d_stat_clust.py +257 -0
  364. niwrap_afni/afni/v_3d_surf2_vol.py +469 -0
  365. niwrap_afni/afni/v_3d_surf_mask.py +262 -0
  366. niwrap_afni/afni/v_3d_synthesize.py +251 -0
  367. niwrap_afni/afni/v_3d_tagalign.py +342 -0
  368. niwrap_afni/afni/v_3d_tcat.py +223 -0
  369. niwrap_afni/afni/v_3d_tcorr1_d.py +243 -0
  370. niwrap_afni/afni/v_3d_tcorr_map.py +396 -0
  371. niwrap_afni/afni/v_3d_tcorrelate.py +368 -0
  372. niwrap_afni/afni/v_3d_tfilter.py +203 -0
  373. niwrap_afni/afni/v_3d_tfitter.py +430 -0
  374. niwrap_afni/afni/v_3d_threeto_rgb.py +265 -0
  375. niwrap_afni/afni/v_3d_tnorm.py +247 -0
  376. niwrap_afni/afni/v_3d_tortoiseto_here.py +239 -0
  377. niwrap_afni/afni/v_3d_toutcount.py +285 -0
  378. niwrap_afni/afni/v_3d_toy_prog.py +216 -0
  379. niwrap_afni/afni/v_3d_tproject.py +475 -0
  380. niwrap_afni/afni/v_3d_tqual.py +261 -0
  381. niwrap_afni/afni/v_3d_track_id.py +628 -0
  382. niwrap_afni/afni/v_3d_trfix.py +234 -0
  383. niwrap_afni/afni/v_3d_tsgen.py +319 -0
  384. niwrap_afni/afni/v_3d_tshift.py +342 -0
  385. niwrap_afni/afni/v_3d_tsmooth.py +331 -0
  386. niwrap_afni/afni/v_3d_tsort.py +267 -0
  387. niwrap_afni/afni/v_3d_tsplit4_d.py +209 -0
  388. niwrap_afni/afni/v_3d_tstat.py +771 -0
  389. niwrap_afni/afni/v_3d_tto1_d.py +246 -0
  390. niwrap_afni/afni/v_3d_twoto_complex.py +241 -0
  391. niwrap_afni/afni/v_3d_undump.py +366 -0
  392. niwrap_afni/afni/v_3d_unifize.py +403 -0
  393. niwrap_afni/afni/v_3d_upsample.py +245 -0
  394. niwrap_afni/afni/v_3d_vec_rgb_to_hsl.py +226 -0
  395. niwrap_afni/afni/v_3d_vol2_surf.py +653 -0
  396. niwrap_afni/afni/v_3d_warp.py +173 -0
  397. niwrap_afni/afni/v_3d_warp_drive.py +596 -0
  398. niwrap_afni/afni/v_3d_wilcoxon.py +231 -0
  399. niwrap_afni/afni/v_3d_winsor.py +287 -0
  400. niwrap_afni/afni/v_3d_xclust_sim.py +370 -0
  401. niwrap_afni/afni/v_3d_xyzcat.py +216 -0
  402. niwrap_afni/afni/v_3d_zcat.py +259 -0
  403. niwrap_afni/afni/v_3d_zcutup.py +209 -0
  404. niwrap_afni/afni/v_3d_zeropad.py +371 -0
  405. niwrap_afni/afni/v_3d_zipper_zapper.py +388 -0
  406. niwrap_afni/afni/v_3d_zregrid.py +242 -0
  407. niwrap_afni/afni/v_3danisosmooth.py +436 -0
  408. niwrap_afni/afni/v_3daxialize.py +253 -0
  409. niwrap_afni/afni/v_3dbucket.py +266 -0
  410. niwrap_afni/afni/v_3dcalc.py +278 -0
  411. niwrap_afni/afni/v_3dclust.py +380 -0
  412. niwrap_afni/afni/v_3dcopy.py +184 -0
  413. niwrap_afni/afni/v_3ddelay.py +443 -0
  414. niwrap_afni/afni/v_3ddot.py +322 -0
  415. niwrap_afni/afni/v_3ddot_beta.py +214 -0
  416. niwrap_afni/afni/v_3dedge3.py +269 -0
  417. niwrap_afni/afni/v_3dedgedog.py +344 -0
  418. niwrap_afni/afni/v_3dfim_.py +350 -0
  419. niwrap_afni/afni/v_3dfractionize.py +261 -0
  420. niwrap_afni/afni/v_3dhistog.py +365 -0
  421. niwrap_afni/afni/v_3dinfill.py +302 -0
  422. niwrap_afni/afni/v_3dinfo.py +1271 -0
  423. niwrap_afni/afni/v_3dkmeans.py +449 -0
  424. niwrap_afni/afni/v_3dmask_svd.py +179 -0
  425. niwrap_afni/afni/v_3dmask_tool.py +334 -0
  426. niwrap_afni/afni/v_3dmaskave.py +223 -0
  427. niwrap_afni/afni/v_3dmaskdump.py +425 -0
  428. niwrap_afni/afni/v_3dmatcalc.py +221 -0
  429. niwrap_afni/afni/v_3dmatmult.py +227 -0
  430. niwrap_afni/afni/v_3dmaxdisp.py +205 -0
  431. niwrap_afni/afni/v_3dmaxima.py +373 -0
  432. niwrap_afni/afni/v_3dmerge.py +305 -0
  433. niwrap_afni/afni/v_3dnewid.py +239 -0
  434. niwrap_afni/afni/v_3dnvals.py +190 -0
  435. niwrap_afni/afni/v_3dpc.py +340 -0
  436. niwrap_afni/afni/v_3drefit.py +406 -0
  437. niwrap_afni/afni/v_3drename.py +180 -0
  438. niwrap_afni/afni/v_3dresample.py +256 -0
  439. niwrap_afni/afni/v_3dretroicor.py +296 -0
  440. niwrap_afni/afni/v_3drotate.py +477 -0
  441. niwrap_afni/afni/v_3dsvm.py +518 -0
  442. niwrap_afni/afni/v_3dsvm_linpredict.py +203 -0
  443. niwrap_afni/afni/v_3dto_xdataset.py +195 -0
  444. niwrap_afni/afni/v_3dttest__.py +444 -0
  445. niwrap_afni/afni/v_3dvolreg.py +360 -0
  446. niwrap_afni/afni/v_4swap.py +181 -0
  447. niwrap_afni/afni/v__1d_diff_mag.py +178 -0
  448. niwrap_afni/afni/v__2dwarper.py +176 -0
  449. niwrap_afni/afni/v__2dwarper_allin.py +207 -0
  450. niwrap_afni/afni/v__4_daverage.py +173 -0
  451. niwrap_afni/afni/v__add_edge.py +344 -0
  452. niwrap_afni/afni/v__afni_env.py +254 -0
  453. niwrap_afni/afni/v__afni_orient2_raimap.py +172 -0
  454. niwrap_afni/afni/v__afni_orient_sign.py +179 -0
  455. niwrap_afni/afni/v__afni_r_package_install.py +241 -0
  456. niwrap_afni/afni/v__afni_refacer_make_master.py +180 -0
  457. niwrap_afni/afni/v__afni_refacer_make_onebig_a12.py +178 -0
  458. niwrap_afni/afni/v__afni_refacer_run.py +304 -0
  459. niwrap_afni/afni/v__afni_run_me.py +191 -0
  460. niwrap_afni/afni/v__align_centers.py +324 -0
  461. niwrap_afni/afni/v__align_partial_oblique.py +285 -0
  462. niwrap_afni/afni/v__anaticor.py +326 -0
  463. niwrap_afni/afni/v__animal_warper.py +602 -0
  464. niwrap_afni/afni/v__atlasize.py +402 -0
  465. niwrap_afni/afni/v__auto_tlrc.py +642 -0
  466. niwrap_afni/afni/v__build_afni_xlib.py +201 -0
  467. niwrap_afni/afni/v__center_distance.py +187 -0
  468. niwrap_afni/afni/v__chauffeur_afni.py +204 -0
  469. niwrap_afni/afni/v__check_for_afni_dset.py +178 -0
  470. niwrap_afni/afni/v__clip_volume.py +388 -0
  471. niwrap_afni/afni/v__clust_exp_cat_lab.py +201 -0
  472. niwrap_afni/afni/v__clust_exp_run_shiny.py +181 -0
  473. niwrap_afni/afni/v__command_globb.py +220 -0
  474. niwrap_afni/afni/v__compute_gcor.py +246 -0
  475. niwrap_afni/afni/v__compute_oc_weights.py +287 -0
  476. niwrap_afni/afni/v__deblank_file_names.py +210 -0
  477. niwrap_afni/afni/v__demo_prompt.py +176 -0
  478. niwrap_afni/afni/v__dice_metric.py +315 -0
  479. niwrap_afni/afni/v__diff_files.py +273 -0
  480. niwrap_afni/afni/v__diff_tree.py +358 -0
  481. niwrap_afni/afni/v__djunct_4d_imager.py +225 -0
  482. niwrap_afni/afni/v__djunct_4d_slices_to_3d_vol.py +177 -0
  483. niwrap_afni/afni/v__djunct_anonymize.py +207 -0
  484. niwrap_afni/afni/v__djunct_dwi_selector.py +192 -0
  485. niwrap_afni/afni/v__djunct_edgy_align_check.py +339 -0
  486. niwrap_afni/afni/v__djunct_modal_smoothing_with_rep.py +249 -0
  487. niwrap_afni/afni/v__djunct_montage_coordinator.py +234 -0
  488. niwrap_afni/afni/v__djunct_overlap_check.py +430 -0
  489. niwrap_afni/afni/v__djunct_ssw_intermed_edge_imgs.py +311 -0
  490. niwrap_afni/afni/v__do_examples.py +181 -0
  491. niwrap_afni/afni/v__electro_grid.py +244 -0
  492. niwrap_afni/afni/v__examine_gen_feat_dists.py +277 -0
  493. niwrap_afni/afni/v__extract_meica_ortvec.py +248 -0
  494. niwrap_afni/afni/v__fast_roi.py +290 -0
  495. niwrap_afni/afni/v__fat_tract_colorize.py +267 -0
  496. niwrap_afni/afni/v__find_afni_dset_path.py +199 -0
  497. niwrap_afni/afni/v__fix_fssphere.py +236 -0
  498. niwrap_afni/afni/v__float_fix.py +176 -0
  499. niwrap_afni/afni/v__from_rai.py +186 -0
  500. niwrap_afni/afni/v__fs_roi_label.py +290 -0
  501. niwrap_afni/afni/v__fslabel2dset.py +217 -0
  502. niwrap_afni/afni/v__get_afni_dims.py +176 -0
  503. niwrap_afni/afni/v__get_afni_id.py +176 -0
  504. niwrap_afni/afni/v__get_afni_orient.py +185 -0
  505. niwrap_afni/afni/v__get_afni_prefix.py +182 -0
  506. niwrap_afni/afni/v__get_afni_res.py +183 -0
  507. niwrap_afni/afni/v__get_afni_version.py +177 -0
  508. niwrap_afni/afni/v__get_afni_view.py +178 -0
  509. niwrap_afni/afni/v__grad_flip_test.py +359 -0
  510. niwrap_afni/afni/v__grayplot.py +189 -0
  511. niwrap_afni/afni/v__help_afni.py +165 -0
  512. niwrap_afni/afni/v__is_oblique.py +176 -0
  513. niwrap_afni/afni/v__iso_masks.py +185 -0
  514. niwrap_afni/afni/v__make_label_table.py +587 -0
  515. niwrap_afni/afni/v__make_plug_diff.py +237 -0
  516. niwrap_afni/afni/v__measure_bb_thick.py +352 -0
  517. niwrap_afni/afni/v__measure_erosion_thick.py +328 -0
  518. niwrap_afni/afni/v__measure_in2out.py +355 -0
  519. niwrap_afni/afni/v__move_to_series_dirs.py +255 -0
  520. niwrap_afni/afni/v__no_ext.py +179 -0
  521. niwrap_afni/afni/v__no_pound.py +174 -0
  522. niwrap_afni/afni/v__noisy_skull_strip.py +212 -0
  523. niwrap_afni/afni/v__np.py +180 -0
  524. niwrap_afni/afni/v__parse_afni_name.py +187 -0
  525. niwrap_afni/afni/v__purify_1_d.py +202 -0
  526. niwrap_afni/afni/v__quiet_talkers.py +256 -0
  527. niwrap_afni/afni/v__radial_correlate.py +407 -0
  528. niwrap_afni/afni/v__rename_panga.py +279 -0
  529. niwrap_afni/afni/v__reorder.py +225 -0
  530. niwrap_afni/afni/v__retino_proc.py +670 -0
  531. niwrap_afni/afni/v__roi_corr_mat.py +277 -0
  532. niwrap_afni/afni/v__roi_decluster.py +252 -0
  533. niwrap_afni/afni/v__roi_modal_grow.py +256 -0
  534. niwrap_afni/afni/v__scale_volume.py +252 -0
  535. niwrap_afni/afni/v__script_check.py +201 -0
  536. niwrap_afni/afni/v__shift_volume.py +240 -0
  537. niwrap_afni/afni/v__show_dynamic_range.py +183 -0
  538. niwrap_afni/afni/v__simulate_motion.py +350 -0
  539. niwrap_afni/afni/v__skull_strip_touch_up.py +224 -0
  540. niwrap_afni/afni/v__snapshot_volreg.py +207 -0
  541. niwrap_afni/afni/v__spharm_examples.py +226 -0
  542. niwrap_afni/afni/v__sswarper.py +465 -0
  543. niwrap_afni/afni/v__statauxcode.py +178 -0
  544. niwrap_afni/afni/v__suma_acknowledge.py +259 -0
  545. niwrap_afni/afni/v__suma_align_to_experiment.py +421 -0
  546. niwrap_afni/afni/v__suma_fsvol_to_brik.py +189 -0
  547. niwrap_afni/afni/v__suma_make_spec_caret.py +183 -0
  548. niwrap_afni/afni/v__suma_make_spec_fs.py +180 -0
  549. niwrap_afni/afni/v__suma_make_spec_sf.py +207 -0
  550. niwrap_afni/afni/v__suma_renumber_fs.py +209 -0
  551. niwrap_afni/afni/v__suma_reprefixize_spec.py +221 -0
  552. niwrap_afni/afni/v__surf_smooth_heat_07_examples.py +172 -0
  553. niwrap_afni/afni/v__surf_to_vol_spackle.py +322 -0
  554. niwrap_afni/afni/v__t1scale.py +328 -0
  555. niwrap_afni/afni/v__thickness_master.py +213 -0
  556. niwrap_afni/afni/v__time_diff.py +180 -0
  557. niwrap_afni/afni/v__to_mni_awarp.py +188 -0
  558. niwrap_afni/afni/v__to_mni_qwarpar.py +170 -0
  559. niwrap_afni/afni/v__to_rai.py +170 -0
  560. niwrap_afni/afni/v__update_afni_binaries.py +410 -0
  561. niwrap_afni/afni/v__vol_center.py +188 -0
  562. niwrap_afni/afni/v__xyz_to_ijk.py +221 -0
  563. niwrap_afni/afni/vecwarp.py +265 -0
  564. niwrap_afni/afni/waver.py +458 -0
  565. niwrap_afni/afni/whirlgif.py +254 -0
  566. niwrap_afni/afni/xmat_tool_py.py +381 -0
  567. niwrap_afni-0.5.0.dist-info/METADATA +8 -0
  568. niwrap_afni-0.5.0.dist-info/RECORD +569 -0
  569. niwrap_afni-0.5.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,1271 @@
1
+ # This file was auto generated by Styx.
2
+ # Do not edit this file directly.
3
+
4
+ import typing
5
+ import pathlib
6
+ from styxdefs import *
7
+
8
+ V_3DINFO_METADATA = Metadata(
9
+ id="c0b7ae1e6ddb0557936952320119fb7853d0bfcd.boutiques",
10
+ name="3dinfo",
11
+ package="afni",
12
+ container_image_tag="afni/afni_make_build:AFNI_24.2.06",
13
+ )
14
+
15
+
16
+ V3dinfoParameters = typing.TypedDict('V3dinfoParameters', {
17
+ "__STYX_TYPE__": typing.Literal["3dinfo"],
18
+ "orient": bool,
19
+ "Lextent": bool,
20
+ "Rextent": bool,
21
+ "Aextent": bool,
22
+ "Pextent": bool,
23
+ "Iextent": bool,
24
+ "Sextent": bool,
25
+ "all_names": bool,
26
+ "verb": bool,
27
+ "very_verbose": bool,
28
+ "short": bool,
29
+ "no_hist": bool,
30
+ "h": bool,
31
+ "help": bool,
32
+ "extreme_help": bool,
33
+ "h_view": bool,
34
+ "h_web": bool,
35
+ "h_find": typing.NotRequired[str | None],
36
+ "h_raw": bool,
37
+ "h_spx": bool,
38
+ "h_aspx": bool,
39
+ "all_opts": bool,
40
+ "label2index": typing.NotRequired[str | None],
41
+ "niml_hdr": bool,
42
+ "subbrick_info": bool,
43
+ "exists": bool,
44
+ "id": bool,
45
+ "is_atlas": bool,
46
+ "is_atlas_or_labeltable": bool,
47
+ "is_nifti": bool,
48
+ "dset_extension": bool,
49
+ "storage_mode": bool,
50
+ "space": bool,
51
+ "gen_space": bool,
52
+ "av_space": bool,
53
+ "nifti_code": bool,
54
+ "is_oblique": bool,
55
+ "handedness": bool,
56
+ "obliquity": bool,
57
+ "prefix": bool,
58
+ "prefix_noext": bool,
59
+ "ni": bool,
60
+ "nj": bool,
61
+ "nk": bool,
62
+ "nijk": bool,
63
+ "nv": bool,
64
+ "nt": bool,
65
+ "n4": bool,
66
+ "nvi": bool,
67
+ "nti": bool,
68
+ "ntimes": bool,
69
+ "max_node": bool,
70
+ "di": bool,
71
+ "dj": bool,
72
+ "dk": bool,
73
+ "d3": bool,
74
+ "adi": bool,
75
+ "adj": bool,
76
+ "adk": bool,
77
+ "ad3": bool,
78
+ "voxvol": bool,
79
+ "oi": bool,
80
+ "oj": bool,
81
+ "ok": bool,
82
+ "o3": bool,
83
+ "dcx": bool,
84
+ "dcy": bool,
85
+ "dcz": bool,
86
+ "dc3": bool,
87
+ "tr": bool,
88
+ "dmin": bool,
89
+ "dmax": bool,
90
+ "dminus": bool,
91
+ "dmaxus": bool,
92
+ "smode": bool,
93
+ "header_name": bool,
94
+ "brick_name": bool,
95
+ "iname": bool,
96
+ "extent": bool,
97
+ "fac": bool,
98
+ "label": bool,
99
+ "datum": bool,
100
+ "min": bool,
101
+ "max": bool,
102
+ "minus": bool,
103
+ "maxus": bool,
104
+ "labeltable": bool,
105
+ "labeltable_as_atlas_points": bool,
106
+ "atlas_points": bool,
107
+ "history": bool,
108
+ "slice_timing": bool,
109
+ "header_line": bool,
110
+ "hdr": bool,
111
+ "sb_delim": typing.NotRequired[str | None],
112
+ "NA_flag": typing.NotRequired[str | None],
113
+ "atr_delim": typing.NotRequired[str | None],
114
+ "aform_real": bool,
115
+ "aform_real_oneline": bool,
116
+ "aform_real_refit_ori": bool,
117
+ "is_aform_real_orth": bool,
118
+ "aform_orth": bool,
119
+ "perm_to_orient": typing.NotRequired[str | None],
120
+ "same_grid": bool,
121
+ "same_dim": bool,
122
+ "same_delta": bool,
123
+ "same_orient": bool,
124
+ "same_center": bool,
125
+ "same_obl": bool,
126
+ "same_all_grid": bool,
127
+ "val_diff": bool,
128
+ "sval_diff": bool,
129
+ "monog_pairs": bool,
130
+ "dataset": list[InputPathType],
131
+ })
132
+
133
+
134
+ def dyn_cargs(
135
+ t: str,
136
+ ) -> typing.Any:
137
+ """
138
+ Get build cargs function by command type.
139
+
140
+ Args:
141
+ t: Command type.
142
+ Returns:
143
+ Build cargs function.
144
+ """
145
+ return {
146
+ "3dinfo": v_3dinfo_cargs,
147
+ }.get(t)
148
+
149
+
150
+ def dyn_outputs(
151
+ t: str,
152
+ ) -> typing.Any:
153
+ """
154
+ Get build outputs function by command type.
155
+
156
+ Args:
157
+ t: Command type.
158
+ Returns:
159
+ Build outputs function.
160
+ """
161
+ return {
162
+ }.get(t)
163
+
164
+
165
+ class V3dinfoOutputs(typing.NamedTuple):
166
+ """
167
+ Output object returned when calling `v_3dinfo(...)`.
168
+ """
169
+ root: OutputPathType
170
+ """Output root folder. This is the root folder for all outputs."""
171
+ info: list[str]
172
+ """Sort-of-useful information from a 3D dataset's header"""
173
+
174
+
175
+ def v_3dinfo_params(
176
+ dataset: list[InputPathType],
177
+ orient: bool = False,
178
+ lextent: bool = False,
179
+ rextent: bool = False,
180
+ aextent: bool = False,
181
+ pextent: bool = False,
182
+ iextent: bool = False,
183
+ sextent: bool = False,
184
+ all_names: bool = False,
185
+ verb: bool = False,
186
+ very_verbose: bool = False,
187
+ short: bool = False,
188
+ no_hist: bool = False,
189
+ h: bool = False,
190
+ help_: bool = False,
191
+ extreme_help: bool = False,
192
+ h_view: bool = False,
193
+ h_web: bool = False,
194
+ h_find: str | None = None,
195
+ h_raw: bool = False,
196
+ h_spx: bool = False,
197
+ h_aspx: bool = False,
198
+ all_opts: bool = False,
199
+ label2index: str | None = None,
200
+ niml_hdr: bool = False,
201
+ subbrick_info: bool = False,
202
+ exists: bool = False,
203
+ id_: bool = False,
204
+ is_atlas: bool = False,
205
+ is_atlas_or_labeltable: bool = False,
206
+ is_nifti: bool = False,
207
+ dset_extension: bool = False,
208
+ storage_mode: bool = False,
209
+ space: bool = False,
210
+ gen_space: bool = False,
211
+ av_space: bool = False,
212
+ nifti_code: bool = False,
213
+ is_oblique: bool = False,
214
+ handedness: bool = False,
215
+ obliquity: bool = False,
216
+ prefix: bool = False,
217
+ prefix_noext: bool = False,
218
+ ni: bool = False,
219
+ nj: bool = False,
220
+ nk: bool = False,
221
+ nijk: bool = False,
222
+ nv: bool = False,
223
+ nt_: bool = False,
224
+ n4: bool = False,
225
+ nvi: bool = False,
226
+ nti: bool = False,
227
+ ntimes: bool = False,
228
+ max_node: bool = False,
229
+ di: bool = False,
230
+ dj: bool = False,
231
+ dk: bool = False,
232
+ d3: bool = False,
233
+ adi: bool = False,
234
+ adj: bool = False,
235
+ adk: bool = False,
236
+ ad3: bool = False,
237
+ voxvol: bool = False,
238
+ oi: bool = False,
239
+ oj: bool = False,
240
+ ok: bool = False,
241
+ o3: bool = False,
242
+ dcx: bool = False,
243
+ dcy: bool = False,
244
+ dcz: bool = False,
245
+ dc3: bool = False,
246
+ tr: bool = False,
247
+ dmin: bool = False,
248
+ dmax: bool = False,
249
+ dminus: bool = False,
250
+ dmaxus: bool = False,
251
+ smode: bool = False,
252
+ header_name: bool = False,
253
+ brick_name: bool = False,
254
+ iname: bool = False,
255
+ extent: bool = False,
256
+ fac: bool = False,
257
+ label: bool = False,
258
+ datum: bool = False,
259
+ min_: bool = False,
260
+ max_: bool = False,
261
+ minus: bool = False,
262
+ maxus: bool = False,
263
+ labeltable: bool = False,
264
+ labeltable_as_atlas_points: bool = False,
265
+ atlas_points: bool = False,
266
+ history: bool = False,
267
+ slice_timing: bool = False,
268
+ header_line: bool = False,
269
+ hdr: bool = False,
270
+ sb_delim: str | None = None,
271
+ na_flag: str | None = None,
272
+ atr_delim: str | None = None,
273
+ aform_real: bool = False,
274
+ aform_real_oneline: bool = False,
275
+ aform_real_refit_ori: bool = False,
276
+ is_aform_real_orth: bool = False,
277
+ aform_orth: bool = False,
278
+ perm_to_orient: str | None = None,
279
+ same_grid: bool = False,
280
+ same_dim: bool = False,
281
+ same_delta: bool = False,
282
+ same_orient: bool = False,
283
+ same_center: bool = False,
284
+ same_obl: bool = False,
285
+ same_all_grid: bool = False,
286
+ val_diff: bool = False,
287
+ sval_diff: bool = False,
288
+ monog_pairs: bool = False,
289
+ ) -> V3dinfoParameters:
290
+ """
291
+ Build parameters.
292
+
293
+ Args:
294
+ dataset: Datasets to retrieve information from.
295
+ orient: Value of orientation string. For example, LPI means: i\
296
+ direction grows from Left(negative) to Right(positive). j direction\
297
+ grows from Posterior (neg.) to Anterior (pos.) k direction grows from\
298
+ Inferior (neg.) to Superior (pos.).
299
+ lextent: Extent along L.
300
+ rextent: Extent along R.
301
+ aextent: Extent along A.
302
+ pextent: Extent along P.
303
+ iextent: Extent along I.
304
+ sextent: Extent along S.
305
+ all_names: Value of various dset structures handling filenames.
306
+ verb: Print out lots of information.
307
+ very_verbose: Print out even more information including slice time\
308
+ offsets.
309
+ short: Print out less information (default).
310
+ no_hist: Omit the HISTORY text.
311
+ h: Mini help.
312
+ help_: Display entire help output.
313
+ extreme_help: Extreme help.
314
+ h_view: Open help in text editor.
315
+ h_web: Open help in web browser.
316
+ h_find: Look for lines in help output that match WORD.
317
+ h_raw: Display unedited help string.
318
+ h_spx: Help string in sphinx format without autoformatting options.
319
+ h_aspx: Help string in sphinx format with autoformatting options.
320
+ all_opts: Try to identify all options for the program from the help\
321
+ output.
322
+ label2index: Output index corresponding to label.
323
+ niml_hdr: Output entire NIML-formatted header.
324
+ subbrick_info: Output only sub-brick part of information.
325
+ exists: 1 if dset is loadable, 0 otherwise. This works on prefix also.
326
+ id_: Idcodestring of dset.
327
+ is_atlas: 1 if dset is an atlas.
328
+ is_atlas_or_labeltable: 1 if dset has an atlas or labeltable.
329
+ is_nifti: 1 if dset is NIFTI format, 0 otherwise.
330
+ dset_extension: Show filename extension for valid dataset (e.g.\
331
+ .nii.gz).
332
+ storage_mode: Show internal storage mode of dataset (e.g. NIFTI).
333
+ space: Dataset's space.
334
+ gen_space: Dataset's generic space.
335
+ av_space: AFNI format's view extension for the space.
336
+ nifti_code: What AFNI would use for an output NIFTI (q)sform_code.
337
+ is_oblique: 1 if dset is oblique.
338
+ handedness: L if orientation is Left handed, R if it is right handed.
339
+ obliquity: Angle from plumb direction. Angles of 0 (or close) are for\
340
+ cardinal orientations.
341
+ prefix: Return the prefix.
342
+ prefix_noext: Return the prefix without extensions.
343
+ ni: Return the number of voxels in i dimension.
344
+ nj: Return the number of voxels in j dimension.
345
+ nk: Return the number of voxels in k dimension.
346
+ nijk: Return ni*nj*nk.
347
+ nv: Return number of points in time or the number of sub-bricks.
348
+ nt_: Same as -nv.
349
+ n4: Same as -ni -nj -nk -nv.
350
+ nvi: The maximum sub-brick index (= nv -1 ).
351
+ nti: Same as -nvi.
352
+ ntimes: Return number of sub-bricks points in time. This is an option\
353
+ for debugging use, stay away from it.
354
+ max_node: For a surface-based dset, return the maximum node index.
355
+ di: Signed displacement per voxel along i direction, aka dx.
356
+ dj: Signed displacement per voxel along j direction, aka dy.
357
+ dk: Signed displacement per voxel along k direction, aka dz.
358
+ d3: Same as -di -dj -dk.
359
+ adi: Voxel size along i direction (abs(di)).
360
+ adj: Voxel size along j direction (abs(dj)).
361
+ adk: Voxel size along k direction (abs(dk)).
362
+ ad3: Same as -adi -adj -adk.
363
+ voxvol: Voxel volume in cubic millimeters.
364
+ oi: Volume origin along the i direction.
365
+ oj: Volume origin along the j direction.
366
+ ok: Volume origin along the k direction.
367
+ o3: Same as -oi -oj -ok.
368
+ dcx: Volumetric center in x direction (DICOM coordinates).
369
+ dcy: Volumetric center in y direction (DICOM coordinates).
370
+ dcz: Volumetric center in z direction (DICOM coordinates).
371
+ dc3: Same as -dcx -dcy -dcz.
372
+ tr: The TR value in seconds.
373
+ dmin: The dataset's minimum value, scaled by fac.
374
+ dmax: The dataset's maximum value, scaled by fac.
375
+ dminus: The dataset's minimum value, unscaled.
376
+ dmaxus: The dataset's maximum value, unscaled.
377
+ smode: Dset storage mode string.
378
+ header_name: Value of dset structure (sub)field 'header_name'.
379
+ brick_name: Value of dset structure (sub)field 'brick_name'.
380
+ iname: Name of dset as input on the command line.
381
+ extent: The spatial extent of the dataset along R, L, A, P, I and S.
382
+ fac: Return the float scaling factor.
383
+ label: The label of each sub-brick.
384
+ datum: The data storage type.
385
+ min_: The minimum value, scaled by fac.
386
+ max_: The maximum value, scaled by fac.
387
+ minus: The minimum value, unscaled.
388
+ maxus: The maximum value, unscaled.
389
+ labeltable: Show label table, if any.
390
+ labeltable_as_atlas_points: Show label table in atlas point format.
391
+ atlas_points: Show atlas points list, if any.
392
+ history: History note.
393
+ slice_timing: Show slice timing.
394
+ header_line: Output as the first line the names of attributes in each\
395
+ field (column).
396
+ hdr: Same as -header_line.
397
+ sb_delim: Delimiter string between sub-brick values. Default SB_DELIM\
398
+ is '|'.
399
+ na_flag: String to use when a field is not found or not applicable.\
400
+ Default is 'NA'.
401
+ atr_delim: Delimiter string between attributes. Default ATR_DELIM is\
402
+ the tab character.
403
+ aform_real: Display full 3x4 'aform_real' matrix (AFNI's RAI equivalent\
404
+ of the sform matrix in NIFTI, may contain obliquity info), with comment\
405
+ line first.
406
+ aform_real_oneline: Display full 'aform_real' matrix (see\
407
+ '-aform_real') as 1 row of 12 numbers. No additional comment.
408
+ aform_real_refit_ori: Display full 3x4 'aform_real' matrix (see\
409
+ '-aform_real') *if* the dset were reoriented (via 3drefit) to new\
410
+ orient XXX. Includes comment line first.
411
+ is_aform_real_orth: If true, aform_real == aform_orth, which should be\
412
+ a very common occurrence.
413
+ aform_orth: Display full 3x4 'aform_orth' matrix (AFNI's RAI matrix\
414
+ equivalent of the NIFTI quaternion, which may contain obliquity info),\
415
+ with comment line first. This matrix is the orthogonalized form of\
416
+ aform_real, and very often AFNI-produced dsets, we will have:\
417
+ aform_orth == aform_real.
418
+ perm_to_orient: Display 3x3 permutation matrix to go from the dset's\
419
+ current orientation to the YYY orient.
420
+ same_grid: Output 1 if the grid is identical between two dsets, 0\
421
+ otherwise. For -same_grid to be 1, all of -same_dim, -same_delta,\
422
+ -same_orient, -same_center, and -same_obl must return 1.
423
+ same_dim: 1 if dimensions (nx, ny, nz) are the same between dset pairs.
424
+ same_delta: 1 if voxel sizes are the same between dset pairs.
425
+ same_orient: 1 if orientation is the same between dset pairs.
426
+ same_center: 1 if geometric center is the same between dset pairs.
427
+ same_obl: 1 if obliquity is the same between dset pairs.
428
+ same_all_grid: Equivalent to listing all of -same_dim, -same_delta,\
429
+ -same_orient, -same_center, and -same_obl on the command line.
430
+ val_diff: Output the sum of absolute differences of all voxels in the\
431
+ dataset pair. A -1.0 value indicates a grid mismatch between volume\
432
+ pairs.
433
+ sval_diff: Same as -val_diff, but the sum is divided (scaled) by the\
434
+ total number of voxels that are not zero in at least one of the two\
435
+ datasets.
436
+ monog_pairs: Instead of pairing each dset with the first, pair each\
437
+ couple separately. This requires you to have an even number of dsets on\
438
+ the command line.
439
+ Returns:
440
+ Parameter dictionary
441
+ """
442
+ params = {
443
+ "__STYXTYPE__": "3dinfo",
444
+ "orient": orient,
445
+ "Lextent": lextent,
446
+ "Rextent": rextent,
447
+ "Aextent": aextent,
448
+ "Pextent": pextent,
449
+ "Iextent": iextent,
450
+ "Sextent": sextent,
451
+ "all_names": all_names,
452
+ "verb": verb,
453
+ "very_verbose": very_verbose,
454
+ "short": short,
455
+ "no_hist": no_hist,
456
+ "h": h,
457
+ "help": help_,
458
+ "extreme_help": extreme_help,
459
+ "h_view": h_view,
460
+ "h_web": h_web,
461
+ "h_raw": h_raw,
462
+ "h_spx": h_spx,
463
+ "h_aspx": h_aspx,
464
+ "all_opts": all_opts,
465
+ "niml_hdr": niml_hdr,
466
+ "subbrick_info": subbrick_info,
467
+ "exists": exists,
468
+ "id": id_,
469
+ "is_atlas": is_atlas,
470
+ "is_atlas_or_labeltable": is_atlas_or_labeltable,
471
+ "is_nifti": is_nifti,
472
+ "dset_extension": dset_extension,
473
+ "storage_mode": storage_mode,
474
+ "space": space,
475
+ "gen_space": gen_space,
476
+ "av_space": av_space,
477
+ "nifti_code": nifti_code,
478
+ "is_oblique": is_oblique,
479
+ "handedness": handedness,
480
+ "obliquity": obliquity,
481
+ "prefix": prefix,
482
+ "prefix_noext": prefix_noext,
483
+ "ni": ni,
484
+ "nj": nj,
485
+ "nk": nk,
486
+ "nijk": nijk,
487
+ "nv": nv,
488
+ "nt": nt_,
489
+ "n4": n4,
490
+ "nvi": nvi,
491
+ "nti": nti,
492
+ "ntimes": ntimes,
493
+ "max_node": max_node,
494
+ "di": di,
495
+ "dj": dj,
496
+ "dk": dk,
497
+ "d3": d3,
498
+ "adi": adi,
499
+ "adj": adj,
500
+ "adk": adk,
501
+ "ad3": ad3,
502
+ "voxvol": voxvol,
503
+ "oi": oi,
504
+ "oj": oj,
505
+ "ok": ok,
506
+ "o3": o3,
507
+ "dcx": dcx,
508
+ "dcy": dcy,
509
+ "dcz": dcz,
510
+ "dc3": dc3,
511
+ "tr": tr,
512
+ "dmin": dmin,
513
+ "dmax": dmax,
514
+ "dminus": dminus,
515
+ "dmaxus": dmaxus,
516
+ "smode": smode,
517
+ "header_name": header_name,
518
+ "brick_name": brick_name,
519
+ "iname": iname,
520
+ "extent": extent,
521
+ "fac": fac,
522
+ "label": label,
523
+ "datum": datum,
524
+ "min": min_,
525
+ "max": max_,
526
+ "minus": minus,
527
+ "maxus": maxus,
528
+ "labeltable": labeltable,
529
+ "labeltable_as_atlas_points": labeltable_as_atlas_points,
530
+ "atlas_points": atlas_points,
531
+ "history": history,
532
+ "slice_timing": slice_timing,
533
+ "header_line": header_line,
534
+ "hdr": hdr,
535
+ "aform_real": aform_real,
536
+ "aform_real_oneline": aform_real_oneline,
537
+ "aform_real_refit_ori": aform_real_refit_ori,
538
+ "is_aform_real_orth": is_aform_real_orth,
539
+ "aform_orth": aform_orth,
540
+ "same_grid": same_grid,
541
+ "same_dim": same_dim,
542
+ "same_delta": same_delta,
543
+ "same_orient": same_orient,
544
+ "same_center": same_center,
545
+ "same_obl": same_obl,
546
+ "same_all_grid": same_all_grid,
547
+ "val_diff": val_diff,
548
+ "sval_diff": sval_diff,
549
+ "monog_pairs": monog_pairs,
550
+ "dataset": dataset,
551
+ }
552
+ if h_find is not None:
553
+ params["h_find"] = h_find
554
+ if label2index is not None:
555
+ params["label2index"] = label2index
556
+ if sb_delim is not None:
557
+ params["sb_delim"] = sb_delim
558
+ if na_flag is not None:
559
+ params["NA_flag"] = na_flag
560
+ if atr_delim is not None:
561
+ params["atr_delim"] = atr_delim
562
+ if perm_to_orient is not None:
563
+ params["perm_to_orient"] = perm_to_orient
564
+ return params
565
+
566
+
567
+ def v_3dinfo_cargs(
568
+ params: V3dinfoParameters,
569
+ execution: Execution,
570
+ ) -> list[str]:
571
+ """
572
+ Build command-line arguments from parameters.
573
+
574
+ Args:
575
+ params: The parameters.
576
+ execution: The execution object for resolving input paths.
577
+ Returns:
578
+ Command-line arguments.
579
+ """
580
+ cargs = []
581
+ cargs.append("3dinfo")
582
+ if params.get("orient"):
583
+ cargs.append("-orient")
584
+ if params.get("Lextent"):
585
+ cargs.append("-Lextent")
586
+ if params.get("Rextent"):
587
+ cargs.append("-Rextent")
588
+ if params.get("Aextent"):
589
+ cargs.append("-Aextent")
590
+ if params.get("Pextent"):
591
+ cargs.append("-Pextent")
592
+ if params.get("Iextent"):
593
+ cargs.append("-Iextent")
594
+ if params.get("Sextent"):
595
+ cargs.append("-Sextent")
596
+ if params.get("all_names"):
597
+ cargs.append("-all_names")
598
+ if params.get("verb"):
599
+ cargs.append("-verb")
600
+ if params.get("very_verbose"):
601
+ cargs.append("-VERB")
602
+ if params.get("short"):
603
+ cargs.append("-short")
604
+ if params.get("no_hist"):
605
+ cargs.append("-no_hist")
606
+ if params.get("h"):
607
+ cargs.append("-h")
608
+ if params.get("help"):
609
+ cargs.append("-help")
610
+ if params.get("extreme_help"):
611
+ cargs.append("-HELP")
612
+ if params.get("h_view"):
613
+ cargs.append("-h_view")
614
+ if params.get("h_web"):
615
+ cargs.append("-h_web")
616
+ if params.get("h_find") is not None:
617
+ cargs.extend([
618
+ "-h_find",
619
+ params.get("h_find")
620
+ ])
621
+ if params.get("h_raw"):
622
+ cargs.append("-h_raw")
623
+ if params.get("h_spx"):
624
+ cargs.append("-h_spx")
625
+ if params.get("h_aspx"):
626
+ cargs.append("-h_aspx")
627
+ if params.get("all_opts"):
628
+ cargs.append("-all_opts")
629
+ if params.get("label2index") is not None:
630
+ cargs.extend([
631
+ "-label2index",
632
+ params.get("label2index")
633
+ ])
634
+ if params.get("niml_hdr"):
635
+ cargs.append("-niml_hdr")
636
+ if params.get("subbrick_info"):
637
+ cargs.append("-subbrick_info")
638
+ if params.get("exists"):
639
+ cargs.append("-exists")
640
+ if params.get("id"):
641
+ cargs.append("-id")
642
+ if params.get("is_atlas"):
643
+ cargs.append("-is_atlas")
644
+ if params.get("is_atlas_or_labeltable"):
645
+ cargs.append("-is_atlas_or_labeltable")
646
+ if params.get("is_nifti"):
647
+ cargs.append("-is_nifti")
648
+ if params.get("dset_extension"):
649
+ cargs.append("-dset_extension")
650
+ if params.get("storage_mode"):
651
+ cargs.append("-storage_mode")
652
+ if params.get("space"):
653
+ cargs.append("-space")
654
+ if params.get("gen_space"):
655
+ cargs.append("-gen_space")
656
+ if params.get("av_space"):
657
+ cargs.append("-av_space")
658
+ if params.get("nifti_code"):
659
+ cargs.append("-nifti_code")
660
+ if params.get("is_oblique"):
661
+ cargs.append("-is_oblique")
662
+ if params.get("handedness"):
663
+ cargs.append("-handedness")
664
+ if params.get("obliquity"):
665
+ cargs.append("-obliquity")
666
+ if params.get("prefix"):
667
+ cargs.append("-prefix")
668
+ if params.get("prefix_noext"):
669
+ cargs.append("-prefix_noext")
670
+ if params.get("ni"):
671
+ cargs.append("-ni")
672
+ if params.get("nj"):
673
+ cargs.append("-nj")
674
+ if params.get("nk"):
675
+ cargs.append("-nk")
676
+ if params.get("nijk"):
677
+ cargs.append("-nijk")
678
+ if params.get("nv"):
679
+ cargs.append("-nv")
680
+ if params.get("nt"):
681
+ cargs.append("-nt")
682
+ if params.get("n4"):
683
+ cargs.append("-n4")
684
+ if params.get("nvi"):
685
+ cargs.append("-nvi")
686
+ if params.get("nti"):
687
+ cargs.append("-nti")
688
+ if params.get("ntimes"):
689
+ cargs.append("-ntimes")
690
+ if params.get("max_node"):
691
+ cargs.append("-max_node")
692
+ if params.get("di"):
693
+ cargs.append("-di")
694
+ if params.get("dj"):
695
+ cargs.append("-dj")
696
+ if params.get("dk"):
697
+ cargs.append("-dk")
698
+ if params.get("d3"):
699
+ cargs.append("-d3")
700
+ if params.get("adi"):
701
+ cargs.append("-adi")
702
+ if params.get("adj"):
703
+ cargs.append("-adj")
704
+ if params.get("adk"):
705
+ cargs.append("-adk")
706
+ if params.get("ad3"):
707
+ cargs.append("-ad3")
708
+ if params.get("voxvol"):
709
+ cargs.append("-voxvol")
710
+ if params.get("oi"):
711
+ cargs.append("-oi")
712
+ if params.get("oj"):
713
+ cargs.append("-oj")
714
+ if params.get("ok"):
715
+ cargs.append("-ok")
716
+ if params.get("o3"):
717
+ cargs.append("-o3")
718
+ if params.get("dcx"):
719
+ cargs.append("-dcx")
720
+ if params.get("dcy"):
721
+ cargs.append("-dcy")
722
+ if params.get("dcz"):
723
+ cargs.append("-dcz")
724
+ if params.get("dc3"):
725
+ cargs.append("-dc3")
726
+ if params.get("tr"):
727
+ cargs.append("-tr")
728
+ if params.get("dmin"):
729
+ cargs.append("-dmin")
730
+ if params.get("dmax"):
731
+ cargs.append("-dmax")
732
+ if params.get("dminus"):
733
+ cargs.append("-dminus")
734
+ if params.get("dmaxus"):
735
+ cargs.append("-dmaxus")
736
+ if params.get("smode"):
737
+ cargs.append("-smode")
738
+ if params.get("header_name"):
739
+ cargs.append("-header_name")
740
+ if params.get("brick_name"):
741
+ cargs.append("-brick_name")
742
+ if params.get("iname"):
743
+ cargs.append("-iname")
744
+ if params.get("extent"):
745
+ cargs.append("-extent")
746
+ if params.get("fac"):
747
+ cargs.append("-fac")
748
+ if params.get("label"):
749
+ cargs.append("-label")
750
+ if params.get("datum"):
751
+ cargs.append("-datum")
752
+ if params.get("min"):
753
+ cargs.append("-min")
754
+ if params.get("max"):
755
+ cargs.append("-max")
756
+ if params.get("minus"):
757
+ cargs.append("-minus")
758
+ if params.get("maxus"):
759
+ cargs.append("-maxus")
760
+ if params.get("labeltable"):
761
+ cargs.append("-labeltable")
762
+ if params.get("labeltable_as_atlas_points"):
763
+ cargs.append("-labeltable_as_atlas_points")
764
+ if params.get("atlas_points"):
765
+ cargs.append("-atlas_points")
766
+ if params.get("history"):
767
+ cargs.append("-history")
768
+ if params.get("slice_timing"):
769
+ cargs.append("-slice_timing")
770
+ if params.get("header_line"):
771
+ cargs.append("-header_line")
772
+ if params.get("hdr"):
773
+ cargs.append("-hdr")
774
+ if params.get("sb_delim") is not None:
775
+ cargs.extend([
776
+ "-sb_delim",
777
+ params.get("sb_delim")
778
+ ])
779
+ if params.get("NA_flag") is not None:
780
+ cargs.extend([
781
+ "-NA_flag",
782
+ params.get("NA_flag")
783
+ ])
784
+ if params.get("atr_delim") is not None:
785
+ cargs.extend([
786
+ "-atr_delim",
787
+ params.get("atr_delim")
788
+ ])
789
+ if params.get("aform_real"):
790
+ cargs.append("-aform_real")
791
+ if params.get("aform_real_oneline"):
792
+ cargs.append("-aform_real_oneline")
793
+ if params.get("aform_real_refit_ori"):
794
+ cargs.append("-aform_real_refit_ori")
795
+ if params.get("is_aform_real_orth"):
796
+ cargs.append("-is_aform_real_orth")
797
+ if params.get("aform_orth"):
798
+ cargs.append("-aform_orth")
799
+ if params.get("perm_to_orient") is not None:
800
+ cargs.extend([
801
+ "-perm_to_orient",
802
+ params.get("perm_to_orient")
803
+ ])
804
+ if params.get("same_grid"):
805
+ cargs.append("-same_grid")
806
+ if params.get("same_dim"):
807
+ cargs.append("-same_dim")
808
+ if params.get("same_delta"):
809
+ cargs.append("-same_delta")
810
+ if params.get("same_orient"):
811
+ cargs.append("-same_orient")
812
+ if params.get("same_center"):
813
+ cargs.append("-same_center")
814
+ if params.get("same_obl"):
815
+ cargs.append("-same_obl")
816
+ if params.get("same_all_grid"):
817
+ cargs.append("-same_all_grid")
818
+ if params.get("val_diff"):
819
+ cargs.append("-val_diff")
820
+ if params.get("sval_diff"):
821
+ cargs.append("-sval_diff")
822
+ if params.get("monog_pairs"):
823
+ cargs.append("-monog_pairs")
824
+ cargs.extend([execution.input_file(f) for f in params.get("dataset")])
825
+ return cargs
826
+
827
+
828
+ def v_3dinfo_outputs(
829
+ params: V3dinfoParameters,
830
+ execution: Execution,
831
+ ) -> V3dinfoOutputs:
832
+ """
833
+ Build outputs object containing output file paths and possibly stdout/stderr.
834
+
835
+ Args:
836
+ params: The parameters.
837
+ execution: The execution object for resolving input paths.
838
+ Returns:
839
+ Outputs object.
840
+ """
841
+ ret = V3dinfoOutputs(
842
+ root=execution.output_file("."),
843
+ info=[],
844
+ )
845
+ return ret
846
+
847
+
848
+ def v_3dinfo_execute(
849
+ params: V3dinfoParameters,
850
+ execution: Execution,
851
+ ) -> V3dinfoOutputs:
852
+ """
853
+ Prints out sort-of-useful information from a 3D dataset's header.
854
+
855
+ Author: AFNI Developers
856
+
857
+ URL: https://afni.nimh.nih.gov/
858
+
859
+ Args:
860
+ params: The parameters.
861
+ execution: The execution object.
862
+ Returns:
863
+ NamedTuple of outputs (described in `V3dinfoOutputs`).
864
+ """
865
+ params = execution.params(params)
866
+ cargs = v_3dinfo_cargs(params, execution)
867
+ ret = v_3dinfo_outputs(params, execution)
868
+ execution.run(cargs, handle_stdout=lambda s: ret.info.append(s))
869
+ return ret
870
+
871
+
872
+ def v_3dinfo(
873
+ dataset: list[InputPathType],
874
+ orient: bool = False,
875
+ lextent: bool = False,
876
+ rextent: bool = False,
877
+ aextent: bool = False,
878
+ pextent: bool = False,
879
+ iextent: bool = False,
880
+ sextent: bool = False,
881
+ all_names: bool = False,
882
+ verb: bool = False,
883
+ very_verbose: bool = False,
884
+ short: bool = False,
885
+ no_hist: bool = False,
886
+ h: bool = False,
887
+ help_: bool = False,
888
+ extreme_help: bool = False,
889
+ h_view: bool = False,
890
+ h_web: bool = False,
891
+ h_find: str | None = None,
892
+ h_raw: bool = False,
893
+ h_spx: bool = False,
894
+ h_aspx: bool = False,
895
+ all_opts: bool = False,
896
+ label2index: str | None = None,
897
+ niml_hdr: bool = False,
898
+ subbrick_info: bool = False,
899
+ exists: bool = False,
900
+ id_: bool = False,
901
+ is_atlas: bool = False,
902
+ is_atlas_or_labeltable: bool = False,
903
+ is_nifti: bool = False,
904
+ dset_extension: bool = False,
905
+ storage_mode: bool = False,
906
+ space: bool = False,
907
+ gen_space: bool = False,
908
+ av_space: bool = False,
909
+ nifti_code: bool = False,
910
+ is_oblique: bool = False,
911
+ handedness: bool = False,
912
+ obliquity: bool = False,
913
+ prefix: bool = False,
914
+ prefix_noext: bool = False,
915
+ ni: bool = False,
916
+ nj: bool = False,
917
+ nk: bool = False,
918
+ nijk: bool = False,
919
+ nv: bool = False,
920
+ nt_: bool = False,
921
+ n4: bool = False,
922
+ nvi: bool = False,
923
+ nti: bool = False,
924
+ ntimes: bool = False,
925
+ max_node: bool = False,
926
+ di: bool = False,
927
+ dj: bool = False,
928
+ dk: bool = False,
929
+ d3: bool = False,
930
+ adi: bool = False,
931
+ adj: bool = False,
932
+ adk: bool = False,
933
+ ad3: bool = False,
934
+ voxvol: bool = False,
935
+ oi: bool = False,
936
+ oj: bool = False,
937
+ ok: bool = False,
938
+ o3: bool = False,
939
+ dcx: bool = False,
940
+ dcy: bool = False,
941
+ dcz: bool = False,
942
+ dc3: bool = False,
943
+ tr: bool = False,
944
+ dmin: bool = False,
945
+ dmax: bool = False,
946
+ dminus: bool = False,
947
+ dmaxus: bool = False,
948
+ smode: bool = False,
949
+ header_name: bool = False,
950
+ brick_name: bool = False,
951
+ iname: bool = False,
952
+ extent: bool = False,
953
+ fac: bool = False,
954
+ label: bool = False,
955
+ datum: bool = False,
956
+ min_: bool = False,
957
+ max_: bool = False,
958
+ minus: bool = False,
959
+ maxus: bool = False,
960
+ labeltable: bool = False,
961
+ labeltable_as_atlas_points: bool = False,
962
+ atlas_points: bool = False,
963
+ history: bool = False,
964
+ slice_timing: bool = False,
965
+ header_line: bool = False,
966
+ hdr: bool = False,
967
+ sb_delim: str | None = None,
968
+ na_flag: str | None = None,
969
+ atr_delim: str | None = None,
970
+ aform_real: bool = False,
971
+ aform_real_oneline: bool = False,
972
+ aform_real_refit_ori: bool = False,
973
+ is_aform_real_orth: bool = False,
974
+ aform_orth: bool = False,
975
+ perm_to_orient: str | None = None,
976
+ same_grid: bool = False,
977
+ same_dim: bool = False,
978
+ same_delta: bool = False,
979
+ same_orient: bool = False,
980
+ same_center: bool = False,
981
+ same_obl: bool = False,
982
+ same_all_grid: bool = False,
983
+ val_diff: bool = False,
984
+ sval_diff: bool = False,
985
+ monog_pairs: bool = False,
986
+ runner: Runner | None = None,
987
+ ) -> V3dinfoOutputs:
988
+ """
989
+ Prints out sort-of-useful information from a 3D dataset's header.
990
+
991
+ Author: AFNI Developers
992
+
993
+ URL: https://afni.nimh.nih.gov/
994
+
995
+ Args:
996
+ dataset: Datasets to retrieve information from.
997
+ orient: Value of orientation string. For example, LPI means: i\
998
+ direction grows from Left(negative) to Right(positive). j direction\
999
+ grows from Posterior (neg.) to Anterior (pos.) k direction grows from\
1000
+ Inferior (neg.) to Superior (pos.).
1001
+ lextent: Extent along L.
1002
+ rextent: Extent along R.
1003
+ aextent: Extent along A.
1004
+ pextent: Extent along P.
1005
+ iextent: Extent along I.
1006
+ sextent: Extent along S.
1007
+ all_names: Value of various dset structures handling filenames.
1008
+ verb: Print out lots of information.
1009
+ very_verbose: Print out even more information including slice time\
1010
+ offsets.
1011
+ short: Print out less information (default).
1012
+ no_hist: Omit the HISTORY text.
1013
+ h: Mini help.
1014
+ help_: Display entire help output.
1015
+ extreme_help: Extreme help.
1016
+ h_view: Open help in text editor.
1017
+ h_web: Open help in web browser.
1018
+ h_find: Look for lines in help output that match WORD.
1019
+ h_raw: Display unedited help string.
1020
+ h_spx: Help string in sphinx format without autoformatting options.
1021
+ h_aspx: Help string in sphinx format with autoformatting options.
1022
+ all_opts: Try to identify all options for the program from the help\
1023
+ output.
1024
+ label2index: Output index corresponding to label.
1025
+ niml_hdr: Output entire NIML-formatted header.
1026
+ subbrick_info: Output only sub-brick part of information.
1027
+ exists: 1 if dset is loadable, 0 otherwise. This works on prefix also.
1028
+ id_: Idcodestring of dset.
1029
+ is_atlas: 1 if dset is an atlas.
1030
+ is_atlas_or_labeltable: 1 if dset has an atlas or labeltable.
1031
+ is_nifti: 1 if dset is NIFTI format, 0 otherwise.
1032
+ dset_extension: Show filename extension for valid dataset (e.g.\
1033
+ .nii.gz).
1034
+ storage_mode: Show internal storage mode of dataset (e.g. NIFTI).
1035
+ space: Dataset's space.
1036
+ gen_space: Dataset's generic space.
1037
+ av_space: AFNI format's view extension for the space.
1038
+ nifti_code: What AFNI would use for an output NIFTI (q)sform_code.
1039
+ is_oblique: 1 if dset is oblique.
1040
+ handedness: L if orientation is Left handed, R if it is right handed.
1041
+ obliquity: Angle from plumb direction. Angles of 0 (or close) are for\
1042
+ cardinal orientations.
1043
+ prefix: Return the prefix.
1044
+ prefix_noext: Return the prefix without extensions.
1045
+ ni: Return the number of voxels in i dimension.
1046
+ nj: Return the number of voxels in j dimension.
1047
+ nk: Return the number of voxels in k dimension.
1048
+ nijk: Return ni*nj*nk.
1049
+ nv: Return number of points in time or the number of sub-bricks.
1050
+ nt_: Same as -nv.
1051
+ n4: Same as -ni -nj -nk -nv.
1052
+ nvi: The maximum sub-brick index (= nv -1 ).
1053
+ nti: Same as -nvi.
1054
+ ntimes: Return number of sub-bricks points in time. This is an option\
1055
+ for debugging use, stay away from it.
1056
+ max_node: For a surface-based dset, return the maximum node index.
1057
+ di: Signed displacement per voxel along i direction, aka dx.
1058
+ dj: Signed displacement per voxel along j direction, aka dy.
1059
+ dk: Signed displacement per voxel along k direction, aka dz.
1060
+ d3: Same as -di -dj -dk.
1061
+ adi: Voxel size along i direction (abs(di)).
1062
+ adj: Voxel size along j direction (abs(dj)).
1063
+ adk: Voxel size along k direction (abs(dk)).
1064
+ ad3: Same as -adi -adj -adk.
1065
+ voxvol: Voxel volume in cubic millimeters.
1066
+ oi: Volume origin along the i direction.
1067
+ oj: Volume origin along the j direction.
1068
+ ok: Volume origin along the k direction.
1069
+ o3: Same as -oi -oj -ok.
1070
+ dcx: Volumetric center in x direction (DICOM coordinates).
1071
+ dcy: Volumetric center in y direction (DICOM coordinates).
1072
+ dcz: Volumetric center in z direction (DICOM coordinates).
1073
+ dc3: Same as -dcx -dcy -dcz.
1074
+ tr: The TR value in seconds.
1075
+ dmin: The dataset's minimum value, scaled by fac.
1076
+ dmax: The dataset's maximum value, scaled by fac.
1077
+ dminus: The dataset's minimum value, unscaled.
1078
+ dmaxus: The dataset's maximum value, unscaled.
1079
+ smode: Dset storage mode string.
1080
+ header_name: Value of dset structure (sub)field 'header_name'.
1081
+ brick_name: Value of dset structure (sub)field 'brick_name'.
1082
+ iname: Name of dset as input on the command line.
1083
+ extent: The spatial extent of the dataset along R, L, A, P, I and S.
1084
+ fac: Return the float scaling factor.
1085
+ label: The label of each sub-brick.
1086
+ datum: The data storage type.
1087
+ min_: The minimum value, scaled by fac.
1088
+ max_: The maximum value, scaled by fac.
1089
+ minus: The minimum value, unscaled.
1090
+ maxus: The maximum value, unscaled.
1091
+ labeltable: Show label table, if any.
1092
+ labeltable_as_atlas_points: Show label table in atlas point format.
1093
+ atlas_points: Show atlas points list, if any.
1094
+ history: History note.
1095
+ slice_timing: Show slice timing.
1096
+ header_line: Output as the first line the names of attributes in each\
1097
+ field (column).
1098
+ hdr: Same as -header_line.
1099
+ sb_delim: Delimiter string between sub-brick values. Default SB_DELIM\
1100
+ is '|'.
1101
+ na_flag: String to use when a field is not found or not applicable.\
1102
+ Default is 'NA'.
1103
+ atr_delim: Delimiter string between attributes. Default ATR_DELIM is\
1104
+ the tab character.
1105
+ aform_real: Display full 3x4 'aform_real' matrix (AFNI's RAI equivalent\
1106
+ of the sform matrix in NIFTI, may contain obliquity info), with comment\
1107
+ line first.
1108
+ aform_real_oneline: Display full 'aform_real' matrix (see\
1109
+ '-aform_real') as 1 row of 12 numbers. No additional comment.
1110
+ aform_real_refit_ori: Display full 3x4 'aform_real' matrix (see\
1111
+ '-aform_real') *if* the dset were reoriented (via 3drefit) to new\
1112
+ orient XXX. Includes comment line first.
1113
+ is_aform_real_orth: If true, aform_real == aform_orth, which should be\
1114
+ a very common occurrence.
1115
+ aform_orth: Display full 3x4 'aform_orth' matrix (AFNI's RAI matrix\
1116
+ equivalent of the NIFTI quaternion, which may contain obliquity info),\
1117
+ with comment line first. This matrix is the orthogonalized form of\
1118
+ aform_real, and very often AFNI-produced dsets, we will have:\
1119
+ aform_orth == aform_real.
1120
+ perm_to_orient: Display 3x3 permutation matrix to go from the dset's\
1121
+ current orientation to the YYY orient.
1122
+ same_grid: Output 1 if the grid is identical between two dsets, 0\
1123
+ otherwise. For -same_grid to be 1, all of -same_dim, -same_delta,\
1124
+ -same_orient, -same_center, and -same_obl must return 1.
1125
+ same_dim: 1 if dimensions (nx, ny, nz) are the same between dset pairs.
1126
+ same_delta: 1 if voxel sizes are the same between dset pairs.
1127
+ same_orient: 1 if orientation is the same between dset pairs.
1128
+ same_center: 1 if geometric center is the same between dset pairs.
1129
+ same_obl: 1 if obliquity is the same between dset pairs.
1130
+ same_all_grid: Equivalent to listing all of -same_dim, -same_delta,\
1131
+ -same_orient, -same_center, and -same_obl on the command line.
1132
+ val_diff: Output the sum of absolute differences of all voxels in the\
1133
+ dataset pair. A -1.0 value indicates a grid mismatch between volume\
1134
+ pairs.
1135
+ sval_diff: Same as -val_diff, but the sum is divided (scaled) by the\
1136
+ total number of voxels that are not zero in at least one of the two\
1137
+ datasets.
1138
+ monog_pairs: Instead of pairing each dset with the first, pair each\
1139
+ couple separately. This requires you to have an even number of dsets on\
1140
+ the command line.
1141
+ runner: Command runner.
1142
+ Returns:
1143
+ NamedTuple of outputs (described in `V3dinfoOutputs`).
1144
+ """
1145
+ runner = runner or get_global_runner()
1146
+ execution = runner.start_execution(V_3DINFO_METADATA)
1147
+ params = v_3dinfo_params(
1148
+ orient=orient,
1149
+ lextent=lextent,
1150
+ rextent=rextent,
1151
+ aextent=aextent,
1152
+ pextent=pextent,
1153
+ iextent=iextent,
1154
+ sextent=sextent,
1155
+ all_names=all_names,
1156
+ verb=verb,
1157
+ very_verbose=very_verbose,
1158
+ short=short,
1159
+ no_hist=no_hist,
1160
+ h=h,
1161
+ help_=help_,
1162
+ extreme_help=extreme_help,
1163
+ h_view=h_view,
1164
+ h_web=h_web,
1165
+ h_find=h_find,
1166
+ h_raw=h_raw,
1167
+ h_spx=h_spx,
1168
+ h_aspx=h_aspx,
1169
+ all_opts=all_opts,
1170
+ label2index=label2index,
1171
+ niml_hdr=niml_hdr,
1172
+ subbrick_info=subbrick_info,
1173
+ exists=exists,
1174
+ id_=id_,
1175
+ is_atlas=is_atlas,
1176
+ is_atlas_or_labeltable=is_atlas_or_labeltable,
1177
+ is_nifti=is_nifti,
1178
+ dset_extension=dset_extension,
1179
+ storage_mode=storage_mode,
1180
+ space=space,
1181
+ gen_space=gen_space,
1182
+ av_space=av_space,
1183
+ nifti_code=nifti_code,
1184
+ is_oblique=is_oblique,
1185
+ handedness=handedness,
1186
+ obliquity=obliquity,
1187
+ prefix=prefix,
1188
+ prefix_noext=prefix_noext,
1189
+ ni=ni,
1190
+ nj=nj,
1191
+ nk=nk,
1192
+ nijk=nijk,
1193
+ nv=nv,
1194
+ nt_=nt_,
1195
+ n4=n4,
1196
+ nvi=nvi,
1197
+ nti=nti,
1198
+ ntimes=ntimes,
1199
+ max_node=max_node,
1200
+ di=di,
1201
+ dj=dj,
1202
+ dk=dk,
1203
+ d3=d3,
1204
+ adi=adi,
1205
+ adj=adj,
1206
+ adk=adk,
1207
+ ad3=ad3,
1208
+ voxvol=voxvol,
1209
+ oi=oi,
1210
+ oj=oj,
1211
+ ok=ok,
1212
+ o3=o3,
1213
+ dcx=dcx,
1214
+ dcy=dcy,
1215
+ dcz=dcz,
1216
+ dc3=dc3,
1217
+ tr=tr,
1218
+ dmin=dmin,
1219
+ dmax=dmax,
1220
+ dminus=dminus,
1221
+ dmaxus=dmaxus,
1222
+ smode=smode,
1223
+ header_name=header_name,
1224
+ brick_name=brick_name,
1225
+ iname=iname,
1226
+ extent=extent,
1227
+ fac=fac,
1228
+ label=label,
1229
+ datum=datum,
1230
+ min_=min_,
1231
+ max_=max_,
1232
+ minus=minus,
1233
+ maxus=maxus,
1234
+ labeltable=labeltable,
1235
+ labeltable_as_atlas_points=labeltable_as_atlas_points,
1236
+ atlas_points=atlas_points,
1237
+ history=history,
1238
+ slice_timing=slice_timing,
1239
+ header_line=header_line,
1240
+ hdr=hdr,
1241
+ sb_delim=sb_delim,
1242
+ na_flag=na_flag,
1243
+ atr_delim=atr_delim,
1244
+ aform_real=aform_real,
1245
+ aform_real_oneline=aform_real_oneline,
1246
+ aform_real_refit_ori=aform_real_refit_ori,
1247
+ is_aform_real_orth=is_aform_real_orth,
1248
+ aform_orth=aform_orth,
1249
+ perm_to_orient=perm_to_orient,
1250
+ same_grid=same_grid,
1251
+ same_dim=same_dim,
1252
+ same_delta=same_delta,
1253
+ same_orient=same_orient,
1254
+ same_center=same_center,
1255
+ same_obl=same_obl,
1256
+ same_all_grid=same_all_grid,
1257
+ val_diff=val_diff,
1258
+ sval_diff=sval_diff,
1259
+ monog_pairs=monog_pairs,
1260
+ dataset=dataset,
1261
+ )
1262
+ return v_3dinfo_execute(params, execution)
1263
+
1264
+
1265
+ __all__ = [
1266
+ "V3dinfoOutputs",
1267
+ "V3dinfoParameters",
1268
+ "V_3DINFO_METADATA",
1269
+ "v_3dinfo",
1270
+ "v_3dinfo_params",
1271
+ ]