customCode
, or can
customize the entire template by providing an R Markdown file to
template
.DESeq2Report(dds, project = "", intgroup, colors = NULL, res = NULL,
nBest = 500, nBestFeatures = 20, customCode = NULL,
outdir = "DESeq2Exploration", output = "DESeq2Exploration",
browse = interactive(), device = "png", template = NULL,
searchURL = "http://www.ncbi.nlm.nih.gov/gene/?term=", theme = NULL,
digits = 2, ...)
colData(x)
to use for grouping. This parameter is passed to functions
such as plotPCA.NULL
, then a
a default set of colors will be used. This argument is passed to
pheatmap.NULL
, then
results will be used on dds
with default parameters.TRUE
the HTML report is opened in your browser once
it's completed.dev
argument).http://www.ncbi.nlm.nih.gov/gene/?term=
is used
which is the recommended option when features are genes. It's only used
when the output is a HTML file.nBestFeatures
. Note that p-values and adjusted p-values won't
be rounded.output_format
to 'knitrBootstrap::bootstrap_document'
or
'pdf_document'
if you want a HTML report styled by knitrBootstrap or
a PDF report respectively. If using knitrBootstrap, we recommend the version
available only via GitHub at https://github.com/jimhester/knitrBootstrap
which has nicer features than the current version available via CRAN.If you modify the YAML front matter of template
, you can use other
values for output_format
.
## Load example data from the pasilla package
library('pasilla')
library('DESeq')
library('DESeq2')
## Create DESeqDataSet object from the pasilla package
data('pasillaGenes')
countData <- counts(pasillaGenes)
colData <- pData(pasillaGenes)[, c('condition', 'type')]
dds <- DESeqDataSetFromMatrix(countData = countData,
colData = colData,
design = ~ condition)
dds <- DESeq(dds)
## The output will be saved in the 'DESeq2Report-example' directory
dir.create('DESeq2Report-example', showWarnings = FALSE, recursive = TRUE)
## Generate the HTML report
report <- DESeq2Report(dds, 'DESeq2-example', c('condition', 'type'),
outdir = 'DESeq2Report-example')
if(interactive()) {
## Browse the report
browseURL(report)
}
## Note that you can run the example using:
example('DESeq2Report', 'regionReport', ask=FALSE)
Run the code above in your browser using DataLab