AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
May 10, 2023 04:27PM
There really isn't a good way to have multiple overlays in the AFNI GUI.

You could multiple the stats map DSET_STATS by the region map DSET_ROI, adn show that:
3dcalc -a DSET_STATS -b DSET_ROI -expr 'step(b)*a' -prefix DSET_STATS_IN_ROI
... and then use DSET_STATS_IN_ROI as the overlay.

A somewhat cheating method might be to concatenate the stats volume and the ROI one, and use the ROI one as the alpha map

+ Make an "elevated ROI" map, which is 2 in your ROI, and 1 elsewhere that you want to see stuff (and maybe 0 outside that); for example, here is one that is 2 in the ROI and 1 elsewhere:
3dcalc -a MMM1.nii.gz -expr 'step(a)+1' -prefix DSET_ROI_ELEVATED.nii.gz

+ Concatenate your desired stats volume and the 'elevated ROI map':
3dTcat -overwrite -prefix dset_stat_and_mask.nii.gz stats.FT+tlrc.'[2]' DSET_ROI_ELEVATED.nii.gz

View it with @chauffeur_afni now, thresholding the elevated ROI map at, say, 1.5:
@chauffeur_afni         -echo                                              \
    -ulay             MNI152_2009_template_SSW.nii.gz                 \
    -olay             dset_stat_and_mask.nii.gz                       \
    -box_focus_slices AMASK_FOCUS_ULAY                                \
    -func_range       3                                               \
    -cbar             Reds_and_Blues_Inv                              \
    -thr_olay         1.5                                             \
    -olay_alpha       Yes                                             \
    -olay_boxed       Yes                                             \
    -set_subbricks    0 0 1                                          \
    -opacity          6                                               \
    -prefix           IMG_ROI_STAT                                   \
    -set_xhairs       OFF                                             \
    -montx 3 -monty 3                                                 \
    -label_mode 1 -label_size 4

--pt
Attachments:
open | download - IMG_ROI_STAT.axi.png (295.7 KB)
open | download - IMG_ROI_STAT.sag.png (272.7 KB)
Subject Author Posted

@chauffeur_afni to plot highlighted stats map but box as an ROI

Zhengchen Cai May 10, 2023 10:38AM

Re: @chauffeur_afni to plot highlighted stats map but box as an ROI

Zhengchen Cai May 10, 2023 11:11AM

Re: @chauffeur_afni to plot highlighted stats map but box as an ROI

ptaylor May 10, 2023 11:30AM

Re: @chauffeur_afni to plot highlighted stats map but box as an ROI

Zhengchen Cai May 10, 2023 12:35PM

Re: @chauffeur_afni to plot highlighted stats map but box as an ROI Attachments

ptaylor May 10, 2023 04:27PM

Re: @chauffeur_afni to plot highlighted stats map but box as an ROI

Zhengchen Cai May 10, 2023 07:23PM