R/compute_density.R
compute_density_from_table.Rd
Compute cell density from a table of cell counts and a table of tissue areas.
compute_density_from_table(counts, areas, tissue_categories, .by = "Slide ID")
A data frame with columns for .by, Tissue Category
,
and counts, such as the output of count_phenotypes.
A data frame containing tissue areas
in \(cells / micron^2\) with
sample names and tissue categories matching counts
.
A character vector of tissue category names of interest.
Column to aggregate by
A data table with counts converted to density in \(cells / mm^2\).
Other aggregation functions:
compute_density_from_cell_summary()
,
compute_h_score_from_score_data()
,
compute_h_score()
,
compute_mean_expression_many()
,
compute_mean_expression()
,
compute_positivity_many()
,
compute_positivity()
,
count_phenotypes()
,
counts_to_percents()