Description Usage Arguments Value Examples
View source: R/ion-mode-functions.R
Combines Peak.lists from both ionization modes (positive and negative) for a first look at class separations, e.g. with PCA.
1 | pre_combine_ion_modes(Peak.list = NULL, tbl.id, ...)
|
Peak.list |
a named list of data frames (one per ionization mode)
containing intensity matrices across all study samples and Pooled QCs.
Names must be |
tbl.id |
character vector of table names to draw from database. First value should be table name for positive mode, second should be table name for negative mode. Default is NULL |
... |
arguments to pass to database functions |
NULL testing
1 2 3 4 5 6 7 8 9 | library(LUMA)
if(require(lcmsfishdata, quietly = TRUE)) {
Peak.list <- list(Positive = lcmsfishdata::Peaklist_Pos[["From_CAMERA"]],
Negative = lcmsfishdata::Peaklist_Neg[["From_CAMERA"]])
test <- pre_combine_ion_modes(Peak.list = Peak.list)
nrow(test) #Combined features from simply combining Peaklists
sum(sapply(Peak.list, nrow)) #Doesn't remove any ion mode duplicates
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.