Description Usage Arguments Value Examples
View source: R/trimming-functions.R
Removes features or compounds found in the void volume of the chromatographic run from the Peak.list
1 | remove_void_volume(Peak.list, search.par, method, ...)
|
Peak.list |
data frame. Must have Correlation.stat column. Should contain output columns from XCMS and CAMERA, and additional columns from IHL.search, Calc.MinFrac, Calc.corr.stat and EIC.plotter functions. |
search.par |
a single-row data frame with 11 variables containing
user-defined search parameters. Must contain the columns
|
method |
which method to apply to trim by retention time. See
|
... |
Arguments to pass to |
data frame Peak.list.trimmed original Peak.list without all metabolite groups containing at least one feature in the void volume
1 2 3 4 5 6 7 8 9 10 11 | library(LUMA)
if(require(lcmsfishdata, quietly = TRUE)){
# is case sensitive on Linux
file <- system.file('extdata','Search_Parameters.txt', package = "LUMA")
search.par <- read.table(file, sep = "\t", header = TRUE)
test <- remove_void_volume(Peak.list = lcmsfishdata::Peaklist_Pos$From_CAMERA, search.par =
search.par, method = "mz")
#Removes 275 features within the void volume
nrow(lcmsfishdata::Peaklist_Pos$From_CAMERA) - nrow(test)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.