Compute positivity of a single phenotype
compute_positivity(csd, phenotype, positivity)
Cell seg data to use. This should already have been filtered for the slides or fields of interest.
A phenotype selector. This will be passed to
select_rows
.
A one-sided formula giving the positivity expression to evaluate.
A data frame with columns for count (total number of cells of the given phenotype), positive (count of positive cells) and fraction (fraction of positive cells).
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_many()
,
count_phenotypes()
,
counts_to_percents()