Converts edgeR topTags results to MetaVolcanoR format

prepare_edger(edger_result, gene_column = NULL)

Arguments

edger_result

A data.frame from edgeR::topTags()

gene_column

Column name containing gene identifiers (default: uses rownames)

Value

A data.frame with columns: Symbol, Log2FC, pvalue, CI.L, CI.R

Examples

if (FALSE) { # \dontrun{
library(edgeR)
y <- DGEList(counts = counts, group = group)
y <- calcNormFactors(y)
design <- model.matrix(~group)
y <- estimateDisp(y, design)
fit <- glmFit(y, design)
lrt <- glmLRT(fit)
top <- topTags(lrt, n = Inf)

# Prepare for MetaVolcanoR  
deg_table <- prepare_edger(top$table)
} # }