Data normalization.

normalize_data(
  object,
  method = c("svr", "total", "median", "mean", "pqn", "loess"),
  keep_scale = TRUE,
  optimization = TRUE,
  pqn_reference = c("median", "mean"),
  begin = 0.5,
  end = 1,
  step = 0.2,
  multiple = 1,
  threads = 4
)

Arguments

object

A mass_dataset object.

method

Normalization method, mean, median, total svr or loess, default is svr. Please see the details.

keep_scale

Remain scale or not. Default is TRUE.

optimization

TRUE or not.

pqn_reference

for pqn method.

begin

0.5

end

1

step

0.2

multiple

multiple

threads

4

Value

A new mass_dataset object.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

if (FALSE) {
data("object1", package = "demodata")
object1 = impute_mv(object1, method = "minimum")
object_mean = normalize_data(object = object1, method = "mean")
}