Learn R Programming

diem (version 1.0)

create_SCE: Create an SCE object from a sparse matrix

Description

Create an SCE object from a sparse matrix

Usage

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

Run this code
# NOT RUN {
counts <- matrix(sample(c(0,1,2), 1000, replace=TRUE),  nrow=10, ncol=100)
mb_sce <- create_SCE(x=counts, name="Mouse Brain")
# }

Run the code above in your browser using DataLab