LipidMS (version 0.1.0)

crossTables: Cross the original MS1 peaklist with the annotation results

Description

Cross the original MS1 peaklist with the annotation results.

Usage

crossTables(MS1, results, ppm = 5, rttol = 5,
  adductsTable = LipidMS::adductsTable)

Arguments

MS1

data frame cointaining all peaks from the full MS function. It must have three columns: m.z, RT (in seconds) and int (intensity).

results

data frame. Output of identification functions.

ppm

mass tolerance in ppm.

rttol

rt tolerance to match peaks in seconds.

adductsTable

data frame with the adducts to employ.

Value

Data frame with 6 columns: m.z, RT, int, LipidMS_id, adduct and confidence level for the annotation. When multiple IDs are proposed for the same feature, they are sorted based on the annotation level.

Examples

Run this code
# NOT RUN {
results <- idNEG(LipidMS::serum_neg_fullMS, LipidMS::serum_neg_Ce20,
LipidMS::serum_neg_Ce40)
crossTables(MS1 = LipidMS::serum_neg_fullMS, results = results$results,
ppm = 10, rttol = 5, adductsTable = LipidMS::adductsTable)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace