| scConvGDS {SCArray} | R Documentation |
Creates a single-cell GDS file from an R object.
scConvGDS(obj, outfn, save.sp=TRUE, type=c("float32", "float64", "int32"),
compress="LZMA_RA", clean=TRUE, verbose=TRUE)
obj |
a dense/sparse matrix, DelayedMatrix, SummarizedExperiment or SingleCellExperiment |
outfn |
the output file name in GDS format |
save.sp |
if |
type |
numeric data type in the output file |
compress |
the compression method, see |
clean |
TRUE |
verbose |
if |
Return the path of the output file.
Xiuwen Zheng
# load a SingleCellExperiment object
fn <- system.file("extdata", "LaMannoBrainSub.rds", package="SCArray")
sce <- readRDS(fn)
scConvGDS(sce, "test.gds")
# remove the temporary output file
unlink("test.gds")