Re: [Freesurfer] Convolving external regressors with HRF

2017-02-22 Thread Reza Rajimehr
Thank you so much Doug! I just have one more question: Before convolving regressors with HRF, I looked at X matrix and noticed that the values of regressors have been changed/scaled. For example, the original values in a regressor file are: 134.8300 0 141.1200 0 91.5310 0 96.1870 0 But they have

Re: [Freesurfer] Convolving external regressors with HRF

2017-02-21 Thread Douglas N Greve
You can use the following matlab code. You can ignore the warning printed after the toepliz operation. The OriginalRegressor should be a vector of length Ntp, then write out the NewRegressor to a new external regressor file. TR=2; % seconds Ntp=100; t = TR*[0:Ntp-1]'; h = fast_spmhrf(t); a =

Re: [Freesurfer] Convolving external regressors with HRF

2017-02-21 Thread Reza Rajimehr
Hi Doug, Since our external regressors are stimulus-related (e.g. mean luminance of stimuli), we need to convolve them with a hemodynamic response function. In mkanalysis-sess, we have used -spmhrf 0 to model conditions. Is there a code or Matlab script for HRF convolution, so that we apply exactl

Re: [Freesurfer] Convolving external regressors with HRF

2017-02-21 Thread Douglas N Greve
No, they are not On 02/17/2017 05:09 PM, Reza Rajimehr wrote: > During the functional analysis in FS-FAST, are the external regressors > convolved with the hemodynamic response function? > > Thanks, > Reza > > > ___ > Freesurfer mailing list > Freesurf

[Freesurfer] Convolving external regressors with HRF

2017-02-17 Thread Reza Rajimehr
During the functional analysis in FS-FAST, are the external regressors convolved with the hemodynamic response function? Thanks, Reza ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer