Writes all results from an rmvpa_analysis_run and a root manifest
describing the workflow configuration and per-entry outputs.
Usage
# S3 method for class 'rmvpa_analysis_run'
save_results(
x,
dir = NULL,
level = c("standard", "minimal", "complete"),
stack = c("none", "auto", "vec"),
fname = "analysis.nii.gz",
include = NULL,
dtype = NULL,
overwrite = FALSE,
quiet = FALSE
)Arguments
- x
An
rmvpa_analysis_run.- dir
Directory to write into. It is created if it does not exist.
- level
One of
"minimal","standard","complete":"minimal": write only map files (no manifest, no tables, no aux)."standard": maps + a manifest describing files (default)."complete": maps + manifest + summary tables and auxiliary objects when available.
- stack
One of
c("none","auto","vec")."none": write one NIfTI file per metric (default)."auto": if all volumes are compatible (same space), stack them along the 4th dimension; otherwise fall back to one file per metric."vec": always stack into a single 4D NIfTI (error if not compatible).
- fname
Base filename when writing a 4D file (default
"searchlight.nii.gz"). Only used whenstack = "vec"or whenstack = "auto"and stacking is possible.- include
Character vector of extras to include; subset of
c("manifest","tables","aux"). Thelevelargument sets sensible defaults butincludecan add to these.- dtype
Optional
data_typepassed to neuroim2 writers (e.g.,"FLOAT","DOUBLE").- overwrite
Logical; if
FALSEand a target file already exists, a numeric suffix is appended instead of overwriting.- quiet
Logical; if
TRUE, suppress progress messages.