medianRILib | R Documentation |
Return a tsLib
object with the median RI of the selective masses across samples.
medianRILib(samples, Lib, makeReport = FALSE, pdfFile = "medianLibRep.pdf",
columns = NULL, showProgressBar = FALSE)
samples |
A |
Lib |
A |
makeReport |
Logical. If |
pdfFile |
The file name where the report will be saved. |
columns |
Either |
showProgressBar |
Logical. Should the progress bar be displayed? |
A tsLib
object. It will update the slot med_RI
which contains
the median RI of every searched metabolite.
Alvaro Cuadros-Inostroza, Matthew Hannah, Henning Redestig
ImportSamples
, ImportLibrary
, tsLib-class
require(TargetSearchData)
data(TSExample)
# get RI file path
RI.path <- tsd_data_path()
# update RI file path
RIpath(sampleDescription) <- RI.path
# Import Library
refLibrary <- ImportLibrary(tsd_file_path('library.txt'))
# update median RI
refLibrary <- medianRILib(sampleDescription, refLibrary)
# perhaps you need to adjust the library RI of one metabolite and the allowed time
# deviation (first time deviation window)
libRI(refLibrary)[5] <- 306500
RIdev(refLibrary)[5,1] <- 2000
refLibrary <- medianRILib(sampleDescription, refLibrary)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.