Written by: | Wiktor Olszowy, Department of Clinical Neurosciences, University of Cambridge |
---|---|
When: | September 2016 - December 2016 |
Purpose: | Simulating fMRI signal for different hemodynamic response functions (HRFs) |
Contact: | [email protected] |
The fMRI time series are simulated given a set of options the user can specify. Afterwards, the models are estimated and significance of the stimulus evoked response is assessed. There are 6 HRF models available:
- canonical double gamma
- canonical double gamma with first derivative
- canonical double gamma with first and second derivatives
- nonlinear double gamma
- inverse logit
- finite impulse response
For the R computations I used the following packages (available from CRAN):
- AnalyzeFMRI
- GenSA
- ggplot2
- gridExtra
- latticeExtra
- numDeriv
- oro.nifti
- parallel
- reshape2
The codes were tested in R 3.2.2 on Linux.
-
HRF_sim_est_inference.R
is the interface
-
HRF_est_inference.R
estimates the model parameters and performs inference
-
HRF_sim.R
simulates fMRI time series given a set of options: repetition time (TR), experimental paradigm/design, HRF model, CNR, AR1
-
HRF_basic_functions.R
auxiliary functions for the above codes
-
HRF_par_dist.R
makes figures showing the distributions of the parameter estimates
-
HRF_FSL_gamma2_FIR.R
performs analysis in FSL for both the canonical model with the 1st derivative and for the finite impulse response model