View source: R/utils_helpers.R
normalize | R Documentation |
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.
normalize(data)
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'. |
A data frame with the first column as the sample identifiers and the rest of the columns containing the normalized peak intensities.
Yaoxiang Li yl814@georgetown.edu
Georgetown University, USA
License: GPL (>= 3)
# 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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.