|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object peakml.chemistry.PeriodicTable
public abstract class PeriodicTable
This class stores the periodic table of elements with precise masses. At present not all the elements are available, check the enumated ints for a complete list of all the available options. The weights and other information is taken from the national institute of standardization (nist).
Next to the elements this class provides some convenience methods like a PPM calculator.
Nested Class Summary | |
---|---|
static class |
PeriodicTable.Derivative
http://mass-spec.stanford.edu/assets/SUMS_common_ESI_ions.pdf http://fiehnlab.ucdavis.edu/staff/kind/Metabolomics/MS-Adduct-Calculator/ |
static class |
PeriodicTable.Element
Central class describing all the properties of an element. |
static class |
PeriodicTable.Isotope
Central class describing all the properties of an isotope. |
static class |
PeriodicTable.NaturalIsotope
|
Field Summary | |
---|---|
static int |
ACETONITRILE
The index of acetonitrile in the elements array. |
static int |
ADDUCT
The derivative can only be an adduct |
static int |
ADDUCT_DEDUCT
The derivative can be both an adduct as well as a deduct |
static PeriodicTable.Derivative[] |
adducts_positive
Static, at startup initialized array of all the positive adducts kept in this class. |
static int |
ALUMINUM
The index of the aluminum element in the elements array. |
static int |
ARSENIC
The index of the arsenic element in the elements array. |
static int |
BROMIDE
The index of the bromide element in the elements array. |
static int |
BROMINE
The index of the bromine element in the elements array. |
static int |
CALCIUM
The index of the calcium element in the elements array. |
static int |
CARBON
The index of the carbon element in the elements array. |
static int |
CESIUM
The index of the cesium element in the elements array. |
static int |
CHLORINE
The index of the chlorine element in the elements array. |
static int |
CHROMIUM
The index of the chromium element in the elements array. |
static int |
COBALT
The index of the cobalt element in the elements array. |
static int |
COPPER
The index of the copper element in the elements array. |
static double |
dalton
The precise value of one dalton. |
static int |
DEDUCT
The derivative can only be a deduct |
static int |
DEUTERIUM
The index of the deuterium element in the elements array. |
static double |
electronmass
The precise mass of an electron |
static PeriodicTable.Element[] |
elements
Static, at startup initialized array of all the elements kept in this class. |
static int |
FLUORINE
The index of the fluor element in the elements array. |
static int |
HYDROGEN
The index of the hydrogen element in the elements array. |
static int |
IODINE
The index of the iodine element in the elements array. |
static int |
IRON
The index of the iron element in the elements array. |
static int |
LITHIUM
The index of the lithium element in the elements array. |
static int |
MAGNESIUM
The index of the magnesium element in the elements array. |
static int |
MANGANESE
The index of the magnese element in the elements array. |
static int |
METHANOL
The index of methanol in the elements array. |
static int |
MOLYBDENUM
The index of the molybdenum element in the elements array. |
static int |
NATRIUM
The index of the natrium element in the elements array. |
static PeriodicTable.NaturalIsotope[] |
natural_isotopes
|
static int |
NICKEL
The index of the nickel element in the elements array. |
static int |
NITROGEN
The index of the nitrogen element in the elements array. |
static int |
NR_ELEMENTS
The number of elements in the elements array. |
static int |
OXYGEN
The index of the oxygen element in the elements array. |
static int |
PHOSPHORUS
The index of the phosphorus element in the elements array. |
static int |
POTASSIUM
The index of the potassium element in the elements array. |
static double |
proton
The precise mass of a proton |
static int |
RUBIDUM
The index of the rubidum element in the elements array. |
static int |
SELENIUM
The index of the selenuum element in the elements array. |
static int |
SILICON
The index of the silicon element in the elements array. |
static int |
SULFUR
The index of the sulfur element in the elements array. |
static int |
TRITIUM
The index of the tritium element in the elements array. |
static int |
TUNGSTEN
The index of the tungsten element in the elements array. |
static int |
ZINC
The index of the zinc element in the elements array. |
static int |
ZIRCONIUM
The index of the zirconium element in the elements array. |
Constructor Summary | |
---|---|
PeriodicTable()
|
Method Summary | |
---|---|
static PeriodicTable.Element |
getElement(java.lang.String identifier)
Returns the element with the given identifier (e.g. |
static double |
getIsotopeMassDifference(int element,
int isotope)
Returns the difference of the most common isotope of the given element to the given isotope. |
static boolean |
inRange(double realmass,
double observedmass,
double ppm)
|
static double |
PPM(double mass,
double nr)
This method calculates the parts per million for the given mass. |
static double |
PPMNr(double mass,
double deviation)
Calculates the ppm-value for the given deviation to the given mass. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CARBON
elements
array.
public static final int HYDROGEN
elements
array.
public static final int DEUTERIUM
elements
array.
public static final int TRITIUM
elements
array.
public static final int FLUORINE
elements
array.
public static final int NITROGEN
elements
array.
public static final int OXYGEN
elements
array.
public static final int PHOSPHORUS
elements
array.
public static final int CHLORINE
elements
array.
public static final int SULFUR
elements
array.
public static final int NATRIUM
elements
array.
public static final int POTASSIUM
elements
array.
public static final int COPPER
elements
array.
public static final int CALCIUM
elements
array.
public static final int SELENIUM
elements
array.
public static final int LITHIUM
elements
array.
public static final int BROMIDE
elements
array.
public static final int MAGNESIUM
elements
array.
public static final int IODINE
elements
array.
public static final int IRON
elements
array.
public static final int MANGANESE
elements
array.
public static final int ZINC
elements
array.
public static final int COBALT
elements
array.
public static final int NICKEL
elements
array.
public static final int TUNGSTEN
elements
array.
public static final int BROMINE
elements
array.
public static final int SILICON
elements
array.
public static final int CESIUM
elements
array.
public static final int ARSENIC
elements
array.
public static final int CHROMIUM
elements
array.
public static final int ALUMINUM
elements
array.
public static final int MOLYBDENUM
elements
array.
public static final int RUBIDUM
elements
array.
public static final int ZIRCONIUM
elements
array.
public static final int METHANOL
elements
array.
public static final int ACETONITRILE
elements
array.
public static final int NR_ELEMENTS
elements
array.
public static final PeriodicTable.Element[] elements
public static final PeriodicTable.NaturalIsotope[] natural_isotopes
public static final int ADDUCT
public static final int DEDUCT
public static final int ADDUCT_DEDUCT
public static final PeriodicTable.Derivative[] adducts_positive
public static final double dalton
public static final double electronmass
public static final double proton
Constructor Detail |
---|
public PeriodicTable()
Method Detail |
---|
public static PeriodicTable.Element getElement(java.lang.String identifier)
public static double getIsotopeMassDifference(int element, int isotope)
element
- The index of the element.isotope
- The index of the isotope.
public static double PPM(double mass, double nr)
mass
- The mass to be used as referencenr
- The number of PPM (e.g. 1 PPM, 3 PPM, etc.)
public static double PPMNr(double mass, double deviation)
PPM(double, double)
for more information.
mass
- The mass to be used as referencedeviation
- The deviation to the given masspublic static boolean inRange(double realmass, double observedmass, double ppm)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |