Performs SPM12 slice timing correction on images
spm12_slice_timing(
filename,
time_points = NULL,
nslices,
tr,
ta = tr - tr/nslices,
slice_order = 1:nslices,
ref_slice,
prefix = "a",
add_spm_dir = TRUE,
spmdir = spm_dir(verbose = verbose, install_dir = install_dir),
clean = TRUE,
verbose = TRUE,
outdir = tempdir(),
retimg = FALSE,
reorient = FALSE,
install_dir = NULL,
...
)build_spm12_slice_timing(
filename,
time_points = NULL,
nslices,
tr,
ta = tr - tr/nslices,
slice_order = 1:nslices,
ref_slice,
prefix = "a",
add_spm_dir = TRUE,
spmdir = spm_dir(verbose = verbose, install_dir = install_dir),
clean = TRUE,
verbose = TRUE,
outdir = tempdir(),
install_dir = NULL,
...
)
Files to be slice-time corrected
A vector of time points to run
slice-time correction.
If filename
is a
4D file, then will do all the time points. Otherwise,
filename
must be a character
vector of 3D files or a list of 3D nifti objects.
Number of slices in the images
Repetition time (in seconds)
Time between the first and the last slice within one scan
Order slices were taken (if not specified, assumed ascending), bottom slice = 1
Reference slice
Prefix to append to front of image filename
Add SPM12 directory from this package
SPM dir to add, will use package default directory
Remove scripts from temporary directory after running
Print diagnostic messages
Directory to copy results
(logical) return image of class nifti
(logical) If retimg, should file be
reoriented when read in?
Passed to readNIfTI
.
directory to download SPM12
Arguments passed to run_spm12_script
List of results, the SPM job, the script and the outfile