View source: R/geom_sc_wordcloud.R
obtainMarkersWCScran | R Documentation |
Make gene wordcloud from scran::findMarkers() results
obtainMarkersWCScran(
markers,
cols,
wcArgs,
eps = 1e-10,
sortBy = "summary.logFC",
decreasing = TRUE,
scaleNumber = 10,
wcScale = 5,
geneNum = 50,
withggfx = NULL,
ggfxParams = list()
)
markers |
marker list |
cols |
list of colors |
wcArgs |
arguments for ggwordcloud |
eps |
when taking log of p-values, this value will be added |
sortBy |
default to summary.logFC, "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 'findMarkers' from scran, Recursively summarize the textual information of markers and output the wordclouds.
list of ggplot containing wordclouds
df <- data.frame(
p.value=c(0.01, 0.01),gene=c("PNKP","DDX41")
)
row.names(df) <- df$gene
markers <- list("1"=df)
colors <- list("1"="blue")
obtainMarkersWCScran(markers,
cols=colors,
wcArgs=list(),
sortBy="p.value",
geneNum=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.