add_tech_rep | R Documentation |
Add counts across columns of a count matrix corresponding to technical replicates.
add_tech_rep(se, group)
se |
SummarizedExperiment object |
group |
Character string vector, or factor, that indicates the grouping of technical replicates. |
A SummarizedExperiment object, where technical replicates have been added in the count matrix.
Robert Castelo
library(SummarizedExperiment)
cnt <- matrix(1, nrow=3, ncol=9,
dimnames=list(paste0("g", 1:3), paste0("s", 1:9)))
cdata <- data.frame(group=rep(LETTERS[1:3], each=3), row.names=colnames(cnt))
se <- SummarizedExperiment(assays=list(counts=cnt), colData=cdata)
dim(se)
assays(se)$counts
se <- add_tech_rep(se, se$group)
dim(se)
assays(se)$counts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.