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  

|
September 24, 2020 09:25PM
Hello

I have two conditions and have calculated a t-map from 3dttrest++ for each. I now want to create a mask that shows which voxels are active for both conditions. I used the following command based on 3dcalcs help file.

3dcalc -a 'A' -b 'B' -expr '3*step(a-3)'+3*step(b-3)' -prefix common_mask

A and B are the results from my 3dttest++. I thresholded it, and only wanted voxels with a t-value of 3. The resulting common_mask looked right at first, but I'm noticing that there are voxels showing in the mask that are not active in condition A.

I'm slightly now confused on what the 3*step does. At first, I thought it was how I tell 3dcalc to only calculate voxels in A and B only.

Thank you for your time.
Subject Author Posted

Using 3dcalc to calculate common active voxels between two conditions

kbandrew September 24, 2020 09:25PM

Re: Using 3dcalc to calculate common active voxels between two conditions

RWCox September 25, 2020 12:48PM

Re: Using 3dcalc to calculate common active voxels between two conditions

kbandrew September 25, 2020 04:40PM

Re: Using 3dcalc to calculate common active voxels between two conditions

ptaylor September 28, 2020 01:22PM

Re: Using 3dcalc to calculate common active voxels between two conditions

kbandrew October 07, 2020 01:17AM