makeAbundanceHeatmap.RdGenerate a heatmap from a defined assay.
makeAbundanceHeatmap(sce, assayToPlot, doCenter, settings = "report", ...)A SummarizedExperiment object (or a derivative).
Character scalar giving the name of the assay in
sce to plot.
Logical scalar, whether to center the abundance values by row before creating the heatmap.
Character scalar or NULL. Setting this to either
"report" or "export" creates heatmaps with specific
settings used in einprot reports and when exporting the heatmap
to a pdf. Setting it to NULL allows any argument to be passed to
ComplexHeatmap::Heatmap via the ... argument.
If settings is NULL, additional arguments passed to
ComplexHeatmap::Heatmap.
A ComplexHeatmap object.
sce <- readRDS(system.file("extdata", "mq_example", "1356_sce.rds",
package = "einprot"))
hm <- makeAbundanceHeatmap(sce, assayToPlot = "log2_LFQ.intensity",
doCenter = TRUE, settings = "report")
#> 'magick' package is suggested to install to give better rasterization.
#>
#> Set `ht_opt$message = FALSE` to turn off this message.
ComplexHeatmap::draw(hm)
hm <- makeAbundanceHeatmap(sce, assayToPlot = "log2_LFQ.intensity",
doCenter = TRUE, settings = "export")
#> 'magick' package is suggested to install to give better rasterization.
#>
#> Set `ht_opt$message = FALSE` to turn off this message.
ComplexHeatmap::draw(hm)