Create an interactive heatmap of top variable genes using Heatmaply.
HeatmapExpPlotly(x, ColorPanel, scale, cluster, show_names, NumGenes)
A Plotly object (heatmaply) representing the interactive heatmap.
Numeric matrix of log-CPM values (genes × samples), e.g., from edgeR::cpm().
Character. Name of a continuous palette from the paletteer package.
Character. Scaling mode: "row", "column", or "none".
Character or logical. Clustering option for dendrogram: "both", "row", "column", or "none".
Character. One of "both", "row", "column", or "none" to display row/column labels.
Integer. Number of top-variance genes to include in the heatmap.
This function selects the highest-variance genes from a log-CPM matrix, transposes the data, and renders an interactive heatmap via "heatmaply", using "pheatmap" call.
Compute per-gene variance and select the top NumGenes.
Transpose the subsetted matrix so samples are rows.
Generate a temporary static heatmap with pheatmap to extract dendrograms.
Render an interactive heatmap with heatmaply::heatmaply().