Class ModifiedAminoAcidCompoundSet
java.lang.Object
org.biojava.nbio.aaproperties.xml.ModifiedAminoAcidCompoundSet
- All Implemented Interfaces:
CompoundSet<AminoAcidCompound>
-
Constructor Summary
ConstructorDescriptionModifiedAminoAcidCompoundSet
(List<AminoAcidComposition> aaList, Map<Character, Double> aaSymbol2MolecularWeight) -
Method Summary
Modifier and TypeMethodDescriptionboolean
compoundsEquivalent
(AminoAcidCompound compoundOne, AminoAcidCompound compoundTwo) getCompoundForString
(String string) Return null if not recognised.getEquivalentCompounds
(AminoAcidCompound compound) int
Returns the maximum size of a compound String this set holdsgetStringForCompound
(AminoAcidCompound compound) boolean
hasCompound
(AminoAcidCompound compound) boolean
boolean
Returns true if all String representations of Compounds are of the same length.boolean
isValidSequence
(Sequence<AminoAcidCompound> sequence)
-
Constructor Details
-
ModifiedAminoAcidCompoundSet
public ModifiedAminoAcidCompoundSet(List<AminoAcidComposition> aaList, Map<Character, Double> aaSymbol2MolecularWeight)
-
-
Method Details
-
getMaxSingleCompoundStringLength
public int getMaxSingleCompoundStringLength()Description copied from interface:CompoundSet
Returns the maximum size of a compound String this set holds- Specified by:
getMaxSingleCompoundStringLength
in interfaceCompoundSet<AminoAcidCompound>
-
isCompoundStringLengthEqual
public boolean isCompoundStringLengthEqual()Description copied from interface:CompoundSet
Returns true if all String representations of Compounds are of the same length.- Specified by:
isCompoundStringLengthEqual
in interfaceCompoundSet<AminoAcidCompound>
-
getCompoundForString
Description copied from interface:CompoundSet
Return null if not recognised. Throw IllegalArgumentException if string is longer than maximum allowed byCompoundSet.getStringForCompound(Compound)
.- Specified by:
getCompoundForString
in interfaceCompoundSet<AminoAcidCompound>
-
getStringForCompound
- Specified by:
getStringForCompound
in interfaceCompoundSet<AminoAcidCompound>
-
compoundsEquivalent
- Specified by:
compoundsEquivalent
in interfaceCompoundSet<AminoAcidCompound>
-
getEquivalentCompounds
- Specified by:
getEquivalentCompounds
in interfaceCompoundSet<AminoAcidCompound>
-
hasCompound
- Specified by:
hasCompound
in interfaceCompoundSet<AminoAcidCompound>
-
getAllCompounds
- Specified by:
getAllCompounds
in interfaceCompoundSet<AminoAcidCompound>
-
isComplementable
public boolean isComplementable()- Specified by:
isComplementable
in interfaceCompoundSet<AminoAcidCompound>
-
isValidSequence
- Specified by:
isValidSequence
in interfaceCompoundSet<AminoAcidCompound>
-