compute_positivity: Compute positivity of a single phenotype

Description Usage Arguments Value See Also

View source: R/positivity.R

Description

Compute positivity of a single phenotype

Usage

1
compute_positivity(csd, phenotype, positivity)

Arguments

csd

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

phenotype

A phenotype selector. This will be passed to select_rows.

positivity

A one-sided formula giving the positivity expression to evaluate.

Value

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).

See Also

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()


akoyabio/phenoptrReports documentation built on Jan. 17, 2022, 6:22 p.m.