plot_deg_venn: Generate a venn diagram showing overlap between DE genes.

View source: R/viz_related.R

plot_deg_vennR Documentation

Generate a venn diagram showing overlap between DE genes.

Description

Generate a venn diagram showing overlap between DE genes.

Usage

plot_deg_venn(x, sample_comparisons, regulation = "up", fill_color = NULL, ...)

Arguments

x

an abject of class parcutils. This is an output of the function run_deseq_analysis().

sample_comparisons

a character vector of length 2 denoting DE comparisons for which venn diagram to plot.

regulation

a character string from up, down, both. If up or down respective gene sets from the sample_comparisons will be used for venn diagram. If both, both up and down will be from each sample_comparisons will be used for venn diagram.

fill_color

an argument pass to the function ggvenn::ggvenn.

...

other arguments pass to the function ggvenn::ggvenn

Value

ggplot

Examples

x <- parcutils:::.get_parcutils_object_example()
sample_comparisons <- c("treatment1_VS_control","treatment2_VS_control")
plot_deg_venn(x = x, sample_comparisons = sample_comparisons , regulation = "up")
plot_deg_venn(x = x, sample_comparisons = sample_comparisons , regulation = "down")
plot_deg_venn(x = x, sample_comparisons = sample_comparisons , regulation = "both")

cparsania/parcutils documentation built on Oct. 27, 2024, 4:55 a.m.