Class AminoAcidCompoundSet
java.lang.Object
org.biojava3.core.sequence.compound.AminoAcidCompoundSet
- All Implemented Interfaces:
CompoundSet<AminoAcidCompound>
Set of proteinogenic amino acids. Molecular weights are recorded in daltons (Da) as residues of a
chain; monomers outside of a chain would likely have an additional mass of 18.01524 Da
contributed by an associated water molecule.
Currently we have different symbols to handle inserts so not as clean as it should be
- Author:
- Richard Holland, Scooter Willis, Mark Chapman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompoundsEquivalent(AminoAcidCompound compoundOne, AminoAcidCompound compoundTwo) static AminoAcidCompoundSetgetCompoundForString(String string) Return null if not recognised.getEquivalentCompounds(AminoAcidCompound compound) intReturns the maximum size of a compound String this set holdsgetStringForCompound(AminoAcidCompound compound) booleanhasCompound(AminoAcidCompound compound) booleanbooleanReturns true if all String representations of Compounds are of the same length.voidverifySequence(Sequence<AminoAcidCompound> sequence)
-
Constructor Details
-
AminoAcidCompoundSet
public AminoAcidCompoundSet()
-
-
Method Details
-
getStringForCompound
- Specified by:
getStringForCompoundin interfaceCompoundSet<AminoAcidCompound>
-
getCompoundForString
Description copied from interface:CompoundSetReturn null if not recognised. Throw IllegalArgumentException if string is longer than maximum allowed byCompoundSet.getStringForCompound(Compound).- Specified by:
getCompoundForStringin interfaceCompoundSet<AminoAcidCompound>
-
getMaxSingleCompoundStringLength
public int getMaxSingleCompoundStringLength()Description copied from interface:CompoundSetReturns the maximum size of a compound String this set holds- Specified by:
getMaxSingleCompoundStringLengthin interfaceCompoundSet<AminoAcidCompound>
-
isCompoundStringLengthEqual
public boolean isCompoundStringLengthEqual()Description copied from interface:CompoundSetReturns true if all String representations of Compounds are of the same length.- Specified by:
isCompoundStringLengthEqualin interfaceCompoundSet<AminoAcidCompound>
-
getAminoAcidCompoundSet
-
compoundsEquivalent
- Specified by:
compoundsEquivalentin interfaceCompoundSet<AminoAcidCompound>
-
getEquivalentCompounds
- Specified by:
getEquivalentCompoundsin interfaceCompoundSet<AminoAcidCompound>
-
hasCompound
- Specified by:
hasCompoundin interfaceCompoundSet<AminoAcidCompound>
-
verifySequence
- Specified by:
verifySequencein interfaceCompoundSet<AminoAcidCompound>- Throws:
CompoundNotFoundError
-
getAllCompounds
- Specified by:
getAllCompoundsin interfaceCompoundSet<AminoAcidCompound>
-
isComplementable
public boolean isComplementable()- Specified by:
isComplementablein interfaceCompoundSet<AminoAcidCompound>
-