代谢组数据有多种数据矫正方式:
(1)内标归一化 (2)基于样本总面积(3)QC归一化
这里采用MetNormalizer包进行数据前处理。具体R信息如下:
setwd('D:/R_code/MetNormalizer/normalization')
install.packages ("e1071") #安装相应软件包
install.packages("usethis")
install.packages("devtools")
install_github("jaspershen/MetNormalizer")
install_github("jaspershen/demoData")
devtools::install_github("jaspershen/demoData")
library ( e1071)
library(usethis)
library(devtools)
library(demoData)
library(MetNormalizer)
# 安装后,显示Error: package or namespace load failed for ‘MetNormalizer’:
# package ‘MetNormalizer’ was installed before R 4.0.0: please re-install it
# 看是否是安装了多个MetNormalizer包,导致存在冲突,因此查询安装路径
# 可能是路径的问题,查询路径
.libPaths()
#[1] "D:/Program Files/R/R-4.1.2/library"
.libPaths("