Compute positivity of multiple phenotypes
compute_positivity_many(
csd,
phenotypes,
positivity_pairs,
tissue_categories = NULL
)
Cell seg data to use. This should already have been filtered for the slides or fields of interest.
A named list of phenotype selectors (see phenoptr::parse_phenotypes).
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
.
Optional vector of tissue category names to include.
A data frame with columns for count,
positive count,
and percent for each element of positivity_pairs
.
Other aggregation functions:
compute_density_from_cell_summary()
,
compute_density_from_table()
,
compute_h_score_from_score_data()
,
compute_h_score()
,
compute_mean_expression_many()
,
compute_mean_expression()
,
compute_positivity()
,
count_phenotypes()
,
counts_to_percents()