Description Usage Arguments Details Value References Examples
This function check the median ratio normalization used by DESeq2 and similarly by edgeR to visualy check whether the median is the best size factor to represent depth.
1 | degCheckFactors(counts, each = FALSE)
|
counts |
Matrix with counts for each samples and each gene. row number should be the same length than pvalues vector. |
each |
Plot each sample separately. |
This function will plot the gene ratios for each sample. To calculate the ratios, it follows the simliar logic than DESeq2/edgeR uses, where the expression of each gene is divided by the mean expression of that gene. The distribution of the ratios should approximate to a normal shape and the factors should be similar to the median of distributions. If some samples show different distribution, the factor may be bias due to some biological or technical factor.
ggplot2 object
Code to calculate size factors comes from
DESeq2::estimateSizeFactorsForMatrix()
.
1 2 3 | data(humanGender)
library(SummarizedExperiment)
degCheckFactors(assays(humanGender)[[1]][, 1:10])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.