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 10, 2022 11:49AM
Hi, Maya-

After running FreeSurfer's recon-all, do you run AFNI's @SUMA_Make_Spec_FS? That should provide most of the dsets you would want in NIFTI (and/or GIFTI) format, with some nice properties, too. Some description of running @SUMA_Make_Spec_FS after recon-all is given here:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/tutorials/fs/main_toc.html

Some of the convenient outputs are provided here:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/tutorials/fs/fs_makespec.html
The *REN* files are particularly nice: they are renumbered+labeltabled FreeSurfer segmentation maps (both the aparc+aseg and aparc*2009* varieties). When opened in AFNI, they have ROI-like colorbars. There are several useful ones, including all the FS ROIs in one dset, but "families" that are convenient. Myself, I really like having the "ROI-like" GM as a single file, *REN_gmrois* (FS has both GM ROIs and GM "dots" that are left over in the GM map). I recently had some afni_proc.py commands and I defined the following dsets of interest (the full parcellation and GM-ROI-like parcellation subset, for both of FS's output atlases):
set roi_all_2000 = ${sdir_suma}/aparc+aseg_REN_all.nii.gz
set roi_gmr_2000 = ${sdir_suma}/aparc+aseg_REN_gmrois.nii.gz
set roi_all_2009 = ${sdir_suma}/aparc.a2009s+aseg_REN_all.nii.gz
set roi_gmr_2009 = ${sdir_suma}/aparc.a2009s+aseg_REN_gmrois.nii.gz
... and then included the following anat followers in my afni_proc.py (AP) command:
    -anat_follower_ROI        a09all anat ${roi_all_2009}                    \
    -anat_follower_ROI        e09all epi  ${roi_all_2009}                    \ 
    -anat_follower_ROI        a09gmr anat ${roi_gmr_2009}                    \ 
    -anat_follower_ROI        e09gmr epi  ${roi_gmr_2009}                    \ 
    -anat_follower_ROI        a00all anat ${roi_all_2000}                    \ 
    -anat_follower_ROI        e00all epi  ${roi_all_2000}                    \ 
    -anat_follower_ROI        a00gmr anat ${roi_gmr_2000}                    \ 
    -anat_follower_ROI        e00gmr epi  ${roi_gmr_2000}                    \
... where "a09all ...." is the dset of "all" aparc*20"09"* ROIs output on the final "a"natomical grid, etc.

You might want to define:
set roi_gm_2000 = ${sdir_suma}/aparc+aseg_REN_gm.nii.gz
... and then include this in your AP command:
    -anat_follower_ROI        a00gm anat ${roi_gm_2000}                    \ 
    -anat_follower_ROI        e00gm epi  ${roi_gm_2000}                    \

You can always "binarize" the output dset with:
3dcalc -a DSET -expr 'bool(a)' -prefix DSET_BINARIZED
... which maps every nonzero value in DSET to 1, leaving everything else 0. (But from the anat follower command, you should have the labels still attached in the mapped parcellation, which is a recent update in AFNI.)

--pt
Subject Author Posted

aparc+aseg to MNI

MayaSa August 09, 2022 08:14AM

Re: aparc+aseg to MNI

Peter Molfese August 09, 2022 09:16AM

Re: aparc+aseg to MNI

ptaylor August 09, 2022 09:24AM

Re: aparc+aseg to MNI

MayaSa August 10, 2022 04:02AM

Re: aparc+aseg to MNI

ptaylor August 10, 2022 11:49AM

Re: aparc+aseg to MNI

ptaylor August 10, 2022 12:00PM

Re: aparc+aseg to MNI

MayaSa August 11, 2022 06:16AM