I am a new beginner of AFNI. To correlate alpha power time series from EEG with fMRI BOLD signal, I need to convolve alpha power time series (stim_file 1) with HRF in 3dDeconvolve. But I am not sure which function should I use. Here is my script with 3dDeconvolve, just for reference.
Maybe waver is the program you want. Also note several of the modeled basis functions in 3dDeconvolve are convolved with a square wave, as described in this excerpt from 3dDeconvolve’s help
*** Some models below are described in terms of a simple response
function that is then convolved with a square wave whose
duration is a parameter you give (duration is NOT a parameter
that will be estimated). Read the descriptions below carefully:
not all functions are (or can be) convolved in this way:
* ALWAYS convolved: BLOCK dmBLOCK MION MIONN
* NEVER convolved: TENT CSPLIN POLY SIN EXPR
* OPTIONALLY convolved: GAM SPMGx WAV
You can use the ‘-nodata’ option, as in ‘-nodata 300 1.0’ where ‘300’ is the number of time points and ‘1.0’ is the time interval (in seconds) between them. After that, you set up the processing as normal, and the program outputs the analysis design matrix.
Here is an example copied from the 3dDeconvolve -help output
Here, the output is piped directly into 1dplot. If instead, you replace everything after ‘-x1D’ with ‘Xmat.1D’, you’ll get the resulting matrix (in this case, 2 columns) saved into a text file.
To clarify, does alpha_ps_ts.txt contain event times, or a
time series with a value at each time point that should be
convolved with some basis function? And which basis
function are you interested in?
Alpha power time series (stim_file 1) is a time series with a value at each time point that should be convolved with HRF. After checking the help in 3Ddecnonvolve, I prefer WAV as my interested function.
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.