scExperiment: Get a SummarizedExperiment

Description Usage Arguments Value Author(s) See Also Examples

View source: R/scarray_main.r

Description

Gets an instance of SingleCellExperiment or SummarizedExperiment.

Usage

1
scExperiment(gdsfile, sce=TRUE, use.names=TRUE, load.row=TRUE, load.col=TRUE)

Arguments

gdsfile

character for a file name, or a single-cell GDS object with class SCArrayFileClass

sce

if TRUE, return an instance of SingleCellExperiment, otherwise an instance of SummarizedExperiment

use.names

if TRUE, load dimnames from 'feature.id' and 'sample.id'

load.row

TRUE for loading rowData from the gds node "feature.data" in gdsfile

load.col

TRUE for loading colData from the gds node "sample.data" in gdsfile

Value

Return an instance of SingleCellExperiment or SummarizedExperiment.

Author(s)

Xiuwen Zheng

See Also

scOpen, scClose

Examples

1
2
3
4
5
# a GDS file for SingleCellExperiment
fn <- system.file("extdata", "LaMannoBrainData.gds", package="SCArray")

sce <- scExperiment(fn)
sce

zhengxwen/SCArray documentation built on Jan. 1, 2021, 1:54 p.m.