View source: R/geom_sc_wordcloud.R
obtainMarkersWC | R Documentation |
obtain wordclouds of cluster markers identified in Seurat
obtainMarkersWC(
markers,
cols,
wcArgs,
eps = 1e-10,
sortBy = "avg_log2FC",
decreasing = TRUE,
scaleNumber = 10,
wcScale = 5,
geneNum = 50,
withggfx = NULL,
ggfxParams = list()
)
markers |
marker data frame |
cols |
list of colors |
wcArgs |
arguments for ggwordcloud |
eps |
when taking log of p-values, this value will be added |
sortBy |
default to avg_log2FC, "log10p" can be specified. |
decreasing |
sort by decreasing order or not |
scaleNumber |
scale the frequency by this number |
wcScale |
scale for scale_size_area() |
geneNum |
number of genes to be included in wordclouds |
withggfx |
applying ggfx filters |
ggfxParams |
parameter list for ggfx |
Using the results of marker gene identification such as 'FindAllMarkers' from Seurat, Recursively summarize the textual information of markers and output the wordclouds.
list of ggplot containing wordclouds
markers <- data.frame(p_val=c(0.01, 0.01),gene=c("PNKP","DDX41"),cluster=c("1","1"))
colors <- list("1"="red")
obtainMarkersWC(markers, sortBy="p_val", cols=colors, wcArgs=list(), geneNum=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.