Writes all assays, colData, rowData, reducedDims, and altExps objects in a SingleCellExperiment to text files. The items in the 'metadata' slot remain stored in list and are saved in an RDS file.

exportSCEtoFlatFile(
  sce,
  outputDir = "./",
  overwrite = TRUE,
  gzipped = TRUE,
  prefix = "SCE"
)

Arguments

sce

SingleCellExperiment object to be exported.

outputDir

Name of the directory to store the exported file(s).

overwrite

Boolean. Whether to overwrite the output files. Default TRUE.

gzipped

Boolean. TRUE if the output files are to be gzip compressed. FALSE otherwise. Default TRUE.

prefix

Prefix of file names.

Value

Generates text files containing data from inSCE.

Examples

data(sce_chcl, package = "scds")
if (FALSE) {
exportSCEtoFlatFile(sce_chcl, "sce_chcl")
}