normalize_sum: Sum normalization

Description Usage Arguments Value See Also Examples

Description

Apply sum normalization to a matrix or poplin object. For each sample, feature intensities are divided by the sum of all intensity values.

Usage

1
2
3
4
5
## S4 method for signature 'matrix'
normalize_sum(x, restrict = FALSE, rescale = FALSE)

## S4 method for signature 'poplin'
normalize_sum(x, xin, xout, restrict = FALSE, rescale = FALSE)

Arguments

x

A matrix or poplin object.

restrict

Logical controlling whether any feature with missing values is excluded from the calculation of normalization factors.

rescale

Logical controlling whether the normalized intensities are multiplied by the median of normalization factors to make look similar to their original scales.

xin

Character specifying the name of data to retrieve from x when x is a poplin object.

xout

Character specifying the name of data to store in x when x is a poplin object.

Value

A matrix or poplin object of the same dimension as x containing the normalized intensities.

See Also

Other normalization methods: normalize_cyclicloess(), normalize_mad(), normalize_mean(), normalize_median(), normalize_pqn(), normalize_scale(), normalize_vsn(), poplin_normalize()

Examples

1
2
3
4
5
6
7
8
data(faahko_poplin)

## poplin object
normalize_sum(faahko_poplin, xin = "knn", xout = "knn_sum")

## matrix
m <- poplin_data(faahko_poplin, "knn")
normalize_sum(m, rescale = TRUE)

jaehyunjoo/poplin documentation built on Jan. 8, 2022, 1:13 a.m.