Compute positivity of multiple phenotypes

compute_positivity_many(
  csd,
  phenotypes,
  positivity_pairs,
  tissue_categories = NULL
)

Arguments

csd

Cell seg data to use. This should already have been filtered for the slides or fields of interest.

phenotypes

A named list of phenotype selectors (see phenoptr::parse_phenotypes).

positivity_pairs

A named list of pairs (lists) of phenotype names and positivity expressions. The expressions must be one-sided formulas such as ~`Membrane PDL1 (Opal 520) Mean`>pdl1_threshold.

tissue_categories

Optional vector of tissue category names to include.

Value

A data frame with columns for count, positive count, and percent for each element of positivity_pairs.