Illegal value in tpattern file

Dear AFNI:
I am new in AFNI. There are some issues I want to make sure when I use afni.proc.py to preprocess my fMRI data.
Error Message: Illegal value in tpattern file
I want to change slice timing using my own data during tshift process. I create a slice_timing.txt file which will be passed to 3dTshift. When it contains slice timing measured in milliseconds, it will report illegal value error. It works fine when I use slice timing measured in seconds.
I have noticed that the slice timing in the help documentation of 3dTshift is measured in milliseconds. So I am not sure which is right.
AFNI version info (afni -ver): AFNI version=AFNI_25.0.13 (Apr 1 2025) [64-bit]
part of code:

-tshift_opts_ts           -tpattern @${stpath}                            \

Hi Michael,

The slice timing units need to match those of the TR in the dataset, which is more typically in seconds.

The 3dTshift -help documentation duplicates the to3d help, which is pretty old, back when ms was very common. Now we generally use s for all that. I am updating the help for 3dTshift to be in units of seconds, since that does seem more current.

But the important point is that the timing units match those of the dataset TR. The 3dinfo DSET output will show the Time step with its units.

-rick

1 Like