Skip to contents

A tidy data frame shaped as observations (genes, rows) by samples (columns) — the layout ComplexHeatmap::Heatmap() expects. 30 genes drawn from three functional pathways (10 genes each), profiled across 12 samples (6 "Healthy", 6 "Disease"). Values are simulated, unscaled log2-CPM-like expression: Immune and Cell Cycle pathway genes are elevated in Disease samples, Metabolic pathway genes are flat, so the module's row/column scaling, clustering, splitting, and row-annotation controls all have real signal to demonstrate on. Pairs with example_heatmap_column_data to additionally demonstrate column annotations (see ComplexHeatmap_HeatmapApp()'s column_data argument).

Usage

example_heatmap_matrix

Format

A data frame with 30 rows and 15 columns:

gene

Gene symbol (character), used as row identifier

pathway

Functional pathway the gene belongs to (factor: Immune, Metabolic, Cell Cycle) — a categorical row-annotation column

mean_expression

Mean log2-CPM-like expression across the 12 samples — a numeric row-annotation column

Healthy_1, Healthy_2, Healthy_3, Healthy_4, Healthy_5, Healthy_6, Disease_1, Disease_2, Disease_3, Disease_4, Disease_5, Disease_6

Simulated log2-CPM-like expression values forming the heatmap matrix

Source

Simulated in data-raw/generate_example_data.R.

Author

Jacob Martin