Class Atom
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.biology.atoms.Atom
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Calcium,Carbon,Chlorine,Cobalt,Copper,Fluorine,Helium,Hydrogen,Iodine,Iron,Lithium,Magnesium,Manganese,Nickel,Nitrogen,Oxygen,Phosphorus,Potassium,Selenium,Sodium,Sulfur,Zinc
This interface contains information about atoms.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AtomThe carbon atom.static final AtomThe Calcium atom.static final AtomThe Chlorine atom.static final AtomThe Cobalt atom.static final AtomThe Copper atom.static final AtomThe Fluorine atom.static final AtomThe Iron atom.static final AtomThe hydrogen atom.static final AtomThe helium atom.static final AtomThe Iodine atom.Map of the isotope masses relative to the monoisotopic peak (+1 for carbon 13).static final AtomThe Potassium atom.protected StringThe symbol for the atom.static final AtomThe phosphorus atom.static final AtomThe Magnesium atom.static final AtomThe Manganese atom.protected doubleThe monoisotopic mass.static final AtomThe nitrogen atom.static final AtomThe sodium atom.protected StringThe name of the atom.static final AtomThe Nickel atom.static final AtomThe oxygen atom.static final AtomThe phosphorus atom.Map of the isotope representative composition of the stable isotopes.static final AtomThe sulfur atom.static final AtomThe selenium atom.static final AtomThe Zinc atom.Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AtomReturns the atom corresponding to the given short name.doublegetDifferenceToMonoisotopic(int isotopeNumber) Returns the mass difference between the given isotope and the monoisotopic mass.static String[]getImplementedAtoms(boolean includeSelect) Returns an array of implemented atoms indicated by their short name.returns an unsorted list of isotopes for which a mass is available relative to the monoisotopic peak (+1 for carbon 13).getIsotopeMass(int isotopeNumber) Returns the mass corresponding to the given isotope number.Returns the symbol for the atom.doubleReturns the monoisotopic mass.getName()Returns the name of the atom.toString()Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Field Details
-
H
The hydrogen atom. -
N
The nitrogen atom. -
O
The oxygen atom. -
C
The carbon atom. -
S
The sulfur atom. -
P
The phosphorus atom. -
He
The helium atom. -
Li
The phosphorus atom. -
Na
The sodium atom. -
Se
The selenium atom. -
I
The Iodine atom. -
F
The Fluorine atom. -
Fe
The Iron atom. -
K
The Potassium atom. -
Ca
The Calcium atom. -
Zn
The Zinc atom. -
Mg
The Magnesium atom. -
Cu
The Copper atom. -
Cl
The Chlorine atom. -
Co
The Cobalt atom. -
Ni
The Nickel atom. -
Mn
The Manganese atom. -
monoisotopicMass
protected double monoisotopicMassThe monoisotopic mass. Access is faster then querying the isotope map. -
isotopeMap
Map of the isotope masses relative to the monoisotopic peak (+1 for carbon 13). -
representativeComposition
Map of the isotope representative composition of the stable isotopes. -
name
The name of the atom. -
letter
The symbol for the atom.
-
-
Constructor Details
-
Atom
public Atom()Empty default constructor
-
-
Method Details
-
getImplementedAtoms
Returns an array of implemented atoms indicated by their short name.- Parameters:
includeSelect- if true, the first item is set to '- Select -'- Returns:
- an array of implemented atoms
-
getAtom
Returns the atom corresponding to the given short name.- Parameters:
shortName- the short name of the atom- Returns:
- the atom corresponding to the given short name
-
getMonoisotopicMass
public double getMonoisotopicMass()Returns the monoisotopic mass.- Returns:
- the monoisotopic mass in Da
-
getName
Returns the name of the atom.- Returns:
- the name of the atom
-
getLetter
Returns the symbol for the atom.- Returns:
- the symbol for the atom
-
getImplementedIsotopes
returns an unsorted list of isotopes for which a mass is available relative to the monoisotopic peak (+1 for carbon 13).- Returns:
- a list of isotopes for which a mass is available
-
getIsotopeMass
Returns the mass corresponding to the given isotope number. Null if not found.- Parameters:
isotopeNumber- the isotope number of interest relative to the monoisotopic peak (+1 for carbon 13).- Returns:
- the corresponding mass
-
getDifferenceToMonoisotopic
public double getDifferenceToMonoisotopic(int isotopeNumber) Returns the mass difference between the given isotope and the monoisotopic mass.- Parameters:
isotopeNumber- the isotope number relative to the monoisotopic peak (+1 for carbon 13)- Returns:
- the mass difference between the given isotope and the monoisotopic mass
-
toString
-