res2df | R Documentation |
Work in PROGRESS. Convert a general DESeq2 result object into a data frame.
res2df(
res,
map_gene_IDs = F,
histone_PTMs = F,
pval_cutoff = 0.05,
log2FC_cutoff = 0
)
res |
A DESeq2 object created with |
map_gene_IDs |
Logical. Do you want to convert ensembl gene IDs to gene names? |
histone_PTMs |
Logical. Are you analysing histone PTMs? Used to name the first column |
pval_cutoff |
Numeric threshold to consider observations statistically significant. Default |
log2FC_cutoff |
Numeric threshold to consider observations moving in a given direction (UP or DOWN). Default |
A tibble data frame
# Somewhere in your DESeq2 analysis
resLFC <- lfcShrink(dds, coef = "condition_treated_vs_untreated", type = "apeglm")
res_as_df <- res2df(resLFC)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.