Write a formatted H-Score table to a sheet in an Excel workbook.

write_h_score_sheet(
  wb,
  h_score,
  sheet_name = NULL,
  sheet_title = NULL,
  marker = NULL
)

Arguments

wb

An openxlsx Workbook from openxlsx::createWorkbook

h_score

A data frame with columns for Slide ID, Tissue Category, and percent, such as the output of compute_h_score.

sheet_name

Optional name for the worksheet.

sheet_title

Optional title header for the table. If omitted, the title will be inferred from the h_score data if possible.

marker

Optional marker name to add to the default sheet title. Ignored if sheet_title is provided.