create_SCE: Create an SCE object from a sparse matrix

Description Usage Arguments Value Examples

View source: R/objects.R

Description

Create an SCE object from a sparse matrix

Usage

1
create_SCE(x, name = "SCE")

Arguments

x

A sparse matrix consisting of raw expression counts from a single-cell RNA experiment, with genes in the rows and droplets in the columns.

name

An optional character name for the SCE object.

Value

SCE object

Examples

1
2
counts <- matrix(sample(c(0,1,2), 1000, replace=TRUE),  nrow=10, ncol=100)
mb_sce <- create_SCE(x=counts, name="Mouse Brain")

diem documentation built on Nov. 16, 2019, 1:08 a.m.