normalize | R Documentation |
The normalize method performs normalisation on peak intensities.
normalize(para, method = "sum", valueID = "value", norFactor = NULL,
useClass = FALSE, ...)
para |
A metaXpara object. |
method |
The normalization method: sum, median, vsn, quantiles, quantiles.robust, sum, pqn, combat and tmm. Default is sum. |
valueID |
The name of the column which will be normalized. |
norFactor |
The factor that will be used for normalization. This is usually used in urine data normalization. The factor is the column name in sample list file that contains the normalization factor value, such as the value "osmolality". Default the value is NULL. Only if the value of norFactor is not NULL and the parameter "method" is NULL, this normalization will work. |
useClass |
Whether or not to use class information when perform batch correction using ComBat method. Default is False. |
... |
Additional parameter |
A metaXpara object.
Bo Wen wenbostar@gmail.com
library(faahKO)
xset <- group(faahko)
xset <- retcor(xset)
xset <- group(xset)
xset <- fillPeaks(xset)
peaksData <- as.data.frame(groupval(xset,"medret",value="into"))
peaksData$name <- row.names(peaksData)
para <- new("metaXpara")
rawPeaks(para) <- peaksData
sampleListFile(para) <- system.file("extdata/faahKO_sampleList.txt",
package = "metaX")
para <- reSetPeaksData(para)
para <- metaX::normalize(para)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.