plot_GO_comparison: Make scatter plots of GO enrichment results

Description Usage Arguments Value

View source: R/plot_GO_comparison.R

Description

This function makes scatter plots of GO enrichment results. Diagonal line denotes equal enrichment. GO terms with higher enrichment in talklr pairs are in green; GO terms with higher enrichment in DEG approach are in orange Axis are drawn to scale. Longer axis means larger values.

Usage

1
2
3
4
5
6
7
8
plot_GO_comparison(
  go_deg,
  go_product,
  interesting,
  fdr_thresh,
  diff_thresh,
  filename
)

Arguments

go_deg

enrichment table for ligand-receptor pairs identified by the DEG approach. Two required columns are GO.ID and FDR

go_product

enrichment table for ligand-receptor pairs identified by talklr

interesting

a character vector of GO terms to be visualized

fdr_thresh

FDR threshold above which a GO is considered significant

diff_thresh

if differences of -log10(FDR) between the two appraoches are larger than this threshold, the GO terms will be labeled.

filename

name of the file where the scatter plot will be saved.

Value

A scatter plot named filename


yuliangwang/talklr documentation built on Feb. 17, 2020, 5:02 a.m.