normData: Normalize Data

Description Usage Arguments Examples

View source: R/normData.R

Description

Using different methods to normalize the data. CEPICS provides four normalization methods.

Usage

1
normData(data, method = "z_score", object = "feature", logBase = 2)

Arguments

data

A data matrix which needs to be normalized.

method

A string means the method of normalization, choose from "log", "z_score", "mean", "median". "log": using log transformation to normalize the data, which means take the logarithm of each value to base X. X should be set as parameter "logBase". "z-score": using z-score to normalize the data. "mean": each value minus the mean value of its feature or sample. "median": each value minus the median value of its feature or sample.

object

Choose of "feature" and "sample" which means normalize for each feature or sample respectively.

logBase

The base of log when using log transformation to normalize data.

Examples

1
2
data(COAD_Methy)
COAD_Methy <- normData(COAD_Methy, method = 'z_score', object = 'feature')

GaoLabXDU/CEPICS documentation built on June 9, 2020, 2:31 a.m.