simulating dset given a prototype dset

AFNI version info: Precompiled binary linux_ubuntu_16_64: Feb 24 2026 (Version AFNI_26.0.09 'Pupienus Maximus')

Hello afni wizards,

I'm intending to run power analyses on some multi-echo data using 3dMSS but want to compare this to similar analyses using single-echo data. My plan was to use some acquired data and simulate various N dsets from the acquired data. I noticed here that one could use 3dsynthesize, so I tried using that with the intent of inputting the data into 3dDeconvolve and 3dREMLfit, but the results were disturbingly overfit, presumably related to the input of 3dsynthesize (-cbucket and -matrix). I assume I may have used it incorrectly, but not sure.

I then found 3dTSgen, which seems like the function I'd need for my purposes, and also came across this note which describes it in more details for different use cases. Although, trying out a simple run of the function I obtained the following error:

3dTSgen -input dir/pb04.Rec.nlsbrefblip.r01.blur+tlrc -noise Linear -signal Null -sigma 25.0 -output sim.Rec.se
++ 3dTSgen: AFNI version=AFNI_26.0.09 (Feb 24 2026) [64-bit]
++ Authored by: B. Douglas Ward

Fatal Signal 11 (SIGSEGV) received
3dTSgen main
Bottom of Debug Stack
** AFNI version = AFNI_26.0.09 Compile date = Feb 24 2026
** [[Precompiled binary linux_ubuntu_16_64: Feb 24 2026]]
** Program Death **
** If you report this crash to the AFNI message board,
** please copy the error messages EXACTLY, and give
** the command line you used to run the program, and
** any other information needed to repeat the problem.
** You may later be asked to upload data to help debug.
** Crash log is appended to file /home/tlab/.afni.crashlog

I tried changing the input to the raw e2+orig dset but the issue persisted so it didn't seem like preprocessed data was the issue. I tried reading the .afni.crash.log file but couldn't interpret much of what's in it, sadly.

Checking back with the first post I hyperlinked and the 3dcalcdocumentation, I noticed that I could simulate dsets using the following function call:

3dcalc -a pb04.Rec.nlsbrefblip.r01.blur+tlrc -b '1D: 100@' -expr gran(mean(a), stdev(a)) -prefix Rec.sim.se

This seems like it would accomplish the task of simulating data, where changing -expr for null or signal as 3dTSgenallows would effectively accomplish what I'm intending to achieve. Is my reading of this last function call correct to match the intended uses of 3dTSgen? Or am I using 3dTSgen incorrectly?

Chris