How to set decimal threshold values using DriveSuma?

Hello.

I used this version of AFNI:
AFNI version info (afni -ver):
Precompiled binary macos_13_ARM: Aug 15 2025 (Version AFNI_25.2.08 'Gordian I')

I'd like to ask about DriveSuma, specifically how to set threshold. I use this command to set the threshold of t-values to map a GLM result, but all decimal places are rounded off, and only integer values can be set.
I suspect that my code might contain a mistake, but I'm not sure how to fix it.
I'd appreciate any advice.

DriveSuma                                            \
     -echo_edu                                        \
     -com surf_cont     \
     -I_sb 8            \
     -T_sb 8            \
     -T_val 0.001p      \
     -I_range 7.5       \
     -switch_cmap "Reds_and_Blues_Inv"

sleep 1

Howdy-

Thanks for mentioning this. Actually, this was a fairly recent accidental change, which has been fixed in the present code. As noted in this discussion, the fix is in AFNI versions 25.2.09 and higher. Sooooooo, it seems like your current version number is just below that point.

If you update your code, it should be fixed. Can you please give that a try, and let us know how that goes?

thanks,
pt

Hi,
thank you for your reply.
I update AFNI installed in my laptop and its version is this:
Precompiled binary macos_13_ARM: Sep 11 2025 (Version AFNI_25.2.12 'Gordian I')

However, I still cannot set the decimal number as the threshold using DriveSuma.
(I can set it manually on the SUMA's GUI.)

I am using macOS Sequoia(version 15.6.1): Could this be causing that problem?

Nori

I am using that version of MacOS, and driving the threshold works for me. I used this DriveSuma command to set the threshold to 1.8.

DriveSuma -com surf_cont -T_val 0.001p

First, the 'p' at the end only works for sub-bricks of datasets that have statistical values in an AFNI format (not the same as requiring AFNI format for the file). Check if you can change thresholds with just a floating point number. Also, make sure you're using the DriveSuma command from the same directory as your afni and suma commands just in case one is coming from a different directory in your path.

which afni
which suma
which DriveSuma

Hi,
thank you for your reply.
I am sorry for causing you confusion. I used the wrong words..

I would like to ask the scale range of colorbar not threshold, specifically Min-Max of I.
If I use -T_val 0.001p \, that works well using DriveSuma.

When I use the code I shared, the scale values of I are integers, even though I use -T_range \.

Do you have any solution of this problem?

Howdy-

Ah, I see. Indeed, I am also now seeing that driving I_range produces an integer, even though typing it into the GUI has been fixed to accept floats.

Thanks for the follow-up clarification, and we are on it. Hopefully this will be addressed shortly.

thanks,
pt

Thank you for your help.
I'd appreciate it if you could let me know, when there are any updates about this,

Howdy-

Peter made the update, and we did a build yesterday. So, this should be working better now in AFNI ver 25.2.13 and beyond.

Please let us know.

thanks,
pt

Hi,
I updated AFNI installed in my laptop.
afni -ver Precompiled binary macos_13_ARM: Sep 17 2025 (Version AFNI_25.2.13 'Gordian I')

I_range works correctly with DriveSuma, and I can set the decimal number.
Thank you so much for your help.

Nori

Hi, Nori-

Terrific, thanks for bringing this to our attention in the first place.

Happy processing + data visualizing!

--pt

1 Like