Plot a heatmap of the top variable genes across samples.
HeatmapExp(
x,
ColorPanel,
scale,
cutree_rows,
cutree_cols,
cluster,
show_names,
NumGenes
)
A "pheatmap" object containing the heatmap and clustering information.
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 for heatmap: "row", "column", or "none".
Integer. Number of clusters for rows (genes).
Integer. Number of clusters for columns (samples).
Character. One of "both", "row", "column", or "none" to specify clustering.
Character. One of "both", "row", "column", or "none" to show row/col names.
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 a heatmap with customizable clustering, scaling, and color palettes using pheatmap.
Compute per-gene variance and select the top "NumGenes".
Transpose the subsetted matrix so samples are rows.
Apply the specified color palette (n = 50) via paletteer::paletteer_c().
Determine clustering and name-display options from "cluster" and "show_names".
Render the heatmap with "pheatmap::pheatmap()", saving to a temporary file to suppress autosave.