obtainMarkersWC: obtainMarkersWC

View source: R/geom_sc_wordcloud.R

obtainMarkersWCR Documentation

obtainMarkersWC

Description

obtain wordclouds of cluster markers identified in Seurat

Usage

obtainMarkersWC(
  markers,
  cols,
  wcArgs,
  eps = 1e-10,
  sortBy = "avg_log2FC",
  decreasing = TRUE,
  scaleNumber = 10,
  wcScale = 5,
  geneNum = 50,
  withggfx = NULL,
  ggfxParams = list()
)

Arguments

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

Details

Using the results of marker gene identification such as 'FindAllMarkers' from Seurat, Recursively summarize the textual information of markers and output the wordclouds.

Value

list of ggplot containing wordclouds

Examples

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)

noriakis/wcGeneSummary documentation built on April 22, 2024, 7:12 a.m.