
Save VISTA tabular outputs to disk
save_vista_data.RdExports selected data components from a VISTA object to CSV/TSV/RDS/XLSX.
Usage
save_vista_data(
x,
what = c("comparison", "comparisons", "norm_counts", "sample_info", "row_data",
"deg_summary", "cutoffs"),
file,
sample_comparison = NULL,
format = NULL,
include_rownames = TRUE
)Arguments
- x
A
VISTAobject.- what
Character vector specifying which object(s) to export. Supported values are
"comparison","comparisons","norm_counts","sample_info","row_data","deg_summary", and"cutoffs".- file
Output file path.
- sample_comparison
Optional comparison name used when
whatincludes"comparison". Defaults to the first comparison incomparisons(x).- format
Output format. One of
"csv","tsv","rds","xlsx". IfNULL, inferred fromfileextension.- include_rownames
Logical; include meaningful row identifiers (e.g., gene IDs or sample names) as explicit columns where applicable.
Examples
v <- example_vista()
save_vista_data(v, what = "comparison", file = tempfile(fileext = ".csv"), format = "csv")