plotGeneHeatmap | R Documentation |
Heatmap of genes and assays
plotGeneHeatmap(
x,
coef,
genes,
assays = assayNames(x),
zmax = NULL,
transpose = FALSE
)
## S4 method for signature 'dreamletResult'
plotGeneHeatmap(
x,
coef,
genes,
assays = assayNames(x),
zmax = NULL,
transpose = FALSE
)
x |
A |
coef |
column number or column name specifying which coefficient or contrast of the linear model is of interest. |
genes |
array of genes to include in plot |
assays |
array of assay names to include in analysis. Defaults to |
zmax |
maximum z.std value |
transpose |
(default: FALSE) Use 'coord_flip()' to flip axies |
Heatmap plot for specified genes and assays
Heatmap plot for specified genes and assays
library(muscat)
library(SingleCellExperiment)
data(example_sce)
# create pseudobulk for each sample and cell cluster
pb <- aggregateToPseudoBulk(example_sce,
assay = "counts",
cluster_id = "cluster_id",
sample_id = "sample_id",
verbose = FALSE
)
# voom-style normalization
res.proc <- processAssays(pb, ~group_id)
# Differential expression analysis within each assay,
# evaluated on the voom normalized data
res.dl <- dreamlet(res.proc, ~group_id)
# Heatmap for specified subset of genes
plotGeneHeatmap(res.dl, coef = "group_idstim", genes = rownames(pb)[1:15])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.