intern.matrix: Internal function

Description Usage Arguments Value Examples

View source: R/internal_functions.R

Description

Convert RNA-Seq data to a numeric matrix

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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))

rauschenberger/globalSeq documentation built on May 19, 2020, 4:09 a.m.