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 12:00PM
And, on the perhaps separate topic of applying @SSwarper's transformation pieces here, you first have (**though, note, I still think using the follower_ROI options with afni_proc.py is a better way to map these ROIs---see my parallel posting):

3dNwarpApply                                                                 \
    -nwarp   'anatQQ.sub1.s1.movie1.SE_WARP.nii anatQQ.sub1.s1.movie1.SE.aff12.1D' \
    -source  GMmask.s1.use+orig
.. and that would indeed, be in the same "+orig" view as the input dset, because nothing is telling it to change.

This command adds a few options that will help you:
3dNwarpApply                                                                 \
    -nwarp   'anatQQ.sub1.s1.movie1.SE_WARP.nii anatQQ.sub1.s1.movie1.SE.aff12.1D' \
    -source  GMmask.s1.use+orig       \
    -master /Users/ramotlab/abin/MNI152_2009_template_SSW.nii.gz     \
    -ainterp NN \
    -prefix GMmask.s1.use_in_MNI.nii.gz
where:
+ "-master .." tells the program what output grid+space to use, which will be MNI here---so your final dset would be on the grid of the MNI template specifically, and it would have "+tlrc" viewing (even with the NIFTI file format I output with here). Though, perhaps you would want to use
-master SOME_PATH/anatQQ.sub1.s1.movie1.SE.nii
... to have the ROIs on the grid of your final anatomical dset, or even:
-master SOME_PATH/errts_*HEAD
... to have it the ROIs on the grid of your final residuals/EPI dset.

+ "-ainterp NN" means to use nearest neighbor (NN) interpolation when mapping the source dset to the output; this will preserve integer values, rather than blurring them, losing hte ROI-ness.

+ "-prefix ..." to specify a desired output dset name.

For AFNI-created ROI dsets that have labeltables in them (like the *REN_* ones mentioned in the parallel post in this thread), you can also re-attach the nice properties of telling the GUI to use an ROI-like colorbar when opening the file as an overlay:
3drefit -cmap INT_CMAP DSET_WARPED
... as well as re-attach the labeltable from the original that had one:
3drefit -copytables DSET_ORIG   DSET_WARPED
This latter one only applies if the original dset *did* have a labeltable or atlaspoints, which you can query with:
3dinfo -is_atlas_or_labeltable DSET_ORIG

-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