plotEnrichmentBars {MOFA} | R Documentation |
Method to generate a barplot with the number of enriched feature sets per factor
plotEnrichmentBars(fsea.results, alpha = 0.05)
fsea.results |
output of runEnrichmentAnalysis function |
alpha |
FDR threshold for calling enriched feature sets. Default is 0.05 |
a ggplot2 object
# 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)