scale.exprs: Scale expression

View source: R/scale.exprs.R

scale.exprsR Documentation

Scale expression

Description

It scales a matrix expression and fit all values to a range from 0 to 1.

Usage

## S3 method for class 'exprs'
scale(
  data,
  assay.i = "normalized",
  include.FCS.SCE = F,
  scaled.matrix.name = "scaled"
)

Arguments

data

A fcs.SCE object generated through FlowCT::fcs.SCE() or a expression table with events in rows and markers in columns.

assay.i

Name of matrix stored in the fcs.SCE object from which calculate correlation. Default = "normalized".

include.FCS.SCE

Logical indicating if new scaled matrix must to be stored within the fcs.SCE object.

scaled.matrix.name

New scaled matrix name (it will stored within the fcs.SCE object). Default = "scaled".

Examples

## Not run: 
# option 1: save scaled matrix within the fcs.SCE object (if provided)
fcs <- scale.exprs(fcs.SCE = fcs)

# option 2: scale an external data.frame
markers_expresion_scaled <- scale.exprs(fcs.SCE = markers_expresion)

## End(Not run)

jgarces02/FlowCT documentation built on March 28, 2023, 12:42 p.m.