Package de.isas.lipidomics.domain
Class LipidAdduct
- java.lang.Object
-
- de.isas.lipidomics.domain.LipidAdduct
-
public class LipidAdduct extends Object
Base class for lipid names parsed using the different grammars. This can contain a lipid, an adduct, a sum formula and a fragment.- Author:
- nils.hoffmann
- See Also:
LipidSpecies,Adduct,Fragment
-
-
Constructor Summary
Constructors Constructor Description LipidAdduct()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassName()Returns the class name for this lipid adduct.ElementTablegetElements()Returns the elemental composition table.StringgetLipidFragmentString(LipidLevel level)Returns the non-normalized lipid adduct name (original head group) with fragment, if available, for the given level.StringgetLipidString()Returns the non-normalized (original head group) lipid name for the native level of this lipid.StringgetLipidString(LipidLevel level)Returns the non-normalized (original head group) lipid name for the given level.DoublegetMass()Calculates the mass based on the elements of this lipid adduct.StringgetNormalizedLipidFragmentString(LipidLevel level)Returns the normalized lipid adduct name (class name as head group) with fragment for the given level.StringgetNormalizedLipidString()Returns the normalized (class name as head group) lipid name for the native level of this lipid.StringgetNormalizedLipidString(LipidLevel level)Returns the normalized (class name as head group) lipid name for the given level.StringgetSumFormula()Returns the sum formula.StringtoString()
-
-
-
Constructor Detail
-
LipidAdduct
public LipidAdduct()
-
-
Method Detail
-
getMass
public Double getMass()
Calculates the mass based on the elements of this lipid adduct.- Returns:
- the mass (in Dalton).
-
getElements
public ElementTable getElements()
Returns the elemental composition table.- Returns:
- the elemental composition table.
-
getSumFormula
public String getSumFormula()
Returns the sum formula.- Returns:
- the sum formula.
-
getLipidString
public String getLipidString()
Returns the non-normalized (original head group) lipid name for the native level of this lipid.- Returns:
- the non-normalized lipid name with adduct.
-
getLipidString
public String getLipidString(LipidLevel level)
Returns the non-normalized (original head group) lipid name for the given level.- Parameters:
level- the lipid level to generate the name on.- Returns:
- the non-normalized lipid name with adduct.
-
getNormalizedLipidString
public String getNormalizedLipidString()
Returns the normalized (class name as head group) lipid name for the native level of this lipid.- Returns:
- the normalized lipid name with adduct.
-
getNormalizedLipidString
public String getNormalizedLipidString(LipidLevel level)
Returns the normalized (class name as head group) lipid name for the given level.- Parameters:
level- the lipid level to generate the name on.- Returns:
- the normalized lipid name with adduct.
-
getClassName
public String getClassName()
Returns the class name for this lipid adduct.- Returns:
- the class name.
-
getLipidFragmentString
public String getLipidFragmentString(LipidLevel level)
Returns the non-normalized lipid adduct name (original head group) with fragment, if available, for the given level.- Parameters:
level- the lipid level to generate the name on.- Returns:
- the non-normalized lipid name with adduct and fragment.
-
getNormalizedLipidFragmentString
public String getNormalizedLipidFragmentString(LipidLevel level)
Returns the normalized lipid adduct name (class name as head group) with fragment for the given level.- Parameters:
level- the lipid level to generate the name on.- Returns:
- the normalized lipid name with adduct and fragment.
-
-