rsqCalc | R Documentation |
Takes a Log2CPM numeric matrix and MArrayLM fit object from limma's lmFit() and calculates R-squared for each gene fit.
rsqCalc(normMatrix, fit)
normMatrix |
A normalized log2cpm matrix |
fit |
A MArrayLM object from limma's lmFit() |
A vector of R-squared values for each gene fit.
## Not run: # NOTE: Requires the edgeR package dgeObj <- readRDS(system.file("exampleObj.RDS", package = "DGEobj")) log2cpm <- convertCounts(dgeObj$counts, unit = "cpm", log=TRUE, normalize = "tmm") fitObject <- dgeObj$ReplicateGroupDesign_fit rsq <- rsqCalc (log2cpm, fitObject) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.