proccess_and_plot_DEET_enrich {DEET}R Documentation

proccess_and_plot_DEET_enrich

Description

Generates barplots and dotplots based on the output of the DEET_enrich function.

Usage

proccess_and_plot_DEET_enrich(
  DEET_output,
  colour_barplot = "Source",
  width = 8,
  text_angle = 0,
  horizontal = F,
  topn = 5,
  ol_size = 1,
  exclude_domain = "",
  cluster_order = NULL,
  colors = "Set2"
)

Arguments

DEET_output

Direct output of the DEET_enrich function. A list with all of the same names as DEET_output.

colour_barplot

Pick dotplot or barplot colours. It can be NULL, in which all bars are the same or it can be a (case sensitive) column within the metadata. Defaults to "source".

width

The number of inches in the barplot or dotplot.

text_angle

The angle of the enriched studies.

horizontal

Whether the output barplot is vertical or horizontal

topn

the top number of studies (by p-value) to be plotted.

ol_size

the minimum number of overlapping genes (or paths) in an enriched study.

exclude_domain

Exclude studies enriched based on DEGs, Paths, or TF if the user happened to aggregate the results into a single DF, generally unused.

cluster_order

Factor to group studies based on the researchers custom annotation.

colors

Type of color pallete to input into 'scale_fill_brewer' of ggplot.

Value

Named list where each element is a ggplot object plotting the output of the enrichment tests within DEET. The final element is the output of ActivePathways (in DEET) that is directly compatible with the DEET_enrichment_barplot function.

Author(s)

Dustin Sokolowski, Hauyun Hou PhD

Examples


data("example_DEET_enrich_input")
data("DEET_example_data")
DEET_out <- DEET_enrich(example_DEET_enrich_input, DEET_dataset = DEET_example_data)
plotting_example <- proccess_and_plot_DEET_enrich(DEET_out, text_angle = 45,
horizontal = TRUE, topn=4)



[Package DEET version 1.0.12 Index]