save_data: Save data

View source: R/save_data.R

save_dataR Documentation

Save data

Description

Save a variety of single-cell data formats.

Usage

save_data(
  obj,
  filetype = c("h5", "h5seurat", "h5ad", "rda", "rds", "anndata"),
  save_path = file.path(tempdir(), paste("scKirby_output", filetype, sep = ".")),
  quicksave_hdf5 = TRUE,
  overwrite = TRUE,
  verbose = TRUE
)

Arguments

obj

A single-cell data object, or a path to saved single-cell data.

filetype

The file format to write the object as.

save_path

Path to save the converted obj.

quicksave_hdf5

When filetype="h5", quickResaveHDF5SummarizedExperiment will be used to save the data.

overwrite

If a file of the same name exists, overwrite it.

verbose

Print messages.

Examples

obj <- example_obj("cds")
filepath <- save_data(obj)

bschilder/scKirby documentation built on April 22, 2024, 12:13 a.m.