Obtain transformation products (TPs) with metabolic logic
Source:R/generics.R, R/TP-logic.R
generateTPsLogic.RdAutomatically calculate potential transformation products with metabolic logic.
Usage
generateTPsLogic(fGroups, minMass = 40, ...)
# S4 method for class 'featureGroups'
generateTPsLogic(fGroups, minMass = 40, adduct = NULL, transformations = NULL)
# S4 method for class 'featureGroupsSet'
generateTPsLogic(fGroups, minMass = 40, transformations = NULL)Arguments
- fGroups
A
featureGroupsobject for which TPs should be calculated.- minMass
A
numericthat specifies the minimum mass of calculated TPs. If below this mass it will be removed.- ...
Further arguments specified to the methods.
- adduct
An
adductobject (or something that can be converted to it withas.adduct). Examples:"[M-H]-","[M+Na]+". If thefeatureGroupsobject has adduct annotations then these are used ifadducts=NULL.(sets workflow) The
adductargument is not supported for sets workflows, since the adduct annotations will then always be used.- transformations
A
data.framewith transformation reactions to be used for calculating the TPs (see details below). IfNULL, a default table from Schollee et al. is used, that can be obtained withTPLogicTransformations.
Value
A transformationProducts (derived) object containing all generated TPs.
Details
This function uses metabolic logic to obtain transformation products. This function is called when calling generateTPs with
algorithm="logic".
With this algorithm TPs are predicted from common (environmental) chemical reactions, such as hydroxylation, demethylation etc. The generated TPs result from calculating the mass differences between a parent feature after it underwent the reaction. While this only results in little information on chemical properties of the TP, an advantage of this method is that it does not rely on structural information of the parent, which may be unknown in a full non-target analysis.
Transformation reactions
The transformations argument specifies custom rules to calculate
transformation products. This should be a data.frame with the following columns:
transformationThe name of the chemical transformationaddThe elements that are added by this reaction (e.g."O").subThe elements that are removed by this reaction (e.g."H2O").retDirThe expected retention order direction.
Source
The algorithms using transformation reactions are directly based on the work done by Schollee et al. (see references).
References
Schollee JE, Schymanski EL, Avak SE, Loos M, Hollender J (2015). “Prioritizing Unknown Transformation Products from Biologically-Treated Wastewater Using High-Resolution Mass Spectrometry, Multivariate Statistics, and Metabolic Logic.” Analytical Chemistry, 87(24), 12121–12129. doi:10.1021/acs.analchem.5b02905 .
See also
generateTPs for more details and other algorithms.