AFNI version info (afni -ver):
Precompiled binary linux_ubuntu_24_64: Oct 1 2024 (Version AFNI_24.3.00 'Elagabalus')
Hi there,
I am running standard pre-processing on some task fMRI data (tcat despike align volreg surf blur scale), then averaging the runs, clipping out the portion of phasic stimulation and running 3ddelay on that data.
I have been getting a warning about scaling to shorts (see example below). So I decided to try and force it to output floats to fix this issue (as I don't mind if the data files are larger). I looked in 3ddelay and there was no option for switching to floats, but after some reading tried setting the environment variable AFNI_FLOATIZE=YES. I ran my 3ddelay again, but got the same error. I checked echo $AFNI_FLOATIZE and it said yes, so it was set correctly.
I wondered if I was doing it incorrectly re. when I was setting the environment variable? I had previously ml afni before running afni_proc.py, then the other steps, then set the environment variable, then ran 3ddelay - in that order.
Then I read about about AFNI_FLOATIZE in here (link below), and I wondered if this command would only work for certain afni commands, like 3dANOVA and some others. I did not see 3ddelay listed.
https://afni.nimh.nih.gov/pub/dist/doc/program_help/README.environment.html
I realise it is a warning, not an error, and the error says the nodes affected are likely on the periphery, but thought I should check if I need to do something differently, as the numbers are high-ish (e.g., 12% below).
The phase encoded finger tip maps 3ddelay produces look fine to me...
Thank you for your assistance,
H
+ 3ddelay: AFNI version=AFNI_24.3.00 (Oct 1 2024) [64-bit]
++ Authored by: Ziad Saad (with help from B Douglas Ward)
[7m*+ WARNING:[0m +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[7m*+ WARNING:[0m sub-001_ses-01_fingermap_lh_sinusoid[3] scale to shorts mean misfit error = 12.9% -- * Caution
+ a) Numerical precision has been lost when truncating results
from 32-bit floating point to 16-bit integers (shorts).
+ b) Consider writing datasets out in float format.
In most AFNI programs, use the '-float' option.
+ c) This warning is a new message, but is an old issue
that arises when storing results in an integer format.
+ d) Don't panic! These messages likely originate in peripheral
or unimportant voxels. They mean that you must examine your output.
"Assess the situation and keep a calm head about you,
because it doesn't do anybody any good to panic."
++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
set fs = 0.520833
set T = 48
set polort = -1
3ddelay -input 'pb0'${block_num}'.'${subj}'.'${hemi}'.rALL_phasic.'${block_type}${extension} \
-ideal_file $ref_wave \
-fs $fs \
-T $T \
-polort $polort \
-nophzwrp \
-correct_bias \
-co 0.5 \
-nodsamp \
-prefix ${subj}_fingermap_${hemi}_${ref_wave_name}