heatmapServer: Server function to create a heatmap of a count matrix

View source: R/heatmap.R

heatmapServerR Documentation

Server function to create a heatmap of a count matrix

Description

heatmapServer() creates a ggplot2 plot object using biovisr::matrix_heatmap from the supplied count matrix, sample info and gene metadata

Usage

heatmapServer(
  id,
  counts = NULL,
  sample_info = NULL,
  gene_metadata = NULL,
  transform = NULL,
  debug = NULL
)

Arguments

id

namespace id for the UI components. Must match the id provided to the heatmapInput() function.

counts

a reactive counts object. Should contain only numeric columns

sample_info

a reactive object. Represents the samples and associated metadata

gene_metadata

a reactive object. Contains the metadata for the genes present in the counts object.

transform

reactive that contains the contents of input$transform from the transform module

debug

Turn on debugging message statements

Value

a shiny::reactive() object which is the heatmaped counts

Examples


heatmapServer("rnaseqData", counts = reactive(rnaseqVis::counts[1:10,1:5]))


richysix/rnaseqVis documentation built on Feb. 12, 2024, 1:37 p.m.