Description Usage Arguments Details Value Note Author(s) See Also Examples
Algorithm for detecting m/z differences among peaks that may correspond to m/z differences among different adducts.
1 2 | adduct.search(peaklist, adducts, rttol = 0, mztol = 2,ppm = TRUE,
use_adducts = c("M+H", "M+K", "M+Na"), ion_mode = "positive")
|
peaklist |
Dataframe of HRMS peaks with three numeric columns for (a) m/z, (b) intensity and (c) retention time, such as |
adducts |
Data.frame |
rttol |
Retention time tolerance. Units as given in column 3 of peaklist argument, e.g. [min]. |
mztol |
m/z tolerance setting: value by which the m/z of a peak may vary from its expected value. If parameter |
ppm |
Should |
use_adducts |
Vector of adducts to be screened for. Corresponds to names in the first column of |
ion_mode |
|
Given a peak from the peaklist, the adduct.search
algorithm screens within tolerances mztol
and rttol
whether any other peaks may correspond to this one peak via adduct m/z differences.
More precisely, the one peak m/z is reset to all possible candidate molecular mass values (M; uncharged, non-adduct). The latter are then used to calculate for all other candidate adduct peaks,
which, if found, are subsequently grouped.
For example, consider use_adducts=c("M+H", "M+K"). Given the m/z-value of the one peak, two other peaks with ((m/z*z("M+H")-X("M+H"))/z("M+K"))+X("M+K") and ((m/z*z("M+K")-X("M+K"))/z("M+H"))+X("M+H") are searched for. The peak found for the first term (i.e. with "M+H" being the candidate adduct of the one peak) leads to one group of associated adduct peaks (M+H<->M+K). Another adduct peak (i.e. with "M+K" being the candidate adduct of the one peak) would lead to a second group of associated adduct peaks (M+K<->M+H). Logically, larger adduct groups than the one exemplified can be present, if argument "use_adducts" allows for it (e.g. M+H<->M+K,M+H<->M+Na,M+Na<->M+K).
List of type adduct with 5 entries
adduct[[1]] |
|
adduct[[2]] |
|
adduct[[3]] |
|
adduct[[4]] |
|
adduct[[5]] |
|
Peak IDs refer to the order in which peaks are provided.
Different IDs exist for adduct groups, isotope pattern groups, grouped homologue series (HS) peaks
and homologue series cluster. Yet other IDs exist for the individual components (see note section of combine
).
The same peak may appear as different adducts in column adduct[[1]][,7]
, indicating a conflict in assigning the correct adduct.
Beware, some adduct combinations from adducts
may lead to the same results (e.g. M+H<->M+Na vs M+3H<->M+3Na).
Martin Loos
rm.sat
adducts
peaklist
plotadduct
combine
plotgroup
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ######################################################
# load required data: ################################
# HRMS peak list: ####################################
data(peaklist)
# list of adducts ####################################
data(adducts)
######################################################
# run grouping of peaks for different adducts ########
# of the same candidate molecule #####################
adduct<-adduct.search(
peaklist,
adducts,
rttol=0.05,
mztol=3,
ppm=TRUE,
use_adducts=c("M+K","M+H","M+Na","M+NH4"),
ion_mode="positive"
);
# plot results #######################################
plotadduct(adduct);
######################################################
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.