runOPLSDA: run OPLS-DA

View source: R/model.R

runOPLSDAR Documentation

run OPLS-DA

Description

Perform the OPLS-DA analysis

Usage

runOPLSDA(para, oplsdaPara, auc = TRUE, sample = NULL,
  valueID = "valueNorm", label = "order", labelSize = 4,
  pointSize = 1.4, ...)

Arguments

para

An object of metaXpara

oplsdaPara

An object of oplsDAPara

sample

Sample class

valueID

The name of column used

label

The label used for plot

labelSize

The size of label, default is 4

pointSize

The size of point, default is 1.4

...

additional arguments

Value

A list object

Examples

para <- new("metaXpara")
pfile <- system.file("extdata/MTBLS79.txt",package = "metaX")
sfile <- system.file("extdata/MTBLS79_sampleList.txt",package = "metaX")
rawPeaks(para) <- read.delim(pfile,check.names = FALSE)
sampleListFile(para) <- sfile
para <- reSetPeaksData(para)
para <- missingValueImpute(para)
oplsdaPara <- new("oplsDAPara")
runOPLSDA(para,oplsdaPara,sample=c("C","S"),valueID="value",labelSize = 2)

wenbostar/metaX documentation built on July 4, 2023, 7:50 p.m.