Skip to contents

Multiplies a relative fraction column by a cell-count column and stores the result in colData.

Usage

scale_cell_counts(spe, value, cell_counts, resName = NULL)

Arguments

spe

A SpatialExperiment.

value

Column name in colData(spe) with relative fractions.

cell_counts

Column name in colData(spe) with absolute cell counts.

resName

Optional name for the output column. Defaults to paste0(value, "_absolute").

Value

SpatialExperiment with the scaled counts added to colData.