Learn R Programming

MOFA (version 1.3.1)

plotEnrichmentBars: Barplot of Feature Set Enrichment Analysis results

Description

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

Usage

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

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab