SPM12 fMRI First Level Specification
build_spm12_first_level_spec(
scans = NULL,
outdir = NULL,
units = c("scans", "secs"),
slice_timed = TRUE,
nslices = NULL,
ref_slice = NULL,
tr,
condition_mat = NULL,
condition_list = NULL,
regressor_mat = NULL,
regressor_list = NULL,
hpf = 128,
time_deriv = FALSE,
disp_deriv = FALSE,
interactions = FALSE,
global_norm = c("None", "Scaling"),
mthresh = 0.8,
mask = NULL,
correlation = c("AR(1)", "none", "FAST"),
n_time_points = NULL,
verbose = TRUE,
overwrite = TRUE,
...
)spm12_first_level_spec(
...,
outdir = NULL,
add_spm_dir = TRUE,
spmdir = spm_dir(verbose = verbose, install_dir = install_dir),
clean = TRUE,
verbose = TRUE,
overwrite = TRUE,
install_dir = NULL
)
images to run
output directory for results
The onsets of events or blocks can be specified in either scans or seconds.
Were the image slice-time corrected
If the data were slice-time corrected, the number of slices of the image
If the data were slice-time corrected, the reference slice
The repetition time, in seconds
multiple condition mat/txt file
List of conditions:
see spm12_condition
. This should be a list
(or a list of lists) which have the items:
name
, onset
, duration
, time_mod_order
,
param_mod
, orth
. name
does not need to be specified
if it is a named list of lists.
multiple regressor mat/txt file
List of regressors:
see spm12_regressor
. This should be a list
(or a list of lists) which have the items:
name
, value
, and n_time_points
.
name
does not need to be specified
if it is a named list of lists.
High pass filter, in seconds.
time derivative. The time derivative allows the peak response to vary by plus or minus a second.
dispersion derivative, allows the width of the response to vary.
Model interactions, Generalized convolution of inputs with basis set.
Global intensity normalisation
Masking threshold, defined as proportion of globals.
Specify an image for explicitly masking the analysis.
Serial correlations in fMRI time series
Number of time points
Print diagnostic messages
If a SPM.mat file exists in the outdir, should the file be removed?
Arguments passed to run_spm12_script
Add SPM12 directory from this package
SPM dir to add, will use package default directory
Remove scripts from temporary directory after running
directory to download SPM12
A list of objects, including an spm object and output files.