Description Usage Arguments Value See Also Examples
Given a DESeq result set, as generated with DESeq2::results(), this function adds several additional components to the object. Variables created are numDE, numUp, numDown, allNames, upNames, and downNames, allDE, upDE, downDE, case, control, contrast, and designField. All calculations are performed based on significance thresholds set using the init_cutoffs() function. This function is typically used as a helper function for data aggregation.
1 | enrich_res(res, lfc_filter = FALSE)
|
res |
A DESeq2 result set as generated through DESeq2::results(). Must be a DESeq object of type S4. |
lfc_filter |
Should the enrichment apply LFC filtering or not. Boolean. |
An expanded DESeq result set of type DESeqResMeta containing the following fields: [numDE, numUp, numDown, allNames, upNames, and downNames, allDE, upDE, downDE, case, control, contrast, and designField]
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
#Enrich a result set. This will make several new data points available.
res.day1 <- results(dds, contrast=c("Condition_Time", "day1_disease", "day1_control"))
enriched_result <- enrich_res(res.day1)
#Print number of differentially expressed genes.
print(enriched_result@numDE)
#Get the names of all up-regulated differentially expressed genes.
upreg_de_genes <- enriched_result@upNames
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.