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  

|
August 27, 2018 04:09PM
Actually, I see that I made a mistake in my previous code listing: I forgot to *use* the mask MMM.nii.gz that was created in the 2nd command in the third command... whoops! This is what should have been written initially (and I will edit my previous answer to be correct and match this, so that future generations are not thrown off by my error):

# concatenate data sets of interest
3dTcat -prefix ALLCAT.nii.gz  DSET1 DSET2 DSET3 ...
# make a mask of anywhere that is nonzero across the original data sets
3dTstat -nzcount -prefix MMM.nii.gz ALLCAT.nii.gz
# find the volume index+1 of the subbrick with the maximum value within the mask, per voxel
3dTstat -argmax1 -mask MMM.nii.gz -prefix MAP  ALLCAT.nii.gz

--pt
Subject Author Posted

Masks

Emily August 24, 2018 11:34AM

Re: Masks

ptaylor August 24, 2018 01:03PM

Re: Masks

ptaylor August 27, 2018 04:09PM

Re: Masks

Daniel Glen August 27, 2018 02:10PM