AFNI version info (afni -ver):
Version AFNI_20.2.16 'Aulus Vitellius'
Hello!
I am analyzing ER-task fMRI data in two ways. First, I did a standard univariate analysis with a contrast between two experimental conditions. Now, I am trying to do a multivariate analysis.
Question 1: I have stim times for each participant in two files (based on experimental condition), sub-xxx-congruent.1d and sub-xxx-incongruent.1d. For the multivariate analysis, do I need to make new 1d files that contain all the stim times per run? (I have previously tried it as shown below, but not sure if this is correct).
Question 2: I would like to censor spike volumes that I have identified based on framewise displacement. In the AFNI documentation for 3dDeconvolve, I saw that this can be done by adding a clist file with the -CENSORTR clist option. My question is whether I need to adjust the stim times files? Since volumes (TRs) and stimulus presentations are not aligned, this would be difficult. Does 3dDeconvolve 'understand' to ignore stim times corresponding to censored volumes?
Question 3: In addition to using stim_times_IM, do I need to make any other changes?
To be sure of your wording, what changes are you currently making when going from univariate to multivariate analysis? Do you just mean including both conditions in the regression? I would like to understand how IM fits in to this, vs having multiple variables.
Use of -stim_times_IM works with the same timing files as with -stim_times, except that 3dDeconvolve would then put each response into its own regressor, vs putting the sum of all responses into a single regressor.
So what you have looks okay, assuming the timing files are okay.
Censoring censors time points (or volumes), not stimulus events. One stimulus has an ideal BOLD responses (based on BLOCK(1,1) here). A censored TR will omit that single time point from the regression matrix, regardless of the stimulus timing.
Censoring is done in afni_proc.py using -censor, passing a 1D file that is all 1's for the time series, except for being 0 at any time point to censor out. That scripts more nicely than using -CENSORTR, though of course either way is fine. The actual stimulus timing is based on having no censoring, do not adjust it.
Not based on what you have said.
It might be a good idea to provide specific details, since this is new to you.
show the actual contents of one of the congruent.1D files
show precisely what you are using for censoring (if -censor, just show part of the file, if -CENSORTR, you can show it all)
show how you convert from motion parameters to censoring
state the TR, number of time points, and number of runs
We might be able to respond more concretely that way.
I am going to do an RSA, so I want a set of betas and associated t-statistics for each stimulus. My understanding is that using stim_times_IM will give these rather than just one for congruent and one for congruent (and one for any specified contrast, such as incongruent-congruent), and this way I don't have to manually specify a variable for each stimulus. I had previously done a multivariate analysis this way and the resulting sub-briks had e.g. t-tests for congruent1...congruentX and incongruent1...incongruentX, which was not a problem for analysis. I was just going over it again and wanted to make sure there was no problem with doing it this way rather than putting all the stimulus onset times into a single file regardless of condition. Maybe I was just over thinking.
Similarly, I know the timing for stimuli and for TRs is different, but I didn't know if interrupting the TR time series would throw off the analysis that takes the stimulus time series into account, even though the stimulus presentations and TRs are not aligned. In fact, as they are deliberately unaligned (jittered) to sample different points in the HRF. I just wanted to double check.
I did the preprocessing using fmripreprocess, so from there I used the framewise displacement. I identified any volumes with FD greater than a threshold (.5 mm) to be censored and wrote their indices to a text file. Not 100% sure about the formatting but you can see an example below
Here is an example congruent.1D file for one participant:
Yes, while not required here since the basis functions are the same, it is good to use 2 different regressor names, just to make bookkeeping easier. Otheriwse, you would have to know the order of events across the classes. And even if you do, it seems convenient to have all congruent betas together, followed by all incongruent betas.
Indeed, 3dDeconvolve sets up a full regression matrix as if there is no censoring, and then removes the censored time points. So in that setup phase, all timing is applied appropriately. The -x1D_uncensored X.nocensor.xmat.1D option will request that uncensored matrix to be output as well.
The congruent.1D file seems to have 6 runs, is that true? Just to be sure, there should not be any run index at the start of each row. You might just have that for clarity here. Otherwise, it looks good.
That first CENSORTR file looks okay, though it could be horizontal, too. If the events are spaced out, they should each have a leading RUN: , as in the first example.
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.