GetIsotopePattern: Calculates the isotope pattern of a molecule.

View source: R/RcppExports.R

GetIsotopePatternR Documentation

Calculates the isotope pattern of a molecule.

Description

GetIsotopePattern parses the molecular formula and returns the isotope pattern (mass and abundance).

Usage

GetIsotopePattern(molecule, abundanceLimit)

Arguments

molecule

Molecule string.

abundanceLimit

Absolute abundance limit for the generated pattern.

Details

The isotope pattern returned by this function may be quite inaccurate. A more accurate pattern is obtained with GetIsotopePattern2, which however only works for small molecules. See also enviPat::isopattern() for an alternative function to calculate accurate isotope patterns.

Note that abundances are returned relative to the most abundant peak of the isotope pattern. The abundanceLimit, however, is an absolute abundance.

The formula parser for the molecule string understands the (case sensitive) element labels and round and curly brackets (square brackets are reserved for isotope specification). Numbers (multipliers) have to follow either directly the element symbol or a closing bracket. Specific isoptopes are specified in square brackets with the mass number before the element label (e.g. [2H], [14C] or [235U]). Charge indicators (+, -) have to be the last characters in the formula string, multiple charges require multiple charge symbols (e.g. doubly charged calcium is Ca++ and not Ca2+ which is the correct syntax for a singly charged calcium dimer).

Value

List with mass and abundace vectors. Abundances are normalized relative to the most abundant peak of the isotope pattern.

See Also

Other Chemistry functions: DecomposeMass2(), DecomposeMass(), GetIsotopePattern2(), GetMoleculeMass()

Examples

GetIsotopePattern("CO2", 1e-5)

pasturm/TofDaqR documentation built on March 29, 2024, 12:10 a.m.