Interactive heat maps
Metabolites and lipids multivariate statistical analysis in R
Bioconductor offers an amazing solution for exporting your ComplexHeatmap outputs to an interactive Shiny app. This way, you can easily perform a deeper analysis of specific clusters of large heat maps. After opening your Shiny app, you no longer need to code in R! Highlight an interesting area of your heat map with your mouse and investigate it!
Here, we will only briefly show you how to export the ComplexHeatmap to the Shiny app:
# Assume we are at the last step of creating our heat map with ComplexHeatmap.
# We store this output as 'draw.heatmap':
draw.heatmap <- draw(heatmap, heatmap_legend_side="right")
# We will quickly install the shiny library:
install.packages("shiny")
# We call now:
library(shiny)
library(InteractiveComplexHeatmap)
# We specify our 'draw.heatmap' object as 'ht':
ht <- draw.heatmap
# Now, highlight and run this code:
ui = fluidPage(
InteractiveComplexHeatmapOutput()
)
server = function(input, output, session) {
makeInteractiveComplexHeatmap(input, output, session, ht)
}
shiny::shinyApp(ui, server)
We produce this window:

Now, we will highlight an area for further investigation:

We can further export these specific areas to tables:

The InteractiveComplexHeatmap offers much more. Read the vignette carefully and surprise your colleagues during a meeting or presentation of your results!
Last updated