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  

|
June 29, 2021 02:16PM
Howdy-

Sooo, I think the issue is that whereami is being a little too clever for its own good. It is finding the ROI that matches the specified name, AND restricting it to one side of the x=0 line. I think this behavior was developed for atlases that didn't separate left and right with names, and so one could split a bilateral ROI with the centerline. Here, that behavior is inappropriate. This might be something we change...

In the meantime, the way i would do what you want (select several ROIs by label, and make a single mask out of them) would be as follows, via 3dcalc:
3dcalc \
    -a aparc.a2009s+aseg.nii.gz'<Brain-Stem,Left-Cerebellum-Cortex,Right-Cerebellum-Cortex,Left-Cerebellum-White-Matter,Right-Cerebellum-White-Matter,Left-VentralDC,Right-VentralDC>' \
    -expr 'step(a)' \
    -prefix NEW_MASK.nii
This is using the "AFNI selectors", in this case the angle-brackets to select ROI by label or by number (labels being preferred, if possible, for clarity). The quotes are necessary (either single or double here).

If you wanted the values+labels left in (so you still have a "map" of your selected ROIs), you could run:
3dcalc \
    -a aparc.a2009s+aseg.nii.gz'<Brain-Stem,Left-Cerebellum-Cortex,Right-Cerebellum-Cortex,Left-Cerebellum-White-Matter,Right-Cerebellum-White-Matter,Left-VentralDC,Right-VentralDC>' \
    -expr 'a' \
    -prefix NEW_MAP.nii

# reattach labeltable and put ROI-dset appropriate colorbar as default
3drefit -copytables aparc.a2009s+aseg.nii.gz  NEW_MAP.nii
3drefit -cmap INT_CMAP            NEW_MAP.nii

--pt
Subject Author Posted

whereami aparc medial cerebellum deletion Attachments

wmckinney June 29, 2021 11:44AM

Re: whereami aparc medial cerebellum deletion

ptaylor June 29, 2021 02:16PM

Re: whereami aparc medial cerebellum deletion

wmckinney July 05, 2021 07:11PM