plotEnrichmentBars: Barplot of Feature Set Enrichment Analysis results

Description Usage Arguments Value Examples

View source: R/FSEA.R

Description

Method to generate a barplot with the number of enriched feature sets per factor

Usage

1
plotEnrichmentBars(fsea.results, alpha = 0.05)

Arguments

fsea.results

output of runEnrichmentAnalysis function

alpha

FDR threshold for calling enriched feature sets. Default is 0.05

Value

a ggplot2 object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Example on the CLL data
filepath <- system.file("extdata", "CLL_model.hdf5", package = "MOFAdata")
MOFAobject <- loadModel(filepath)

# perform Enrichment Analysis on mRNA data using pre-build Reactome gene sets
data("reactomeGS", package = "MOFAdata")
fsea.results <- runEnrichmentAnalysis(MOFAobject, view="mRNA", feature.sets=reactomeGS)

# Plot overview of number of enriched pathways per factor at an FDR of 1%
plotEnrichmentBars(fsea.results, alpha=0.01)

MOFA documentation built on Feb. 11, 2021, 2:01 a.m.