deseqresult2df: Generate a table from the 'DESeq2' results

Description Usage Arguments Value Examples

View source: R/GeneTonic-extras.R

Description

Generate a tidy table with the results of DESeq2

Usage

1
deseqresult2df(res_de, FDR = NULL)

Arguments

res_de

A DESeqResults object.

FDR

Numeric value, specifying the significance level for thresholding adjusted p-values. Defaults to NULL, which would return the full set of results without performing any subsetting based on FDR.

Value

A tidy data.frame with the results from differential expression, sorted by adjusted p-value. If FDR is specified, the table contains only genes with adjusted p-value smaller than the value.

Examples

1
2
3
4
data(res_de_macrophage, package = "GeneTonic")
head(res_macrophage_IFNg_vs_naive)
res_df <- deseqresult2df(res_macrophage_IFNg_vs_naive)
head(res_df)

GeneTonic documentation built on Nov. 8, 2020, 5:27 p.m.