plot_top_TF_scExp: Barplot of top TFs from ChEA3 TF enrichment analysis

View source: R/plotting_functions.R

plot_top_TF_scExpR Documentation

Barplot of top TFs from ChEA3 TF enrichment analysis

Description

Barplot of top TFs from ChEA3 TF enrichment analysis

Usage

plot_top_TF_scExp(
  scExp,
  group = unique(scExp$cell_cluster)[1],
  set = c("Differential", "Enriched", "Depleted")[1],
  type = c("Score", "nTargets", "nTargets_over_TF", "nTargets_over_genes")[1],
  n_top = 25
)

Arguments

scExp

A SingleCellExperiment

group

A character string specifying the differential group to display the top TFs

set

A character string specifying the set of genes in which the TF were enriched, either 'Differential', 'Enriched' or 'Depleted'.

type

A character string specifying the Y axis of the plot, either the number of differential targets or the ChEA3 integrated mean score. E.g. either "Score", "nTargets", "nTargets_over_TF" for the number of target genes over the total number of genes targeted by the TF or "nTargets_over_genes" for the number of target genes over the number of genes in the gene set.

n_top

An integer specifying the number of top TF to display

Value

A bar plot of top TFs from ChEA3 TF enrichment analysis

Examples

data("scExp")

plot_top_TF_scExp(
 scExp,
 group = "C1",
  set = "Differential",
   type = "Score",
    n_top = 10)
    
plot_top_TF_scExp(
 scExp,
 group = "C1",
  set = "Enriched",
   type = "nTargets_over_genes",
    n_top = 20)
    

vallotlab/ChromSCape documentation built on Oct. 15, 2023, 1:47 p.m.