Skip to contents

Generates a heatmap of sample clustering results and summarizes sample group assignments.

Usage

plot_sample_clusters(expomicset, exposure_cols = NULL)

Arguments

expomicset

A MultiAssayExperiment object containing sample clustering results in metadata(expomicset)$sample_clustering.

exposure_cols

A character vector specifying columns from colData to include in the summary. Default is NULL, which includes all available columns.

Value

A ComplexHeatmap plot displaying sample clustering results.

Details

This function:

  • Extracts sample cluster assignments from metadata(expomicset)$sample_clustering.

  • Merges cluster labels with colData(expomicset).

  • Plots the heatmap stored in metadata(expomicset)$sample_clustering$heatmap.

Examples

if (FALSE) { # \dontrun{
plot_sample_clusters(expom)
} # }