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  

|
October 20, 2021 08:48PM
Hello afni experts,

I have a simple question here.
I have for each subject a 3D dataset which is one sub brick that contains only the beta coefficients for each voxel. I need to normalize those coefficients by a reference value which is the averaged signal across all functional volumes and voxels of each subject. (I am following a suggested pipeline to calculate a cerebro vascular reactivity index for each voxel). For each subject I have a .1D file which contains one number. (this number is different for each subject). What function can I use to divide each voxel in my sub brick dataset by this number?

I tried 3dcalc but it can only do voxel by voxel operations so it complains when I include as second input dataset which is not a 3d dataset

3dcalc -a betaCoefficients.nii.gz -b referneceValue.1D -expr 'a/b' >normalized betas.nii.gz

Thank you very much for any suggestions!
Carolin
Subject Author Posted

how to divide each voxel in a 3d dataset by one number which is written to a file

carolin31 October 20, 2021 08:48PM

Re: how to divide each voxel in a 3d dataset by one number which is written to a file

Colm Connolly October 21, 2021 07:25AM

Re: how to divide each voxel in a 3d dataset by one number which is written to a file

rick reynolds October 21, 2021 09:03AM

Re: how to divide each voxel in a 3d dataset by one number which is written to a file

carolin31 October 22, 2021 01:10AM