convolve_afni

convolve_afni(
  data,
  hrf,
  tr,
  n_volumes,
  upsample_factor = NULL,
  afni_path = NULL,
  afni_quiet = FALSE
)

Arguments

data

data to convolve

hrf

hemodynamic response function (hrf) time series

tr

repition time (tr) in seconds

n_volumes

number of volumes or time points

upsample_factor

factor to upsample data for convolution step

Value

Examples

data <- sample(7500:15000, 10, T)/100 hrf <- create_hrf_afni("spmg1", 16)
#> Warning: Setting afni.path to /Users/eep170030/abin
convolve_afni(data, hrf, 1.5, 100, 16)
#> waver -FILE 0.09375 /var/folders/_2/600bt_js7d5dpsn7nbfcpy4x88r01g/T//RtmpcvZh4j/fileca066103c237.1D -input /var/folders/_2/600bt_js7d5dpsn7nbfcpy4x88r01g/T//RtmpcvZh4j/fileca0649c3f8ce.1D -numout 1600
#> logical(0)