pp_centerData: Scale data in each group

Description Usage Arguments Value

View source: R/pp.R

Description

Scale data in each group

Usage

1
2
3
4
5
6
7
8
pp_centerData(
  data,
  group_by = NULL,
  by_log = F,
  log_base = base::exp(1),
  center = T,
  scale = T
)

Arguments

data

expression matrix of feature by cell, usually normalized (in log scale) but not feature scaled.

group_by

a vector including cell annotations

by_log

calculate in log scale or in normalized scale; If TRUE log_base will be ignored.

log_base

base::exp(1) or 2 or other else, depends on your normalization method.

center

a logical value used in base::scale

scale

a logical value used in base::scale

Value

scaled data


zzwch/convgene documentation built on July 11, 2021, 9:41 a.m.