Software

fmrihrf

CRAN

Hemodynamic response functions, basis sets and event regressors for fMRI

Installinstall.packages('fmrihrf')

Design matrix on a black background, drawn as four horizontal bands (Faces_basis1, Faces_basis2, Houses_basis1, Houses_basis2: canonical and temporal-derivative columns for each condition) over 720 seconds; each event appears as coral stripes, with blue after them that is strongest in the derivative rows, and grey vertical lines mark the starts of runs 2 and 3, where responses to late events are cut off

The design matrix for three simulated runs, built by regressor_design() with HRF_SPMG2; section 04 shows the code.

HRF shapes SPM canonical and derivatives, gamma, Gaussian, half-cosine, boxcar

Basis sets FIR, B-spline, tent, Fourier, Daguerre, libraries over a parameter grid

Regressors Onsets, durations and amplitudes, convolved with the HRF in C++

Timing Sampling frames, run-relative onsets, multi-run design matrices

Built on fmrihrf

Development version

The install command above gives the CRAN release. To install the development version from GitHub:

pak::pak("bbuchsbaum/fmrihrf")

Every figure on this page is drawn by software/showcase/fmrihrf/make-figures.R in the site’s source, and the code shown with each figure is the code that drew it. Generic plotting helpers used by that code (curves(), draw(), draw_basis(), draw_fir(), the palette and theme) are defined in software/showcase/fmrihrf/helpers.R, which the script loads first.