pre_combine_ion_modes: Combines Peak.lists Simply

Description Usage Arguments Value Examples

View source: R/ion-mode-functions.R

Description

Combines Peak.lists from both ionization modes (positive and negative) for a first look at class separations, e.g. with PCA.

Usage

1
pre_combine_ion_modes(Peak.list = NULL, tbl.id, ...)

Arguments

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 c("Positive","Negative"). Alternatively may use existing database connections by setting to NULL and specifying database parameters with ...

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

Value

NULL testing

Examples

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
}

USEPA/LUMA documentation built on Aug. 29, 2020, 1:40 p.m.