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  

|
March 13, 2014 05:26PM
We don't have that function exactly, but it's fairly easy to do what you want a few ways:

# use the atlas dataset directly
3dcalc -a ~/abin/MNIa_caez_ml_18+tlrc.'<92..116>' -expr a -prefix atlasextract

# use a concatenated master dataset as a single dataset
3dcalc -a "CA_ML_18_MNIA::91 CA_ML_18_MNIA::92 CA_ML_18_MNIA::116" -prefix threeregions -expr a

# concatenate datasets with 3dbucket or 3dTcat
3dbucket -prefix buck_atlas "CA_ML_18_MNIA::91" "CA_ML_18_MNIA::92" "CA_ML_18_MNIA::116"

# combine with 3dcalc
3dcalc -a "CA_ML_18_MNIA::91" -b "CA_ML_18_MNIA::92" -c "CA_ML_18_MNIA::116" -prefix threeregions_1sb -expr "step ( a ) +2*step ( b ) +4*step ( c ) "

The first method keeps the original values of 92 to 116 in a single sub-brick. The next two give multiple sub-bricks that have values of 1 for each region and sub-brick labels are the original values. The last method creates a single sub-brick dataset and uses a binary assignment using values of 1,2 and 4 for individual values (other values would show overlap which you wouldn't get for this particular atlas).
Subject Author Posted

whereami -mask_atlas_region selection

John March 13, 2014 03:22PM

Re: whereami -mask_atlas_region selection

Daniel Glen March 13, 2014 05:26PM

Re: whereami -mask_atlas_region selection

ziad March 13, 2014 06:23PM