Scale {grandR}R Documentation

Scale data

Description

Compute values for all genes standardized (i.e. z scores) across samples.

Usage

Scale(
  data,
  name = "scaled",
  slot = DefaultSlot(data),
  set.to.default = FALSE,
  group = NULL,
  center = TRUE,
  scale = TRUE
)

Arguments

data

a grandR object

name

the new slot name

slot

the slot from where to take values

set.to.default

set the new slot as default slot

group

Perform standardization per group of columns (see details)

center

Perform centering (forwarded to scale)

scale

Perform scaling (forwarded to scale)

Details

Standardization can be done per group. For this, the group parameter has to be a name of the Coldata table, to define groups of columns (i.e. samples or cells).

Value

a new grandR object with a new slot

See Also

scale


[Package grandR version 0.2.5 Index]