Description Usage Arguments Value Author(s)
View source: R/plotMarkerDiffExp.R
This function will first reads the result saved in
metadata
slot, named by "findMarker"
and generated by
findMarkerDiffExp
. Then it do the filtering on the statistics
based on the input parameters and get unique genes to plot. We choose the
genes that are identified as up-regulated only. As for the genes identified
as up-regulated for multiple clusters, we only keep the belonging towards the
one they have the highest Log2FC value.
In the heatmap, there will always be a cell annotation for the cluster
labeling used when finding the markers, and a feature annotation for which
cluster each gene belongs to. And by default we split the heatmap by these
two annotations. Additional legends can be added and the splitting can be
canceled.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | plotMarkerDiffExp(
inSCE,
useAssay = "logcounts",
orderBy = "size",
log2fcThreshold = 1,
fdrThreshold = 0.05,
topN = 10,
decreasing = TRUE,
rowDataName = NULL,
colDataName = NULL,
featureAnnotations = NULL,
cellAnnotations = NULL,
featureAnnotationColor = NULL,
cellAnnotationColor = NULL,
colSplitBy = ifelse(is.null(orderBy), NULL, colnames(inSCE@metadata$findMarker)[5]),
rowSplitBy = "marker",
...
)
|
inSCE |
SingleCellExperiment inherited object. |
useAssay |
character. A string specifying which assay to use for the
expression values. Default |
orderBy |
The ordering method of the clusters on the splitted heatmap.
Can be chosen from |
log2fcThreshold |
Only use DEGs with the absolute values of log2FC
larger than this value. Default |
fdrThreshold |
Only use DEGs with FDR value smaller than this value.
Default |
topN |
An integer. Only to plot this number of top markers for each
cluster in maximum, in terms of log2FC value. Use |
decreasing |
Order the cluster decreasingly. Default |
rowDataName |
character. The column name(s) in |
colDataName |
character. The column name(s) in |
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 |
colSplitBy |
character vector. Do semi-heatmap based on the grouping of
this(these) annotation(s). Should exist in either |
rowSplitBy |
character vector. Do semi-heatmap based on the grouping of
this(these) annotation(s). Should exist in either |
... |
Other arguments passed to |
A Heatmap
object
Yichen Wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.