Description Usage Arguments Value Author(s) Examples
View source: R/plotDEAnalysis.R
A differential expression analysis function has to be run in advance so that
information is stored in the metadata of the input SCE object. This function
wraps plotSCEHeatmap.
A feature annotation basing on the log2FC level called "regulation"
will be automatically added. A cell annotation basing on the condition
selection while running the analysis called "condition"
, and the
annotations used from colData(inSCE)
while setting the condition and
covariates will also be added.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | plotDEGHeatmap(
inSCE,
useResult,
doLog = FALSE,
onlyPos = FALSE,
log2fcThreshold = 0.25,
fdrThreshold = 0.05,
useAssay = NULL,
featureAnnotations = NULL,
cellAnnotations = NULL,
featureAnnotationColor = NULL,
cellAnnotationColor = NULL,
rowDataName = NULL,
colDataName = NULL,
colSplitBy = "condition",
rowSplitBy = "regulation",
title = paste0("MAST Result: ", useResult),
...
)
|
inSCE |
SingleCellExperiment inherited object.
|
useResult |
character. A string specifying the |
doLog |
Logical scalar. Whether to do |
onlyPos |
logical. Whether to only plot DEG with positive log2_FC
value. Default |
log2fcThreshold |
numeric. Only plot DEGs with the absolute values of
log2FC larger than this value. Default |
fdrThreshold |
numeric. Only plot DEGs with FDR value smaller than this
value. Default |
useAssay |
character. A string specifying an assay of expression value
to plot. By default the assay used for |
featureAnnotations |
|
cellAnnotations |
|
featureAnnotationColor |
A named list. Customized color settings for
feature labeling. Should match the entries in the |
cellAnnotationColor |
A named list. Customized color settings for
cell labeling. Should match the entries in the |
rowDataName |
character. The column name(s) in |
colDataName |
character. The column name(s) in |
colSplitBy |
character. Do semi-heatmap based on the grouping of
this(these) annotation(s). Should exist in either |
rowSplitBy |
character. Do semi-heatmap based on the grouping of
this(these) annotation(s). Should exist in either |
title |
character. Main title of the heatmap. Default
|
... |
Other arguments passed to |
A ComplexHeatmap::Heatmap
object
Yichen Wang
1 2 3 4 5 6 7 8 9 10 | data(scExample, package = "singleCellTK")
## Not run:
sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'")
sce <- runDEAnalysis(inSCE = sce, method = "DESeq2",
groupName1 = "Sample1", groupName2 = "Sample2",
index1 = 1:100, index2 = 101:190,
analysisName = "DESeq2")
plotDEGHeatmap(sce, useResult = "DESeq2", fdrThreshold = 1, doLog = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.