Package de.isas.lipidomics.domain
Class LipidMolecularSubspecies
- java.lang.Object
-
- de.isas.lipidomics.domain.LipidSpecies
-
- de.isas.lipidomics.domain.LipidMolecularSubspecies
-
- Direct Known Subclasses:
LipidStructuralSubspecies
public class LipidMolecularSubspecies extends LipidSpecies
A molecular subspecies. Child of LipidSpecies. Individual FAs are known, but neither their sn positions nor double bond positions. Example: Phosphatidylinositol (8:0-8:0) or PI(8:0-8:0)- Author:
- nils.hoffmann
- See Also:
LipidSpecies
-
-
Constructor Summary
Constructors Constructor Description LipidMolecularSubspecies(HeadGroup headGroup, FattyAcid... fa)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
buildLipidSubspeciesName(LipidLevel level, String faSeparator, String headGroup, boolean isNormalized)
protected StringBuilder
buildSubspeciesHeadGroupString(String headGroup, boolean normalizeHeadGroup)
Map<String,FattyAcid>
getFa()
Returns the fatty acyls registered for this lipid.protected String
getHeadGroupSuffix()
String
getLipidString(LipidLevel level)
Returns a lipid string representation for the givenLipidLevel
, e.g.String
getLipidString(LipidLevel level, boolean normalizeHeadGroup)
Returns a lipid string representation for the givenLipidLevel
, e.g.String
getNormalizedLipidString()
Returns a lipid string representation for the nativeLipidLevel
, e.g.String
toString()
boolean
validate()
Validate this lipid against the class-specific available FA types and slots.-
Methods inherited from class de.isas.lipidomics.domain.LipidSpecies
buildLipidString, buildSpeciesHeadGroupString, getElements, getInfo, getLipidCategory, getLipidClass, getLipidString, getNormalizedHeadGroup, isEtherLipid
-
-
-
-
Constructor Detail
-
LipidMolecularSubspecies
public LipidMolecularSubspecies(HeadGroup headGroup, FattyAcid... fa)
-
-
Method Detail
-
getFa
public Map<String,FattyAcid> getFa()
Description copied from class:LipidSpecies
Returns the fatty acyls registered for this lipid.- Overrides:
getFa
in classLipidSpecies
- Returns:
- the fatty acyls.
-
getHeadGroupSuffix
protected String getHeadGroupSuffix()
-
buildSubspeciesHeadGroupString
protected StringBuilder buildSubspeciesHeadGroupString(String headGroup, boolean normalizeHeadGroup)
-
buildLipidSubspeciesName
protected String buildLipidSubspeciesName(LipidLevel level, String faSeparator, String headGroup, boolean isNormalized)
-
getLipidString
public String getLipidString(LipidLevel level)
Description copied from class:LipidSpecies
Returns a lipid string representation for the givenLipidLevel
, e.g. Category, Species, etc. Please note that this method is overridden by specific implementations for molecular, structural and isomeric subspecies levels. This method does not normalize the head group.- Overrides:
getLipidString
in classLipidSpecies
- Parameters:
level
- the lipid level to report the name of this lipid on.- Returns:
- the lipid name.
-
getLipidString
public String getLipidString(LipidLevel level, boolean normalizeHeadGroup)
Description copied from class:LipidSpecies
Returns a lipid string representation for the givenLipidLevel
, e.g. Category, Species, etc. Please note that this method is overridden by specific implementations for molecular, structural and isomeric subspecies levels. This method normalizes the head group to the primary class-specific synonym. E.g. TG would be normalized to TAG.- Overrides:
getLipidString
in classLipidSpecies
- Parameters:
level
- the lipid level to report the name of this lipid on.normalizeHeadGroup
- if true, use class specific synonym for headGroup, if false, use head group as parsed.- Returns:
- the lipid name.
-
getNormalizedLipidString
public String getNormalizedLipidString()
Description copied from class:LipidSpecies
Returns a lipid string representation for the nativeLipidLevel
, e.g. Category, Species, etc, as returned byLipidSpecies.getInfo()
of this lipid. This method normalizes the head group to the primary class-specific synonym. E.g. TG would be normalized to TAG.- Overrides:
getNormalizedLipidString
in classLipidSpecies
- Returns:
- the normalized lipid name.
-
validate
public boolean validate()
Description copied from class:LipidSpecies
Validate this lipid against the class-specific available FA types and slots.- Overrides:
validate
in classLipidSpecies
- Returns:
- true if this lipid's FA types and their number match the class definition, false otherwise.
-
toString
public String toString()
- Overrides:
toString
in classLipidSpecies
-
-