Description Usage Arguments Value Examples
View source: R/internal_functions.R
Convert RNA-Seq data to a numeric matrix
1 |
Y |
RNA-Seq data:
numeric matrix with |
The function returns a matrix.
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.