Title: | Decomposition of Isotopic Patterns |
---|---|
Description: | Identification of metabolites using high precision mass spectrometry. MS Peaks are used to derive a ranked list of sum formulae, alternatively for a given sum formula the theoretical isotope distribution can be calculated to search in MS peak lists. |
Authors: | Anton Pervukhin <[email protected]>, Steffen Neumann <[email protected]> |
Maintainer: | Steffen Neumann <[email protected]> |
License: | GPL-2 |
Version: | 1.65.1 |
Built: | 2024-09-30 03:29:05 UTC |
Source: | https://github.com/bioc/Rdisop |
Simple arithmetic modifications of sum formulae.
addMolecules(formula1, formula2, elements = NULL, maxisotopes = 10) subMolecules(formula1, formula2, elements = NULL, maxisotopes = 10)
addMolecules(formula1, formula2, elements = NULL, maxisotopes = 10) subMolecules(formula1, formula2, elements = NULL, maxisotopes = 10)
formula1 |
Sum formula |
formula2 |
Sum formula |
elements |
list of allowed chemical elements, defaults to full periodic system of elements |
maxisotopes |
maximum number of isotopes shown in the resulting molecules |
addMolecules() adds the second argument to the first. subMolecules() subtracts the second argument from the first.
This can be useful to revert e.g. adduct/fragment formation found in ESI mass spectrometry, or to mimick simple chemical reactions. No chemical checks are performed.
A list with the elements
formula |
repeated sum formula |
mass |
exact monoisotopic mass of molecule |
score |
dummy value, always 1.0 |
isotopes |
a list of isotopes |
Steffen Neumann <[email protected]>
# For proton-Adduct of Ethanol: subMolecules("C2H7O", "H")
# For proton-Adduct of Ethanol: subMolecules("C2H7O", "H")
Calculate the elementary compositions from an exact Mass or Isotope Pattern, obtained e.g.\ by FTICR or TOF mass spectrometers
decomposeMass(mass, ppm=2.0, mzabs=0.0001, elements=NULL, filter=NULL, z=0, maxisotopes = 10, minElements="C0", maxElements="C999999") decomposeIsotopes(masses, intensities, ppm=2.0, mzabs=0.0001, elements=NULL, filter=NULL, z=0, maxisotopes = 10, minElements="C0", maxElements="C999999") isotopeScore(molecule, masses, intensities, elements = NULL, filter = NULL, z = 0)
decomposeMass(mass, ppm=2.0, mzabs=0.0001, elements=NULL, filter=NULL, z=0, maxisotopes = 10, minElements="C0", maxElements="C999999") decomposeIsotopes(masses, intensities, ppm=2.0, mzabs=0.0001, elements=NULL, filter=NULL, z=0, maxisotopes = 10, minElements="C0", maxElements="C999999") isotopeScore(molecule, masses, intensities, elements = NULL, filter = NULL, z = 0)
mass |
A single exact mass (or m/z value) |
masses |
A vector of masses (or m/z values) of an isotope cluster |
intensities |
Abolute or relative intensities of the |
ppm |
allowed deviation of hypotheses from given mass |
mzabs |
absolute deviation in dalton (mzabs and ppm will be added) |
z |
charge z of m/z peaks for calculation of real mass. 0 is for auto-detection |
maxisotopes |
maximum number of isotopes shown in the resulting molecules |
elements |
list of allowed chemical elements, defaults to CHNOPS |
minElements , maxElements
|
Molecular formulas, which contain lower and upper boundaries of allowed formula respectively |
filter |
NYI, will be a selection of DU, DBE and Nitrogen rules |
molecule |
a molecule as obtained from getMolecule() or decomposeMass / decomposeIsotopes |
Sum formulas are calculated which explain the given mass or isotope pattern.
A list of molecules, which contain the sub-lists
formula |
potential formulae |
mass |
exact monoisotopic mass of hypothesis |
score |
calculated score |
isotopes |
a list of isotopes |
Steffen Neumann <[email protected]>
For a description of the underlying IMS see: see citation("Rdisop")
# For Glutamate: decomposeIsotopes(c(147.0529,148.0563), c(100.0,5.561173))
# For Glutamate: decomposeIsotopes(c(147.0529,148.0563), c(100.0,5.561173))
Parse the sum formula and calculate the theoretical exact mass and the isotope distribution.
getMolecule(formula, elements = NULL, z = 0, maxisotopes = 10) getMass(molecule) getFormula(molecule) getIsotope(molecule, index) getScore(molecule) getValid(molecule)
getMolecule(formula, elements = NULL, z = 0, maxisotopes = 10) getMass(molecule) getFormula(molecule) getIsotope(molecule, index) getScore(molecule) getValid(molecule)
formula |
Sum formula |
elements |
list of allowed chemical elements, defaults to full periodic system of elements |
z |
charge z of molecule for exact mass calculation |
maxisotopes |
maximum number of isotopes shown in the resulting molecules |
molecule |
an initialized molecule as returned by getMolecule() or the decomposeMass() and decomposeIsotope() functions |
index |
return the n-th isotope mass/abundance pair of the molecule |
getMolecule() Parse the sum formula and calculate the theoretical exact monoisotopic mass and the isotope distribution. For a given element, return the different mass values.
getMolecule: A list with the elements
formula |
repeated sum formula |
mass |
exact monoisotopic mass of molecule |
score |
probability, for given molecules a dummy value which is always 1.0 |
valid |
result of neutrogen rule check |
isotopes |
a list of isotopes |
getMass, getFormula and getScore: return the mass of the molecule as string or real value
Steffen Neumann <[email protected]>
For a description of the underlying IMS see: see citation("Rdisop")
# For Ethanol: getMolecule("C2H6O")
# For Ethanol: getMolecule("C2H6O")
Initialize the information about name, mass and isotopes. To reduce the number of decomposition hypotheses, subsets of elements can be created.
initializeCHNOPS() initializeCHNOPSMgKCaFe() initializePSE() initializeElements(names)
initializeCHNOPS() initializeCHNOPSMgKCaFe() initializePSE() initializeElements(names)
names |
vector of element names within PSE |
These functions return full, pre-defined or user-defined (sub-) lists of elements.
A list with the elements
name |
repeated sum formula |
mass |
nominal mass of molecule |
isotope |
a list of isotopes |
The initializeCharges() is special, since it allows to parse charges
such as getMolecule("H3O+", elements=c(initializeCHNOPS(),initializeCharges()))
Steffen Neumann <[email protected]>
For a description of the underlying IMS see: see citation("Rdisop")
Isotope patterns obtained through wikipedia.org
# For Ethanol: elements <- initializeCHNOPS()
# For Ethanol: elements <- initializeCHNOPS()