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  

|
May 06, 2020 12:46PM
Hi, Kara-

You can apply the same shift that got applied to your anatomical (when aligning its center of mass to the template with @Align_Centers) to the EPI, by treating the EPI as a "child" dataset. You would want to copy each of the "-dset .." and "-child .." inputs before running @Align_Centers in this case, because the program will now overwrite each (that is, internally adjust the origin information in the file's header).

Using your file names, this could be done before running @SSwarper in general with (*please read note below before running on your current subj*):
3dcopy $scan_dir/$subj.anat.uni+orig $subj.anat.uni.ac
3dcopy EPI EPI_NEW

@Align_Centers \
-cm \
-no_cp \
-dset $subj.anat.uni.ac+orig \
-base TT_N27_SSW.nii.gz
-child EPI_NEW+orig
... and then use EPI_NEW+orig as your afni_proc.py inputs with "-dsets ...".

Note that, in your case here, you have already run @SSwarper; so, in order to not have to run it again, I would do the following:
3dcopy $scan_dir/$subj.anat.uni+orig TEMP_ANAT
3dcopy EPI EPI_NEW

@Align_Centers \
-cm \
-no_cp \
-dset TEMP_ANAT+orig \
-base TT_N27_SSW.nii.gz
-child EPI_NEW+orig
.... now, you can ignore TEMP_ANAT-- it just ends up in the exact same pre-aligned-to-template state that your input to @SSwarper did (but it doesn't overwrite it). Now, you should be able to input EPI_NEW+orig into your afni_proc.py command.

A question though: why does your current input EPI to afni_proc.py command start with pb.00* ? That makes it look like it has already been through some kind of processing with afni_proc.py, which I don't understand.

--pt
Subject Author Posted

Alignment troubles Attachments

kkerr May 06, 2020 12:16PM

Re: Alignment troubles

ptaylor May 06, 2020 12:46PM

Re: Alignment troubles

kkerr May 06, 2020 02:26PM

Re: Alignment troubles

ptaylor May 06, 2020 02:27PM

Re: Alignment troubles

kkerr May 06, 2020 03:40PM