public class ModifiedAminoAcidCompoundSet extends java.lang.Object implements CompoundSet<AminoAcidCompound>
Constructor and Description |
---|
ModifiedAminoAcidCompoundSet(java.util.List<AminoAcidComposition> aaList,
java.util.Map<java.lang.Character,java.lang.Double> aaSymbol2MolecularWeight) |
Modifier and Type | Method and Description |
---|---|
boolean |
compoundsEquivalent(AminoAcidCompound compoundOne,
AminoAcidCompound compoundTwo) |
java.util.List<AminoAcidCompound> |
getAllCompounds() |
AminoAcidCompound |
getCompoundForString(java.lang.String string)
Return null if not recognised.
|
java.util.Set<AminoAcidCompound> |
getEquivalentCompounds(AminoAcidCompound compound) |
int |
getMaxSingleCompoundStringLength()
Returns the maximum size of a compound String this set holds
|
java.lang.String |
getStringForCompound(AminoAcidCompound compound) |
boolean |
hasCompound(AminoAcidCompound compound) |
boolean |
isComplementable() |
boolean |
isCompoundStringLengthEqual()
Returns true if all String representations of Compounds are of the
same length.
|
void |
verifySequence(Sequence<AminoAcidCompound> sequence) |
public ModifiedAminoAcidCompoundSet(java.util.List<AminoAcidComposition> aaList, java.util.Map<java.lang.Character,java.lang.Double> aaSymbol2MolecularWeight)
public int getMaxSingleCompoundStringLength()
CompoundSet
getMaxSingleCompoundStringLength
in interface CompoundSet<AminoAcidCompound>
public boolean isCompoundStringLengthEqual()
CompoundSet
isCompoundStringLengthEqual
in interface CompoundSet<AminoAcidCompound>
public AminoAcidCompound getCompoundForString(java.lang.String string)
CompoundSet
CompoundSet.getStringForCompound(Compound)
.getCompoundForString
in interface CompoundSet<AminoAcidCompound>
public java.lang.String getStringForCompound(AminoAcidCompound compound)
getStringForCompound
in interface CompoundSet<AminoAcidCompound>
public boolean compoundsEquivalent(AminoAcidCompound compoundOne, AminoAcidCompound compoundTwo)
compoundsEquivalent
in interface CompoundSet<AminoAcidCompound>
public void verifySequence(Sequence<AminoAcidCompound> sequence) throws CompoundNotFoundError
verifySequence
in interface CompoundSet<AminoAcidCompound>
CompoundNotFoundError
public java.util.Set<AminoAcidCompound> getEquivalentCompounds(AminoAcidCompound compound)
getEquivalentCompounds
in interface CompoundSet<AminoAcidCompound>
public boolean hasCompound(AminoAcidCompound compound)
hasCompound
in interface CompoundSet<AminoAcidCompound>
public java.util.List<AminoAcidCompound> getAllCompounds()
getAllCompounds
in interface CompoundSet<AminoAcidCompound>
public boolean isComplementable()
isComplementable
in interface CompoundSet<AminoAcidCompound>