Description Usage Arguments Value Author(s) Examples
View source: R/plotCorrelationHeat.R
plotCorrelationHeat
uses the specificity scores returned by sortGenes
to
correlate cell clusters with each other and plot a heatmap.
1 2 3 4 5 6 7 8 9 | plotCorrelationHeat(
gs,
markers = NULL,
corMethod = "pearson",
colors = colorRampPalette(rev(c("orangered4", "orangered", "gray90", "dodgerblue",
"dodgerblue4")))(n = 100),
outs = FALSE,
displayNumbers = TRUE
)
|
gs |
The output of |
markers |
Restrict correlation analysis to those genes. A character vector. |
corMethod |
Correlation method, will passed to |
colors |
Color palette for drawing the heatmap |
outs |
Should the |
displayNumbers |
Should correlation values be displayed on the heatmap? TRUE by default. |
If outs
is TRUE, the pheatmap object and the correlation matrix will
be returned.
Mahmoud M Ibrahim <mmibrahim@pm.me>
1 2 3 4 5 6 7 8 9 10 | data(kidneyTabulaMuris)
gs = sortGenes(kidneyTabulaMuris$exp, kidneyTabulaMuris$cellType)
plotCorrelationHeat(gs)
#user only marker genes and spearman correlation
mm = getMarkers(gs, quant = 0.95)
plotCorrelationHeat(gs, markers = mm$markers, corMethod = "spearman")
#do not write correlation values, useful if there are many cell clusters
plotCorrelationHeat(gs, markers = mm$markers, corMethod = "spearman", displayNumbers = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.