interactivate.DESeqDataSet.Rd
Visualize DESeq2 result in an interactive Shiny app
# S3 method for DESeqDataSet
interactivate(x, res = DESeq2::results(x), seed = 123, ...)
A DESeqDataSet
class object. It is normally returned by DESeq
.
The object returned by results
.
Random seed. It is mainly set for the random colors of annotations.
Other arguments.
if(interactive()) {
require(airway)
data(airway)
se = airway
require(DESeq2)
dds = DESeqDataSet(se, design = ~ dex)
keep = rowSums(counts(dds)) >= 10
dds = dds[keep, ]
dds$dex = relevel(dds$dex, ref = "untrt")
dds = DESeq(dds)
interactivate(dds)
}