intern.matrix {globalSeq}R Documentation

Internal function

Description

Convert RNA-Seq data to a numeric matrix

Usage

intern.matrix(Y)

Arguments

Y

RNA-Seq data: numeric matrix with q rows (genes) and n columns (samples); or a SummarizedExperiment object

Value

The function returns a matrix.

Examples

# simulate RNA-Seq data
Y <- matrix(rnbinom(30,mu=10,size=1/0.2),nrow=10,ncol=3)
rownames(Y) <- paste("gene",1:nrow(Y),sep="")
colnames(Y) <- paste("cell",1:ncol(Y),sep="")

# create data structure
# Z <- SummarizedExperiment::SummarizedExperiment(
#      S4Vectors::SimpleList(counts=Y))

# conversion to matrix
# all.equal(Y,intern.matrix(Z))


[Package globalSeq version 1.12.0 Index]