normalize {omicsTools}R Documentation

Normalize function

Description

This function performs normalization on the input data matrix using the loess regression method. Normalization is done based on Quality Control (QC) samples in the data.

Usage

normalize(data)

Arguments

data

A data frame containing the sample data. The first column should contain the sample identifiers, and the rest of the columns contain the peaks to be normalized. QC samples should be indicated in the sample identifiers with 'QC'.

Value

A data frame with the first column as the sample identifiers and the rest of the columns containing the normalized peak intensities.

Author(s)

Yaoxiang Li yl814@georgetown.edu

Georgetown University, USA

License: GPL (>= 3)

Examples


# Load the CSV data
data_file <- system.file("extdata", "example2.csv", package = "omicsTools")
data <- readr::read_csv(data_file)
# Apply the normalize function
normalized_data <- omicsTools::normalize(data)


# Write the normalized data to a new CSV file
readr::write_csv(normalized_data, paste0(tempdir(), "/normalized_data.csv"))


[Package omicsTools version 1.0.5 Index]