scGOBarPlot: scGOBarPlot visualization

View source: R/scGOBarPlot.R

scGOBarPlotR Documentation

scGOBarPlot visualization

Description

GO BarPlot visualization for each cluster

Usage

scGOBarPlot(
  object = NULL,
  key = NULL,
  cluster = NULL,
  direction = "up",
  ont = "BP",
  top_n = 20,
  extra = NULL
)

Arguments

object

Seurat object

key

The 'scGO' results that stored in object@misc$key

cluster

Cluster to presentation

direction

Regulation direction to use, only 'up' or 'down'

ont

Ontology to use, only 'BP', 'CC', or 'MF'

top_n

Only top_n entries to plot

extra

Extra slot used to fetch GOs

Value

A ggplot object

Examples

scGOBarPlot(object = H3N2_small,
  key = "Infected_vs_Bystander.GO",
  ont = "BP",
  top_n = 6,
  direction = "up",
  cluster = "0"
)


ncrna/Yeskit documentation built on Nov. 4, 2024, 10:32 p.m.