Interface CompoundSet<C extends Compound>
- All Known Implementing Classes:
AbstractCompoundSet,AbstractNucleotideCompoundSet,AmbiguityDNACompoundSet,AmbiguityRNACompoundSet,AminoAcidCompoundSet,DNACompoundSet,RNACompoundSet
public interface CompoundSet<C extends Compound>
-
Method Summary
Modifier and TypeMethodDescriptionbooleancompoundsEquivalent(C compoundOne, C compoundTwo) getCompoundForString(String string) Return null if not recognised.getEquivalentCompounds(C compound) intReturns the maximum size of a compound String this set holdsgetStringForCompound(C compound) booleanhasCompound(C compound) booleanbooleanReturns true if all String representations of Compounds are of the same length.voidverifySequence(Sequence<C> sequence)
-
Method Details
-
getMaxSingleCompoundStringLength
int getMaxSingleCompoundStringLength()Returns the maximum size of a compound String this set holds -
isCompoundStringLengthEqual
boolean isCompoundStringLengthEqual()Returns true if all String representations of Compounds are of the same length. -
getCompoundForString
Return null if not recognised. Throw IllegalArgumentException if string is longer than maximum allowed bygetStringForCompound(Compound). -
getStringForCompound
-
compoundsEquivalent
-
verifySequence
- Throws:
CompoundNotFoundError
-
getEquivalentCompounds
-
hasCompound
-
getAllCompounds
-
isComplementable
boolean isComplementable()
-