formula_adduct_calculator {IDSL.SUFA} | R Documentation |
Formula Adduct Calculator
Description
This function takes a formula and a vector of ionization pathways and returns the adduct formulas.
Usage
formula_adduct_calculator(molecular_formula, IonPathway)
Arguments
molecular_formula |
molecular formula |
IonPathway |
An ionization pathway. Pathways should be like [Coeff*M+ADD1-DED1+...] where "Coeff" should be an integer between 1-9 and ADD1 and DED1 may be ionization pathways. ex: 'IonPathway <- c("[M]+", "[M+H]+", "[2M-Cl]-", "[3M+CO2-H2O+Na-KO2+HCl-NH4]-")' |
Value
A vector of adduct formulas
Examples
molecular_formula = "C15H10O7"
IonPathway = c("[M]+","[M+H]","[M+H2O+H]","[M+Na]")
Formula_adducts <- formula_adduct_calculator(molecular_formula, IonPathway)
[Package IDSL.SUFA version 1.3 Index]