# 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)
# heatmap of enriched pathways per factor at 1% FDR
plotEnrichmentHeatmap(fsea.results, alpha=0.01)
# plot number of enriched pathways per factor at 1% FDR
plotEnrichmentBars(fsea.results, alpha=0.01)
# plot top 10 enriched pathways on factor 5:
plotEnrichment(MOFAobject, fsea.results, factor=5, max.pathways=10)
# }
Run the code above in your browser using DataLab