scaleDataWithStats: Scale data with given mean and standard deviations

View source: R/utils.R

scaleDataWithStatsR Documentation

Scale data with given mean and standard deviations

Description

Scale data with given mean and standard deviations

Usage

scaleDataWithStats(A, mean_vec, sd_vec, margin = 1, thresh = 10)

Arguments

A

expression matrix (genes by cells)

mean_vec

vector of mean values

sd_vec

vector of standard deviation values

margin

1 for row-wise calculation

thresh

threshold to clip max values

Value

A matrix of scaled expression values.


symphony documentation built on Jan. 17, 2023, 1:13 a.m.