Description Usage Arguments Value
View source: R/plot_GO_comparison.R
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.
1 2 3 4 5 6 7 8 | plot_GO_comparison(
go_deg,
go_product,
interesting,
fdr_thresh,
diff_thresh,
filename
)
|
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. |
A scatter plot named filename
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.