Parameters are directly provided.

compute_h_score(csd, measure, tissue_categories, thresholds, .by = "Slide ID")

Arguments

csd

Cell seg data to use.

measure

The cell seg data column to measure (as a character string)

tissue_categories

A character vector of tissue category names of interest.

thresholds

Optional three element vector with the threshold values.

.by

Column to aggregate by

Value

A data frame with one row per Slide ID, showing cell counts and percents in each bin and the H-Score. The data frame has attributes measure and thresholds.