Save a global pattern result and its invariant maps
Source:R/pattern_result.R
save_results.pattern_global_result.RdSave a global pattern result and its invariant maps
Usage
# S3 method for class 'pattern_global_result'
save_results(
x,
dir,
level = c("standard", "minimal", "complete"),
stack = c("none", "auto", "vec"),
fname = "pattern.nii.gz",
include = NULL,
dtype = NULL,
overwrite = FALSE,
quiet = FALSE
)Arguments
- x
A result object (typically a
searchlight_result,regional_mvpa_result, or a named list ofNeuroVol/NeuroVec(and optionallyNeuroSurface/NeuroSurfaceVector) objects.- 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.