This function prepares a tidy table of pathway scores joined with sample annotations from a `SummarizedExperiment` object. It returns a list suitable for heatmap plotting.
Arguments
- exp_data
A `SummarizedExperiment` object containing sample annotations in `colData`.
- pathway_scores
A matrix or data frame with pathway scores (rows = pathways, columns = samples).
- pathways
Either a numeric vector indicating indices of pathways to include, or a character vector of pathway names. Default is 1:20.