niwrap-afni 0.5.1__py3-none-any.whl → 0.5.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of niwrap-afni might be problematic. Click here for more details.

Files changed (111) hide show
  1. niwrap_afni/afni/abids_json_tool_py.py +104 -1
  2. niwrap_afni/afni/abids_tool.py +43 -1
  3. niwrap_afni/afni/adjunct_make_script_and_rst_py.py +2 -2
  4. niwrap_afni/afni/afni_batch_r.py +1 -2
  5. niwrap_afni/afni/balloon.py +25 -1
  6. niwrap_afni/afni/brain_skin.py +16 -1
  7. niwrap_afni/afni/build_afni_py.py +28 -1
  8. niwrap_afni/afni/cat_matvec.py +23 -1
  9. niwrap_afni/afni/convert_surface.py +38 -1
  10. niwrap_afni/afni/dicom_hinfo.py +9 -2
  11. niwrap_afni/afni/dsetstat2p.py +19 -1
  12. niwrap_afni/afni/fat_proc_align_anat_pair.py +10 -1
  13. niwrap_afni/afni/fat_proc_convert_dcm_anat.py +16 -1
  14. niwrap_afni/afni/fat_roi_row.py +1 -4
  15. niwrap_afni/afni/fsread_annot.py +2 -2
  16. niwrap_afni/afni/imrotate.py +10 -1
  17. niwrap_afni/afni/myget.py +16 -3
  18. niwrap_afni/afni/nifti_tool.py +3 -2
  19. niwrap_afni/afni/p2dsetstat.py +19 -1
  20. niwrap_afni/afni/plugout_drive.py +93 -1
  21. niwrap_afni/afni/prompt_popup.py +46 -1
  22. niwrap_afni/afni/prompt_user.py +16 -1
  23. niwrap_afni/afni/rbox.py +170 -9
  24. niwrap_afni/afni/samp_bias.py +16 -1
  25. niwrap_afni/afni/sfim.py +9 -2
  26. niwrap_afni/afni/stimband.py +22 -3
  27. niwrap_afni/afni/surf_dist.py +47 -1
  28. niwrap_afni/afni/surf_fwhm.py +1 -5
  29. niwrap_afni/afni/surf_info.py +99 -2
  30. niwrap_afni/afni/surface_metrics.py +179 -172
  31. niwrap_afni/afni/tedana_wrapper_py.py +19 -1
  32. niwrap_afni/afni/v_1d_bport.py +12 -1
  33. niwrap_afni/afni/v_1d_correlate.py +39 -1
  34. niwrap_afni/afni/v_1d_marry.py +1 -2
  35. niwrap_afni/afni/v_1d_rplot.py +233 -4
  36. niwrap_afni/afni/v_1d_sem.py +157 -2
  37. niwrap_afni/afni/v_1d_tsort.py +10 -1
  38. niwrap_afni/afni/v_1ddot.py +5 -4
  39. niwrap_afni/afni/v_1deval.py +16 -1
  40. niwrap_afni/afni/v_1dgen_arma11.py +16 -1
  41. niwrap_afni/afni/v_3_droimaker.py +16 -1
  42. niwrap_afni/afni/v_3d_afnito3_d.py +34 -4
  43. niwrap_afni/afni/v_3d_afnito_niml.py +34 -2
  44. niwrap_afni/afni/v_3d_amp_to_rsfc.py +10 -9
  45. niwrap_afni/afni/v_3d_anova3.py +323 -20
  46. niwrap_afni/afni/v_3d_clip_level.py +38 -2
  47. niwrap_afni/afni/v_3d_clust_sim.py +275 -22
  48. niwrap_afni/afni/v_3d_cm.py +103 -2
  49. niwrap_afni/afni/v_3d_dtto_dwi.py +58 -4
  50. niwrap_afni/afni/v_3d_dwito_dt.py +299 -2
  51. niwrap_afni/afni/v_3d_ecm.py +24 -2
  52. niwrap_afni/afni/v_3d_fdr.py +14 -1
  53. niwrap_afni/afni/v_3d_gen_feature_dist.py +53 -1
  54. niwrap_afni/afni/v_3d_hist.py +14 -1
  55. niwrap_afni/afni/v_3d_icc.py +137 -2
  56. niwrap_afni/afni/v_3d_lfcd.py +24 -5
  57. niwrap_afni/afni/v_3d_lme.py +1 -3
  58. niwrap_afni/afni/v_3d_local_histog.py +32 -1
  59. niwrap_afni/afni/v_3d_lrflip.py +46 -1
  60. niwrap_afni/afni/v_3d_lss.py +107 -4
  61. niwrap_afni/afni/v_3d_mask_to_ascii.py +12 -4
  62. niwrap_afni/afni/v_3d_mema.py +301 -3
  63. niwrap_afni/afni/v_3d_mepfm.py +1 -2
  64. niwrap_afni/afni/v_3d_nlfim.py +487 -30
  65. niwrap_afni/afni/v_3d_nwarp_xyz.py +27 -14
  66. niwrap_afni/afni/v_3d_overlap.py +20 -6
  67. niwrap_afni/afni/v_3d_par2_afni.py +32 -1
  68. niwrap_afni/afni/v_3d_pfm.py +200 -2
  69. niwrap_afni/afni/v_3d_remlfit.py +41 -1
  70. niwrap_afni/afni/v_3d_roistats.py +1 -2
  71. niwrap_afni/afni/v_3d_rsfc.py +240 -6
  72. niwrap_afni/afni/v_3d_stat_clust.py +19 -1
  73. niwrap_afni/afni/v_3d_tcat.py +24 -5
  74. niwrap_afni/afni/v_3d_threeto_rgb.py +1 -2
  75. niwrap_afni/afni/v_3d_toy_prog.py +111 -1
  76. niwrap_afni/afni/v_3d_tsgen.py +18 -1
  77. niwrap_afni/afni/v_3d_tsort.py +10 -1
  78. niwrap_afni/afni/v_3d_tstat.py +25 -15
  79. niwrap_afni/afni/v_3d_undump.py +10 -1
  80. niwrap_afni/afni/v_3d_warp.py +236 -2
  81. niwrap_afni/afni/v_3d_wilcoxon.py +9 -7
  82. niwrap_afni/afni/v_3dbucket.py +14 -1
  83. niwrap_afni/afni/v_3dcalc.py +1 -1
  84. niwrap_afni/afni/v_3dcopy.py +31 -3
  85. niwrap_afni/afni/v_3dmask_svd.py +99 -2
  86. niwrap_afni/afni/v__4_daverage.py +11 -2
  87. niwrap_afni/afni/v__afni_env.py +19 -1
  88. niwrap_afni/afni/v__afni_refacer_run.py +36 -1
  89. niwrap_afni/afni/v__build_afni_xlib.py +21 -1
  90. niwrap_afni/afni/v__chauffeur_afni.py +184 -2
  91. niwrap_afni/afni/v__command_globb.py +13 -7
  92. niwrap_afni/afni/v__compute_oc_weights.py +16 -1
  93. niwrap_afni/afni/v__deblank_file_names.py +13 -2
  94. niwrap_afni/afni/v__dice_metric.py +18 -14
  95. niwrap_afni/afni/v__djunct_edgy_align_check.py +82 -10
  96. niwrap_afni/afni/v__djunct_montage_coordinator.py +10 -1
  97. niwrap_afni/afni/v__get_afni_res.py +3 -2
  98. niwrap_afni/afni/v__grad_flip_test.py +38 -42
  99. niwrap_afni/afni/v__grayplot.py +34 -1
  100. niwrap_afni/afni/v__help_afni.py +63 -2
  101. niwrap_afni/afni/v__make_label_table.py +14 -1
  102. niwrap_afni/afni/v__no_ext.py +9 -2
  103. niwrap_afni/afni/v__reorder.py +10 -1
  104. niwrap_afni/afni/v__skull_strip_touch_up.py +10 -1
  105. niwrap_afni/afni/v__suma_make_spec_caret.py +62 -2
  106. niwrap_afni/afni/v__suma_make_spec_fs.py +180 -2
  107. niwrap_afni/afni/v__to_mni_qwarpar.py +21 -1
  108. niwrap_afni/afni/v__to_rai.py +23 -7
  109. {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.2.dist-info}/METADATA +1 -1
  110. {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.2.dist-info}/RECORD +111 -111
  111. {niwrap_afni-0.5.1.dist-info → niwrap_afni-0.5.2.dist-info}/WHEEL +0 -0
