heatmap_server2: Heatmap Server

View source: R/heatmap_server2.R

heatmap_server2R Documentation

Heatmap Server

Description

Heatmap Server

Usage

heatmap_server2(
  id,
  heatmap_data,
  group_data = shiny::reactive(NULL),
  summarise_function = shiny::reactive(stats::cor),
  drilldown = shiny::reactive(F),
  mock_event_data = shiny::reactive(NULL),
  ...
)

Arguments

id

Module ID

heatmap_data

A shiny::reactive that returns a dataframe with a columns named "sample_name", "group_name", "dataset_name", "feature_value", "feature_display", "response_display", "response_value", and optionally "feature_order".

group_data

A shiny::reactive that returns a dataframe with columns "group_display", and optionally "group_description" and "group_order". Each value in the "group_display" column should only appear once.

summarise_function

A shiny::reactive that returns a function. The function must take two vectors. The first one will be the "feature_value" column of heatmap_data, and the second will be the "response_value" of heatmap_data. The function must return one numeric value.

drilldown

A shiny::reactive that returns True or False

mock_event_data

A shiny::reactive that returns a dataframe. For testing purposes only. Must have columns "curveNumber", "pointNumber", "x", "y", and "z". The "x" column corresponds to the group selected, and the "y" column corresponds to feature selected.

...

arguments sent to plotly_scatter


CRI-iAtlas/iatlas.modules documentation built on Aug. 8, 2024, 12:53 a.m.