term_gene_labels: Obtain the label information for enrichment barplot

Description Usage Arguments Value

Description

This function joins the enrichment term with the top differentially expressed genes in a single string, that will be shown in the enrichment barplot labels.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
term_gene_labels(
  xx,
  sum_gsea,
  organism_db,
  show_gene_labels = 3,
  markers = NULL,
  category_col = "category",
  cluster_col = "cluster",
  term_col = "termID"
)

Arguments

xx

raw dataframe from GSEA

sum_gsea

a dataframe generated from summarise_gsea

markers

a dataframe generated from find_DE_genes. If NULL, the genes will be ordered alphabetically.

Value

a character vector of labels


Yutong441/TBdev documentation built on Dec. 18, 2021, 8:22 p.m.