Skip to contents

z-scales biomarker expression values i.e. subtracts by the mean and divides by the standard deviation.

Usage

z_scale_region(region, from = "NormalizedData", to = "ScaledData", MARGIN = 1)

Arguments

region

A Region object, or concatenated data generated by .smapply.

from

Which data slot to pull data from.

to

Which data slot to assign the normalized data to.

MARGIN

Whether to apply the function within each biomarker (1) or across all biomarkers in each cell (2).

Value

An updated Region object with normalized data added to the slot specified in to

See also

Scroll to top