plotEnrichmentHeatmap: Heatmap of Feature Set Enrichment Analysis results

Description Usage Arguments Value Examples

View source: R/FSEA.R

Description

This method generates a heatmap with the adjusted p.values that result from the the feature set enrichment analysis. Rows are feature sets and columns are factors.

Usage

1
plotEnrichmentHeatmap(fsea.results, alpha = 0.05, logScale = TRUE, ...)

Arguments

fsea.results

output of runEnrichmentAnalysis function

alpha

FDR threshold to filter out unsignificant feature sets which are not represented in the heatmap. Default is 0.05.

logScale

boolean indicating whether to plot the log of the p.values.

...

extra arguments to be passed to pheatmap function

Value

produces a heatmap

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)

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

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