| scOpen {SCArray} | R Documentation |
Opens a single-cell GDS file.
scOpen(gdsfn, readonly=TRUE, allow.duplicate=TRUE)
gdsfn |
the input file name |
readonly |
whether read-only or not |
allow.duplicate |
if |
Return an object of class SCArrayFileClass inherited from
gds.class.
Xiuwen Zheng
# a GDS file for SingleCellExperiment
fn <- system.file("extdata", "LaMannoBrainData.gds", package="SCArray")
# open the GDS file
(f <- scOpen(fn))
# read a GDS file
cell.id <- read.gdsn(index.gdsn(f, "feature.id"))
samp.id <- read.gdsn(index.gdsn(f, "sample.id"))
# get a DelayedArray object
(cnt <- scArray(f, "counts"))
scClose(f)