View source: R/Dif_expression_helpers.R
DEG_model_results | R Documentation |
Get DESeq2 model results from DESeqDataSet
DEG_model_results(ddsMat_rna, target.contrast, pairs, p.value = 0.05)
ddsMat_rna |
a DESeqDataSet object with results stored as metadata columns. |
target.contrast |
a character vector, default |
pairs |
list of character pairs, the experiment contrasts. Default:
|
p.value |
a numeric, default 0.05 in interval (0,1). Defines adjusted p-value to be used as significance threshold for the result groups. I.e. for exclusive translation group significant subset for p.value = 0.05 means: TE$padj < 0.05 & Ribo$padj < 0.05 & RNA$padj > 0.05. |
a data.table
## Simple example (use ORFik template, then use only RNA-seq)
df <- ORFik.template.experiment()
df.rna <- df[df$libtype == "RNA",]
design(df.rna) # The full experimental design
target.contrast <- design(df.rna)[1] # Default target contrast
#ddsMat_rna <- DEG_model(df.rna, target.contrast)
#pairs <- combn.pairs(unlist(df[, target.contrast]))
#dt <- DEG_model_results(ddsMat_rna, target.contrast, pairs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.