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  

|
September 29, 2022 08:55AM
Hello AFNI folks,

I noticed something when trying to implement an AFNI-based real time fMRI engine that I made.

To trouble shoot I collected all EPI files after the run and stitched them together into a full 4D run.

Using the full run I used 3dvolreg to align it to the EPI containing the mask from where we would like the feedback. For trouble shooting purposes I used visual cortex to get a strong signal. The paradigm is looking at images. I then scaled it.
The scaled data was the input to 3dDeconvolve using the motion_demean.txt file I got from the 3dVolreg command (dfile.txt -> motion_demean.txt).

This gives the motion corrected data, errts. I did not use any drift regressors or the mean (polort = -1).

This gives a very nice average time course:


But when actually running the neuro feedback we can ofc not use the full run. What I do is to 3dTcat out 13 TRs of data (of which we use TR 0-3 as baseline (red), and TR 9-12 during the peak of the BOLD response to the image (green).

Using this "zoomed-in" snippet of data, the time course is identical as using the full data set (the corresponding 13 TRs) if using the .scaled data. But motion correction (3dDeconvolve) removes the increase of BOLD that is induced by seeing the image.


Is this expected? We know visual cortex do react to viusal stimuli. The full run with motion correction still has an increase in signal at fixation (red) and image peak (green). But not when running mot-corr on just those 13 TRs (red until green).
I would think this is a "regression artifact" of having too few TRs.

So I'm just checking :)
Attachments:
open | download - full_tc.png (80.3 KB)
open | download - comp.png (69.9 KB)
Subject Author Posted

Motion correction on full run vs Small part of run Attachments

Robin September 29, 2022 08:55AM

Re: Motion correction on full run vs Small part of run

rick reynolds September 29, 2022 09:53AM

Re: Motion correction on full run vs Small part of run

Robin September 29, 2022 11:38AM

Re: Motion correction on full run vs Small part of run

rick reynolds September 29, 2022 12:07PM

Re: Motion correction on full run vs Small part of run

Robin September 30, 2022 06:45AM

Re: Motion correction on full run vs Small part of run

Robin October 06, 2022 08:45AM

Re: Motion correction on full run vs Small part of run

rick reynolds October 06, 2022 12:41PM

Re: Motion correction on full run vs Small part of run

Robin October 07, 2022 05:39AM

Re: Motion correction on full run vs Small part of run

rick reynolds October 07, 2022 11:11AM

Re: Motion correction on full run vs Small part of run

Robin October 07, 2022 07:44PM

Re: Motion correction on full run vs Small part of run

rick reynolds October 17, 2022 09:17AM