Class ModifiedAminoAcidCompoundSet
- java.lang.Object
-
- org.biojava.nbio.aaproperties.xml.ModifiedAminoAcidCompoundSet
-
- All Implemented Interfaces:
CompoundSet<AminoAcidCompound>
public class ModifiedAminoAcidCompoundSet extends java.lang.Object implements CompoundSet<AminoAcidCompound>
-
-
Constructor Summary
Constructors Constructor Description ModifiedAminoAcidCompoundSet(java.util.List<AminoAcidComposition> aaList, java.util.Map<java.lang.Character,java.lang.Double> aaSymbol2MolecularWeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompoundsEquivalent(AminoAcidCompound compoundOne, AminoAcidCompound compoundTwo)java.util.List<AminoAcidCompound>getAllCompounds()AminoAcidCompoundgetCompoundForString(java.lang.String string)Return null if not recognised.java.util.Set<AminoAcidCompound>getEquivalentCompounds(AminoAcidCompound compound)intgetMaxSingleCompoundStringLength()Returns the maximum size of a compound String this set holdsjava.lang.StringgetStringForCompound(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
-
ModifiedAminoAcidCompoundSet
public ModifiedAminoAcidCompoundSet(java.util.List<AminoAcidComposition> aaList, java.util.Map<java.lang.Character,java.lang.Double> aaSymbol2MolecularWeight)
-
-
Method Detail
-
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>
-
getCompoundForString
public AminoAcidCompound getCompoundForString(java.lang.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>
-
getStringForCompound
public java.lang.String getStringForCompound(AminoAcidCompound compound)
- Specified by:
getStringForCompoundin interfaceCompoundSet<AminoAcidCompound>
-
compoundsEquivalent
public boolean compoundsEquivalent(AminoAcidCompound compoundOne, AminoAcidCompound compoundTwo)
- Specified by:
compoundsEquivalentin interfaceCompoundSet<AminoAcidCompound>
-
getEquivalentCompounds
public java.util.Set<AminoAcidCompound> getEquivalentCompounds(AminoAcidCompound compound)
- Specified by:
getEquivalentCompoundsin interfaceCompoundSet<AminoAcidCompound>
-
hasCompound
public boolean hasCompound(AminoAcidCompound compound)
- Specified by:
hasCompoundin interfaceCompoundSet<AminoAcidCompound>
-
getAllCompounds
public java.util.List<AminoAcidCompound> getAllCompounds()
- Specified by:
getAllCompoundsin interfaceCompoundSet<AminoAcidCompound>
-
isComplementable
public boolean isComplementable()
- Specified by:
isComplementablein interfaceCompoundSet<AminoAcidCompound>
-
isValidSequence
public boolean isValidSequence(Sequence<AminoAcidCompound> sequence)
- Specified by:
isValidSequencein interfaceCompoundSet<AminoAcidCompound>
-
-