plotVolcano | R Documentation |
Volcano plot for each cell type
plotVolcano(
x,
coef,
nGenes = 5,
size = 12,
minp = 9.99999999999997e-311,
cutoff = 0.05,
ncol = 3,
...
)
## S4 method for signature 'list'
plotVolcano(
x,
coef,
nGenes = 5,
size = 12,
minp = 9.99999999999997e-311,
cutoff = 0.05,
ncol = 3,
assays = names(x),
...
)
## S4 method for signature 'MArrayLM'
plotVolcano(
x,
coef,
nGenes = 5,
size = 12,
minp = 9.99999999999997e-311,
cutoff = 0.05,
ncol = 3,
...
)
## S4 method for signature 'dreamlet_mash_result'
plotVolcano(
x,
coef,
nGenes = 5,
size = 12,
minp = 1e-16,
cutoff = 0.05,
ncol = 3,
assays = colnames(x$logFC.original),
...
)
x |
result from |
coef |
coefficient to test with |
nGenes |
number of genes to highlight in each volcano plot |
size |
text size |
minp |
minimum p-value to show on the y-axis |
cutoff |
adj.P.Val cutoff to distinguish significant from non-significant genes |
ncol |
number of columns in the plot |
... |
arguments passed to |
assays |
which assays to plot |
Volcano plot for each cell type
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)
# show coefficients estimated for each cell type
coefNames(res.dl)
# volcano plot for each cell type
plotVolcano(res.dl, coef = "group_idstim")
# volcano plot for first two cell types
plotVolcano(res.dl[1:2], coef = "group_idstim")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.