Skip to contents

This function runs the 3dDeconvolve command for the specified afni_lm_spec object. It outputs the results to a specified directory and can either execute the command or only output the shell '3dDeconvolve.sh' script.

Usage

# S3 method for afni_lm_spec
run(x, outdir, execute = TRUE, execfun = system, prepend = "", ...)

Arguments

x

An afni_lm_spec object containing the model, dataset, and options

outdir

The output folder

execute

Whether to execute the command or only output the shell '3dDeconvolve.sh' script (default is TRUE)

execfun

Function used to execute external system command (default is system)

prepend

Prepend string to command (default is an empty string)

...

Additional arguments passed to execfun

Value

NULL. The function is used for its side effects, such as writing output files.

Examples

# Assuming you have created an afni_lm_spec object called alm
run.afni_lm_spec(alm, outdir="results")
#> Error in run.afni_lm_spec(alm, outdir = "results"): could not find function "run.afni_lm_spec"