Combine rows to speed up rendering of large heatmaps

downsample_heatmap(
  tidy_data,
  value_var,
  design,
  max_display_features = 1000,
  verbose = TRUE
)

Arguments

tidy_data

The data frame from a tidy_omic object containing ordered feature and sample primary keys defined by ordered_featureId and ordered_sampleId.

value_var

which variable in "measurements" to use for quantification.

design

a list summarizing the design of the tidy dataset

max_display_features

aggregate and downsample distinct feature to this number to speed to up heatmap rendering.

verbose

extra reporting messages

Value

tidy_data with rows collapsed if the number of distinct features is greater than max_display_features