runEdgeRNorm | R Documentation |
Takes a DGEobj and adds a normalized DGEList object representing the result of edgeR normalization (calcNormFactors).
runEdgeRNorm( dgeObj, normMethod = "TMM", itemName = "DGEList", includePlot = FALSE, plotLabels = NULL )
dgeObj |
A DGEobj containing counts, design data, and gene annotation. |
normMethod |
One of "TMM", "RLE", "upperquartile", or "none". (Default = "TMM") |
itemName |
optional string represents the name of the new DGEList. It must be unique and not exist in the passed DGEobj (Default = "DGEList") |
includePlot |
Enable returning a "canvasXpress" or "ggplot" bar plot of the norm.factors produced (Default = FALSE). Possible values to pass:
|
plotLabels |
Sample text labels for the plot. Length must equal the number of samples. (Default = NULL; sample number will be displayed) |
A DGEobj with a normalized DGEList added or a list containing the normalized DGEobj and a plot
## Not run: # NOTE: Requires the edgeR package myDGEobj <- readRDS(system.file("exampleObj.RDS", package = "DGEobj")) myDGEobj <- DGEobj::resetDGEobj(myDGEobj) # Default TMM normalization myDGEobj <- runEdgeRNorm(myDGEobj) # With some options and plot output require(canvasXpress) myDGEobj <- DGEobj::resetDGEobj(myDGEobj) obj_plus_plot <- runEdgeRNorm(myDGEobj, normMethod = "upperquartile", includePlot = TRUE) myDGEobj <- obj_plus_plot[[1]] obj_plus_plot[[2]] ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.