
Total signal normalization
total_norm_region.RdDivides biomarker expressions by the total signal, depending on the MARGIN. This norm typically
makes the most sense on a cell-by-cell level.
Usage
total_norm_region(
region,
MARGIN = 2,
constant.multiplier = 100,
to = "NormalizedData",
from = "Data"
)Arguments
- region
A Region object, or concatenated data generated by .smapply.
- MARGIN
Whether to apply the function within each biomarker (1) or across all biomarkers in each cell (2).
- constant.multiplier
Constant multiplier for more readable numbers (
100means results can be interpreted like percentages).- to
Which data slot to assign the normalized data to.
- from
Which data slot to pull data from.
Value
An updated Region object with normalized data added to the slot specified in to. Metadata recording
information about the normalization is also added to the featureInfo.