Class AminoAcidCompoundSet
- java.lang.Object
 - 
- org.biojava.nbio.core.sequence.compound.AminoAcidCompoundSet
 
 
- 
- All Implemented Interfaces:
 Serializable,CompoundSet<AminoAcidCompound>
public class AminoAcidCompoundSet extends Object implements CompoundSet<AminoAcidCompound>, Serializable
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
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AminoAcidCompoundSet() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompoundsEquivalent(AminoAcidCompound compoundOne, AminoAcidCompound compoundTwo)List<AminoAcidCompound>getAllCompounds()static AminoAcidCompoundSetgetAminoAcidCompoundSet()AminoAcidCompoundgetCompoundForString(String string)Return null if not recognised.Set<AminoAcidCompound>getEquivalentCompounds(AminoAcidCompound compound)intgetMaxSingleCompoundStringLength()Returns the maximum size of a compound String this set holdsStringgetStringForCompound(AminoAcidCompound compound)booleanhasCompound(AminoAcidCompound compound)booleanisComplementable()booleanisCompoundStringLengthEqual()Returns true if all String representations of Compounds are of the same length.booleanisValidSequence(Sequence<AminoAcidCompound> sequence) 
 - 
 
- 
- 
Constructor Detail
- 
AminoAcidCompoundSet
public AminoAcidCompoundSet()
 
 - 
 
- 
Method Detail
- 
getStringForCompound
public String getStringForCompound(AminoAcidCompound compound)
- Specified by:
 getStringForCompoundin interfaceCompoundSet<AminoAcidCompound>
 
- 
getCompoundForString
public AminoAcidCompound getCompoundForString(String string)
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
public static AminoAcidCompoundSet getAminoAcidCompoundSet()
 
- 
compoundsEquivalent
public boolean compoundsEquivalent(AminoAcidCompound compoundOne, AminoAcidCompound compoundTwo)
- Specified by:
 compoundsEquivalentin interfaceCompoundSet<AminoAcidCompound>
 
- 
getEquivalentCompounds
public Set<AminoAcidCompound> getEquivalentCompounds(AminoAcidCompound compound)
- Specified by:
 getEquivalentCompoundsin interfaceCompoundSet<AminoAcidCompound>
 
- 
hasCompound
public boolean hasCompound(AminoAcidCompound compound)
- Specified by:
 hasCompoundin interfaceCompoundSet<AminoAcidCompound>
 
- 
isValidSequence
public boolean isValidSequence(Sequence<AminoAcidCompound> sequence)
- Specified by:
 isValidSequencein interfaceCompoundSet<AminoAcidCompound>
 
- 
getAllCompounds
public List<AminoAcidCompound> getAllCompounds()
- Specified by:
 getAllCompoundsin interfaceCompoundSet<AminoAcidCompound>
 
- 
isComplementable
public boolean isComplementable()
- Specified by:
 isComplementablein interfaceCompoundSet<AminoAcidCompound>
 
 - 
 
 -