@@ -6,7 +6,7 @@ import pathlib
6
6
  from styxdefs import *
7
7
 
8
8
  V_3D_NLFIM_METADATA = Metadata(
9
- id="b2553c2bf57346747079630757e1d16620ea8119.boutiques",
9
+ id="c69cac4ff06ad3ead6a60599ed0432b48e04d528.boutiques",
10
10
  name="3dNLfim",
11
11
  package="afni",
12
12
  container_image_tag="afni/afni_make_build:AFNI_24.2.06",
@@ -18,6 +18,40 @@ V3dNlfimParameters = typing.TypedDict('V3dNlfimParameters', {
18
18
  "input_file": InputPathType,
19
19
  "signal_model": str,
20
20
  "noise_model": str,
21
+ "mask": typing.NotRequired[InputPathType | None],
22
+ "ignore": typing.NotRequired[int | None],
23
+ "intr": typing.NotRequired[int | None],
24
+ "tr": typing.NotRequired[int | None],
25
+ "time_file": typing.NotRequired[InputPathType | None],
26
+ "sconstr": typing.NotRequired[str | None],
27
+ "nconstr": typing.NotRequired[str | None],
28
+ "nabs": bool,
29
+ "nrand": typing.NotRequired[int | None],
30
+ "nbest": typing.NotRequired[int | None],
31
+ "rmsmin": typing.NotRequired[float | None],
32
+ "fdisp": typing.NotRequired[float | None],
33
+ "progress": typing.NotRequired[int | None],
34
+ "voxel_count": bool,
35
+ "simplex": bool,
36
+ "powell": bool,
37
+ "both": bool,
38
+ "freg": typing.NotRequired[str | None],
39
+ "frsqr": typing.NotRequired[str | None],
40
+ "fsmax": typing.NotRequired[str | None],
41
+ "ftmax": typing.NotRequired[str | None],
42
+ "fpsmax": typing.NotRequired[str | None],
43
+ "farea": typing.NotRequired[str | None],
44
+ "fparea": typing.NotRequired[str | None],
45
+ "fscoef": typing.NotRequired[str | None],
46
+ "fncoef": typing.NotRequired[str | None],
47
+ "tscoef": typing.NotRequired[str | None],
48
+ "tncoef": typing.NotRequired[str | None],
49
+ "bucket": typing.NotRequired[str | None],
50
+ "brick": typing.NotRequired[str | None],
51
+ "nofdr": bool,
52
+ "sfit": typing.NotRequired[str | None],
53
+ "snfit": typing.NotRequired[str | None],
54
+ "jobs": typing.NotRequired[int | None],
21
55
  })
22
56
 
23
57
 
@@ -59,33 +93,33 @@ class V3dNlfimOutputs(typing.NamedTuple):
59
93
  """
60
94
  root: OutputPathType
61
95
  """Output root folder. This is the root folder for all outputs."""
62
- freg_outfile: OutputPathType
96
+ freg_outfile: OutputPathType | None
63
97
  """F-test for significance of the regression"""
64
- frsqr_outfile: OutputPathType
98
+ frsqr_outfile: OutputPathType | None
65
99
  """R^2 calculation for regression"""
66
- fsmax_outfile: OutputPathType
100
+ fsmax_outfile: OutputPathType | None
67
101
  """Signed maximum signal estimate"""
68
- ftmax_outfile: OutputPathType
102
+ ftmax_outfile: OutputPathType | None
69
103
  """Time of signed maximum estimate"""
70
- fpsmax_outfile: OutputPathType
104
+ fpsmax_outfile: OutputPathType | None
71
105
  """Maximum percentage change estimate"""
72
- farea_outfile: OutputPathType
106
+ farea_outfile: OutputPathType | None
73
107
  """Area between signal and baseline"""
74
- fparea_outfile: OutputPathType
108
+ fparea_outfile: OutputPathType | None
75
109
  """Percentage area of signal estimate"""
76
- fscoef_outfile: OutputPathType
110
+ fscoef_outfile: OutputPathType | None
77
111
  """Signal parameter estimate"""
78
- fncoef_outfile: OutputPathType
112
+ fncoef_outfile: OutputPathType | None
79
113
  """Noise parameter estimate"""
80
- tscoef_outfile: OutputPathType
114
+ tscoef_outfile: OutputPathType | None
81
115
  """T-test for significance of signal parameter"""
82
- tncoef_outfile: OutputPathType
116
+ tncoef_outfile: OutputPathType | None
83
117
  """T-test for significance of noise parameter"""
84
- bucket_outfile: OutputPathType
118
+ bucket_outfile: OutputPathType | None
85
119
  """AFNI 'bucket' dataset"""
86
- sfit_outfile: OutputPathType
120
+ sfit_outfile: OutputPathType | None
87
121
  """Output 3d+time signal model fit"""
88
- snfit_outfile: OutputPathType
122
+ snfit_outfile: OutputPathType | None
89
123
  """Output 3d+time signal+noise fit"""
90
124
 
91
125
 
@@ -93,6 +127,40 @@ def v_3d_nlfim_params(
93
127
  input_file: InputPathType,
94
128
  signal_model: str,
95
129
  noise_model: str,
130
+ mask: InputPathType | None = None,
131
+ ignore: int | None = None,
132
+ intr: int | None = None,
133
+ tr: int | None = None,
134
+ time_file: InputPathType | None = None,
135
+ sconstr: str | None = None,
136
+ nconstr: str | None = None,
137
+ nabs: bool = False,
138
+ nrand: int | None = None,
139
+ nbest: int | None = None,
140
+ rmsmin: float | None = None,
141
+ fdisp: float | None = None,
142
+ progress: int | None = None,
143
+ voxel_count: bool = False,
144
+ simplex: bool = False,
145
+ powell: bool = False,
146
+ both: bool = False,
147
+ freg: str | None = None,
148
+ frsqr: str | None = None,
149
+ fsmax: str | None = None,
150
+ ftmax: str | None = None,
151
+ fpsmax: str | None = None,
152
+ farea: str | None = None,
153
+ fparea: str | None = None,
154
+ fscoef: str | None = None,
155
+ fncoef: str | None = None,
156
+ tscoef: str | None = None,
157
+ tncoef: str | None = None,
158
+ bucket: str | None = None,
159
+ brick: str | None = None,
160
+ nofdr: bool = False,
161
+ sfit: str | None = None,
162
+ snfit: str | None = None,
163
+ jobs: int | None = None,
96
164
  ) -> V3dNlfimParameters:
97
165
  """
98
166
  Build parameters.
@@ -101,6 +169,60 @@ def v_3d_nlfim_params(
101
169
  input_file: Filename of 3d+time data file for input.
102
170
  signal_model: Name of the nonlinear signal model.
103
171
  noise_model: Name of the linear noise model.
172
+ mask: Use the 0 sub-brick of dataset 'mset' as a mask to indicate which\
173
+ voxels to analyze.
174
+ ignore: Skip this number of initial images in the time series for\
175
+ regression analysis; default = 0.
176
+ intr: Set the TR of the input 3d+time dataset.
177
+ tr: Directly set the TR of the time series model.
178
+ time_file: ASCII file containing each time point in the time series.
179
+ sconstr: Constraints for signal parameters; c <= gs[k] <= d.
180
+ nconstr: Constraints for noise parameters; c+b[k] <= gn[k] <= d+b[k].
181
+ nabs: Use absolute constraints for noise parameters; c <= gn[k] <= d.
182
+ nrand: Number of random test points; default=19999.
183
+ nbest: Use b best test points to start; default=9.
184
+ rmsmin: Minimum RMS error to reject reduced model.
185
+ fdisp: Display results for those voxels whose F-statistic is greater\
186
+ than fval; default=999.0.
187
+ progress: Display results every ival number of voxels.
188
+ voxel_count: Display the current voxel index.
189
+ simplex: Use Nelder-Mead simplex method for least-square minimization\
190
+ (default).
191
+ powell: Use Powell's NEWUOA method instead of Nelder-Mead simplex\
192
+ method.
193
+ both: Use both Powell's and Nelder-Mead method.
194
+ freg: Perform F-test for significance of the regression; output 'fift'\
195
+ is written to prefix filename fname.
196
+ frsqr: Calculate R^2 (coef. of multiple determination); store along\
197
+ with F-test for regression; output 'fift' is written to prefix filename\
198
+ fname.
199
+ fsmax: Estimate signed maximum of signal; store along with F-test for\
200
+ regression; output 'fift' is written to prefix filename fname.
201
+ ftmax: Estimate time of signed maximum; store along with F-test for\
202
+ regression; output 'fift' is written to prefix filename fname.
203
+ fpsmax: Calculate (signed) maximum percentage change of signal from\
204
+ baseline; output 'fift' is written to prefix filename fname.
205
+ farea: Calculate area between signal and baseline; store with F-test\
206
+ for regression; output 'fift' is written to prefix filename fname.
207
+ fparea: Percentage area of signal relative to baseline; store with\
208
+ F-test for regression; output 'fift' is written to prefix filename\
209
+ fname.
210
+ fscoef: Estimate kth signal parameter gs[k]; store along with F-test\
211
+ for regression; output 'fift' is written to prefix filename fname.
212
+ fncoef: Estimate kth noise parameter gn[k]; store along with F-test for\
213
+ regression; output 'fift' is written to prefix filename fname.
214
+ tscoef: Perform t-test for significance of kth signal parameter gs[k];\
215
+ output 'fitt' is written to prefix filename fname.
216
+ tncoef: Perform t-test for significance of kth noise parameter gn[k];\
217
+ output 'fitt' is written to prefix filename fname.
218
+ bucket: Create one AFNI 'bucket' dataset containing n sub-bricks; n=0\
219
+ creates default output; output 'bucket' is written to prefixname.
220
+ brick: Specify sub-brick contents for 'bucket' dataset.
221
+ nofdr: Don't write the FDR (q vs. threshold) curves into the output\
222
+ dataset.
223
+ sfit: Prefix for output 3d+time signal model fit.
224
+ snfit: Prefix for output 3d+time signal+noise fit.
225
+ jobs: Run the program with 'J' jobs (sub-processes). 1 to 32.
104
226
  Returns:
105
227
  Parameter dictionary
106
228
  """
@@ -109,7 +231,69 @@ def v_3d_nlfim_params(
109
231
  "input_file": input_file,
110
232
  "signal_model": signal_model,
111
233
  "noise_model": noise_model,
234
+ "nabs": nabs,
235
+ "voxel_count": voxel_count,
236
+ "simplex": simplex,
237
+ "powell": powell,
238
+ "both": both,
239
+ "nofdr": nofdr,
112
240
  }
241
+ if mask is not None:
242
+ params["mask"] = mask
243
+ if ignore is not None:
244
+ params["ignore"] = ignore
245
+ if intr is not None:
246
+ params["intr"] = intr
247
+ if tr is not None:
248
+ params["tr"] = tr
249
+ if time_file is not None:
250
+ params["time_file"] = time_file
251
+ if sconstr is not None:
252
+ params["sconstr"] = sconstr
253
+ if nconstr is not None:
254
+ params["nconstr"] = nconstr
255
+ if nrand is not None:
256
+ params["nrand"] = nrand
257
+ if nbest is not None:
258
+ params["nbest"] = nbest
259
+ if rmsmin is not None:
260
+ params["rmsmin"] = rmsmin
261
+ if fdisp is not None:
262
+ params["fdisp"] = fdisp
263
+ if progress is not None:
264
+ params["progress"] = progress
265
+ if freg is not None:
266
+ params["freg"] = freg
267
+ if frsqr is not None:
268
+ params["frsqr"] = frsqr
269
+ if fsmax is not None:
270
+ params["fsmax"] = fsmax
271
+ if ftmax is not None:
272
+ params["ftmax"] = ftmax
273
+ if fpsmax is not None:
274
+ params["fpsmax"] = fpsmax
275
+ if farea is not None:
276
+ params["farea"] = farea
277
+ if fparea is not None:
278
+ params["fparea"] = fparea
279
+ if fscoef is not None:
280
+ params["fscoef"] = fscoef
281
+ if fncoef is not None:
282
+ params["fncoef"] = fncoef
283
+ if tscoef is not None:
284
+ params["tscoef"] = tscoef
285
+ if tncoef is not None:
286
+ params["tncoef"] = tncoef
287
+ if bucket is not None:
288
+ params["bucket"] = bucket
289
+ if brick is not None:
290
+ params["brick"] = brick
291
+ if sfit is not None:
292
+ params["sfit"] = sfit
293
+ if snfit is not None:
294
+ params["snfit"] = snfit
295
+ if jobs is not None:
296
+ params["jobs"] = jobs
113
297
  return params
114
298
 
115
299
 
@@ -140,7 +324,158 @@ def v_3d_nlfim_cargs(
140
324
  "-noise",
141
325
  params.get("noise_model")
142
326
  ])
143
- cargs.append("[ADDITIONAL_OPTIONS]")
327
+ if params.get("mask") is not None:
328
+ cargs.extend([
329
+ "-mask",
330
+ execution.input_file(params.get("mask"))
331
+ ])
332
+ if params.get("ignore") is not None:
333
+ cargs.extend([
334
+ "-ignore",
335
+ str(params.get("ignore"))
336
+ ])
337
+ if params.get("intr") is not None:
338
+ cargs.extend([
339
+ "-inTR",
340
+ str(params.get("intr"))
341
+ ])
342
+ if params.get("tr") is not None:
343
+ cargs.extend([
344
+ "-TR",
345
+ str(params.get("tr"))
346
+ ])
347
+ if params.get("time_file") is not None:
348
+ cargs.extend([
349
+ "-time",
350
+ execution.input_file(params.get("time_file"))
351
+ ])
352
+ if params.get("sconstr") is not None:
353
+ cargs.extend([
354
+ "-sconstr",
355
+ params.get("sconstr")
356
+ ])
357
+ if params.get("nconstr") is not None:
358
+ cargs.extend([
359
+ "-nconstr",
360
+ params.get("nconstr")
361
+ ])
362
+ if params.get("nabs"):
363
+ cargs.append("-nabs")
364
+ if params.get("nrand") is not None:
365
+ cargs.extend([
366
+ "-nrand",
367
+ str(params.get("nrand"))
368
+ ])
369
+ if params.get("nbest") is not None:
370
+ cargs.extend([
371
+ "-nbest",
372
+ str(params.get("nbest"))
373
+ ])
374
+ if params.get("rmsmin") is not None:
375
+ cargs.extend([
376
+ "-rmsmin",
377
+ str(params.get("rmsmin"))
378
+ ])
379
+ if params.get("fdisp") is not None:
380
+ cargs.extend([
381
+ "-fdisp",
382
+ str(params.get("fdisp"))
383
+ ])
384
+ if params.get("progress") is not None:
385
+ cargs.extend([
386
+ "-progress",
387
+ str(params.get("progress"))
388
+ ])
389
+ if params.get("voxel_count"):
390
+ cargs.append("-voxel_count")
391
+ if params.get("simplex"):
392
+ cargs.append("-SIMPLEX")
393
+ if params.get("powell"):
394
+ cargs.append("-POWELL")
395
+ if params.get("both"):
396
+ cargs.append("-BOTH")
397
+ if params.get("freg") is not None:
398
+ cargs.extend([
399
+ "-freg",
400
+ params.get("freg")
401
+ ])
402
+ if params.get("frsqr") is not None:
403
+ cargs.extend([
404
+ "-frsqr",
405
+ params.get("frsqr")
406
+ ])
407
+ if params.get("fsmax") is not None:
408
+ cargs.extend([
409
+ "-fsmax",
410
+ params.get("fsmax")
411
+ ])
412
+ if params.get("ftmax") is not None:
413
+ cargs.extend([
414
+ "-ftmax",
415
+ params.get("ftmax")
416
+ ])
417
+ if params.get("fpsmax") is not None:
418
+ cargs.extend([
419
+ "-fpsmax",
420
+ params.get("fpsmax")
421
+ ])
422
+ if params.get("farea") is not None:
423
+ cargs.extend([
424
+ "-farea",
425
+ params.get("farea")
426
+ ])
427
+ if params.get("fparea") is not None:
428
+ cargs.extend([
429
+ "-fparea",
430
+ params.get("fparea")
431
+ ])
432
+ if params.get("fscoef") is not None:
433
+ cargs.extend([
434
+ "-fscoef",
435
+ params.get("fscoef")
436
+ ])
437
+ if params.get("fncoef") is not None:
438
+ cargs.extend([
439
+ "-fncoef",
440
+ params.get("fncoef")
441
+ ])
442
+ if params.get("tscoef") is not None:
443
+ cargs.extend([
444
+ "-tscoef",
445
+ params.get("tscoef")
446
+ ])
447
+ if params.get("tncoef") is not None:
448
+ cargs.extend([
449
+ "-tncoef",
450
+ params.get("tncoef")
451
+ ])
452
+ if params.get("bucket") is not None:
453
+ cargs.extend([
454
+ "-bucket",
455
+ params.get("bucket")
456
+ ])
457
+ if params.get("brick") is not None:
458
+ cargs.extend([
459
+ "-brick",
460
+ params.get("brick")
461
+ ])
462
+ if params.get("nofdr"):
463
+ cargs.append("-noFDR")
464
+ if params.get("sfit") is not None:
465
+ cargs.extend([
466
+ "-sfit",
467
+ params.get("sfit")
468
+ ])
469
+ if params.get("snfit") is not None:
470
+ cargs.extend([
471
+ "-snfit",
472
+ params.get("snfit")
473
+ ])
474
+ if params.get("jobs") is not None:
475
+ cargs.extend([
476
+ "-jobs",
477
+ str(params.get("jobs"))
478
+ ])
144
479
  return cargs
145
480
 
146
481
 
@@ -159,20 +494,20 @@ def v_3d_nlfim_outputs(
159
494
  """
160
495
  ret = V3dNlfimOutputs(
161
496
  root=execution.output_file("."),
162
- freg_outfile=execution.output_file("[FREG].fift"),
163
- frsqr_outfile=execution.output_file("[FRSQR].fift"),
164
- fsmax_outfile=execution.output_file("[FSMAX].fift"),
165
- ftmax_outfile=execution.output_file("[FTMAX].fift"),
166
- fpsmax_outfile=execution.output_file("[FPSMAX].fift"),
167
- farea_outfile=execution.output_file("[FAREA].fift"),
168
- fparea_outfile=execution.output_file("[FPAREA].fift"),
169
- fscoef_outfile=execution.output_file("[FSCOEF].fift"),
170
- fncoef_outfile=execution.output_file("[FNCOEF].fift"),
171
- tscoef_outfile=execution.output_file("[TSCOEF].fitt"),
172
- tncoef_outfile=execution.output_file("[TNCOEF].fitt"),
173
- bucket_outfile=execution.output_file("[BUCKET].bucket"),
174
- sfit_outfile=execution.output_file("[SFIT].sfit"),
175
- snfit_outfile=execution.output_file("[SNFIT].snfit"),
497
+ freg_outfile=execution.output_file(params.get("freg") + ".fift") if (params.get("freg") is not None) else None,
498
+ frsqr_outfile=execution.output_file(params.get("frsqr") + ".fift") if (params.get("frsqr") is not None) else None,
499
+ fsmax_outfile=execution.output_file(params.get("fsmax") + ".fift") if (params.get("fsmax") is not None) else None,
500
+ ftmax_outfile=execution.output_file(params.get("ftmax") + ".fift") if (params.get("ftmax") is not None) else None,
501
+ fpsmax_outfile=execution.output_file(params.get("fpsmax") + ".fift") if (params.get("fpsmax") is not None) else None,
502
+ farea_outfile=execution.output_file(params.get("farea") + ".fift") if (params.get("farea") is not None) else None,
503
+ fparea_outfile=execution.output_file(params.get("fparea") + ".fift") if (params.get("fparea") is not None) else None,
504
+ fscoef_outfile=execution.output_file(params.get("fscoef") + ".fift") if (params.get("fscoef") is not None) else None,
505
+ fncoef_outfile=execution.output_file(params.get("fncoef") + ".fift") if (params.get("fncoef") is not None) else None,
506
+ tscoef_outfile=execution.output_file(params.get("tscoef") + ".fitt") if (params.get("tscoef") is not None) else None,
507
+ tncoef_outfile=execution.output_file(params.get("tncoef") + ".fitt") if (params.get("tncoef") is not None) else None,
508
+ bucket_outfile=execution.output_file(params.get("bucket") + ".bucket") if (params.get("bucket") is not None) else None,
509
+ sfit_outfile=execution.output_file(params.get("sfit") + ".sfit") if (params.get("sfit") is not None) else None,
510
+ snfit_outfile=execution.output_file(params.get("snfit") + ".snfit") if (params.get("snfit") is not None) else None,
176
511
  )
177
512
  return ret
178
513
 
@@ -205,6 +540,40 @@ def v_3d_nlfim(
205
540
  input_file: InputPathType,
206
541
  signal_model: str,
207
542
  noise_model: str,
543
+ mask: InputPathType | None = None,
544
+ ignore: int | None = None,
545
+ intr: int | None = None,
546
+ tr: int | None = None,
547
+ time_file: InputPathType | None = None,
548
+ sconstr: str | None = None,
549
+ nconstr: str | None = None,
550
+ nabs: bool = False,
551
+ nrand: int | None = None,
552
+ nbest: int | None = None,
553
+ rmsmin: float | None = None,
554
+ fdisp: float | None = None,
555
+ progress: int | None = None,
556
+ voxel_count: bool = False,
557
+ simplex: bool = False,
558
+ powell: bool = False,
559
+ both: bool = False,
560
+ freg: str | None = None,
561
+ frsqr: str | None = None,
562
+ fsmax: str | None = None,
563
+ ftmax: str | None = None,
564
+ fpsmax: str | None = None,
565
+ farea: str | None = None,
566
+ fparea: str | None = None,
567
+ fscoef: str | None = None,
568
+ fncoef: str | None = None,
569
+ tscoef: str | None = None,
570
+ tncoef: str | None = None,
571
+ bucket: str | None = None,
572
+ brick: str | None = None,
573
+ nofdr: bool = False,
574
+ sfit: str | None = None,
575
+ snfit: str | None = None,
576
+ jobs: int | None = None,
208
577
  runner: Runner | None = None,
209
578
  ) -> V3dNlfimOutputs:
210
579
  """
@@ -218,6 +587,60 @@ def v_3d_nlfim(
218
587
  input_file: Filename of 3d+time data file for input.
219
588
  signal_model: Name of the nonlinear signal model.
220
589
  noise_model: Name of the linear noise model.
590
+ mask: Use the 0 sub-brick of dataset 'mset' as a mask to indicate which\
591
+ voxels to analyze.
592
+ ignore: Skip this number of initial images in the time series for\
593
+ regression analysis; default = 0.
594
+ intr: Set the TR of the input 3d+time dataset.
595
+ tr: Directly set the TR of the time series model.
596
+ time_file: ASCII file containing each time point in the time series.
597
+ sconstr: Constraints for signal parameters; c <= gs[k] <= d.
598
+ nconstr: Constraints for noise parameters; c+b[k] <= gn[k] <= d+b[k].
599
+ nabs: Use absolute constraints for noise parameters; c <= gn[k] <= d.
600
+ nrand: Number of random test points; default=19999.
601
+ nbest: Use b best test points to start; default=9.
602
+ rmsmin: Minimum RMS error to reject reduced model.
603
+ fdisp: Display results for those voxels whose F-statistic is greater\
604
+ than fval; default=999.0.
605
+ progress: Display results every ival number of voxels.
606
+ voxel_count: Display the current voxel index.
607
+ simplex: Use Nelder-Mead simplex method for least-square minimization\
608
+ (default).
609
+ powell: Use Powell's NEWUOA method instead of Nelder-Mead simplex\
610
+ method.
611
+ both: Use both Powell's and Nelder-Mead method.
612
+ freg: Perform F-test for significance of the regression; output 'fift'\
613
+ is written to prefix filename fname.
614
+ frsqr: Calculate R^2 (coef. of multiple determination); store along\
615
+ with F-test for regression; output 'fift' is written to prefix filename\
616
+ fname.
617
+ fsmax: Estimate signed maximum of signal; store along with F-test for\
618
+ regression; output 'fift' is written to prefix filename fname.
619
+ ftmax: Estimate time of signed maximum; store along with F-test for\
620
+ regression; output 'fift' is written to prefix filename fname.
621
+ fpsmax: Calculate (signed) maximum percentage change of signal from\
622
+ baseline; output 'fift' is written to prefix filename fname.
623
+ farea: Calculate area between signal and baseline; store with F-test\
624
+ for regression; output 'fift' is written to prefix filename fname.
625
+ fparea: Percentage area of signal relative to baseline; store with\
626
+ F-test for regression; output 'fift' is written to prefix filename\
627
+ fname.
628
+ fscoef: Estimate kth signal parameter gs[k]; store along with F-test\
629
+ for regression; output 'fift' is written to prefix filename fname.
630
+ fncoef: Estimate kth noise parameter gn[k]; store along with F-test for\
631
+ regression; output 'fift' is written to prefix filename fname.
632
+ tscoef: Perform t-test for significance of kth signal parameter gs[k];\
633
+ output 'fitt' is written to prefix filename fname.
634
+ tncoef: Perform t-test for significance of kth noise parameter gn[k];\
635
+ output 'fitt' is written to prefix filename fname.
636
+ bucket: Create one AFNI 'bucket' dataset containing n sub-bricks; n=0\
637
+ creates default output; output 'bucket' is written to prefixname.
638
+ brick: Specify sub-brick contents for 'bucket' dataset.
639
+ nofdr: Don't write the FDR (q vs. threshold) curves into the output\
640
+ dataset.
641
+ sfit: Prefix for output 3d+time signal model fit.
642
+ snfit: Prefix for output 3d+time signal+noise fit.
643
+ jobs: Run the program with 'J' jobs (sub-processes). 1 to 32.
221
644
  runner: Command runner.
222
645
  Returns:
223
646
  NamedTuple of outputs (described in `V3dNlfimOutputs`).
@@ -228,6 +651,40 @@ def v_3d_nlfim(
228
651
  input_file=input_file,
229
652
  signal_model=signal_model,
230
653
  noise_model=noise_model,
654
+ mask=mask,
655
+ ignore=ignore,
656
+ intr=intr,
657
+ tr=tr,
658
+ time_file=time_file,
659
+ sconstr=sconstr,
660
+ nconstr=nconstr,
661
+ nabs=nabs,
662
+ nrand=nrand,
663
+ nbest=nbest,
664
+ rmsmin=rmsmin,
665
+ fdisp=fdisp,
666
+ progress=progress,
667
+ voxel_count=voxel_count,
668
+ simplex=simplex,
669
+ powell=powell,
670
+ both=both,
671
+ freg=freg,
672
+ frsqr=frsqr,
673
+ fsmax=fsmax,
674
+ ftmax=ftmax,
675
+ fpsmax=fpsmax,
676
+ farea=farea,
677
+ fparea=fparea,
678
+ fscoef=fscoef,
679
+ fncoef=fncoef,
680
+ tscoef=tscoef,
681
+ tncoef=tncoef,
682
+ bucket=bucket,
683
+ brick=brick,
684
+ nofdr=nofdr,
685
+ sfit=sfit,
686
+ snfit=snfit,
687
+ jobs=jobs,
231
688
  )
232
689
  return v_3d_nlfim_execute(params, execution)
233
690