estimateDEGs | R Documentation |
Given a glmFit model, performs log ratio tests using edgeR function glmLRT and returns the genes that are differentially expressed between the reference and perturbation conditions. log ratios are expressed as log(perturbation/reference)
estimateDEGs(fit, reference, perturbation, p.value = 1, lfc = 0)
fit |
edgeR glmFit |
reference |
condition being considered as the reference for differential analysis. It should corresponds to a condition name, e.g. the string before the underscore and replicate number in your sample names. |
perturbation |
condition we compared to the reference for differential analysis. It should corresponds to a condition name, e.g. the string before the underscore and replicate number in your sample names. |
p.value |
numeric cutoff value for adjusted p-values. Only tags with adjusted p-values equal or lower than specified are returned |
lfc |
minimal absolute log fold change required for a gene to be considered as differentially expressed. |
topTags object, which table element contains DEGs dataframe.
data("abiotic_stresses")
tcc_object <- DIANE::normalize(abiotic_stresses$raw_counts,
abiotic_stresses$conditions, iteration = FALSE)
threshold = 10*length(abiotic_stresses$conditions)
tcc_object <- DIANE::filter_low_counts(tcc_object, threshold)
fit <- DIANE::estimateDispersion(tcc = tcc_object,
conditions = abiotic_stresses$conditions)
topTags <- DIANE::estimateDEGs(fit, reference = "C", perturbation = "H", p.value = 0.01)
DEGs <- topTags$table
head(DEGs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.