Class AbstractNucleotideCompoundSet<C extends NucleotideCompound>
java.lang.Object
org.biojava3.core.sequence.template.AbstractCompoundSet<C>
org.biojava3.core.sequence.template.AbstractNucleotideCompoundSet<C>
- Type Parameters:
C- Type of compound this set will contain but must extend NucleotideCompound
- All Implemented Interfaces:
CompoundSet<C>
- Direct Known Subclasses:
DNACompoundSet,RNACompoundSet
public abstract class AbstractNucleotideCompoundSet<C extends NucleotideCompound>
extends AbstractCompoundSet<C>
- Author:
- Andy Yates
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAmbiguity(NucleotideCompound... compounds) Calculates the best symbol for a collection of compounds.booleanNucleotideCompounds can always complementMethods inherited from class org.biojava3.core.sequence.template.AbstractCompoundSet
compoundsEqual, compoundsEquivalent, equals, getAllCompounds, getCompoundForString, getEquivalentCompounds, getMaxSingleCompoundStringLength, getStringForCompound, hasCompound, hashCode, isCompoundStringLengthEqual, verifySequence
-
Constructor Details
-
AbstractNucleotideCompoundSet
public AbstractNucleotideCompoundSet()
-
-
Method Details
-
getAmbiguity
Calculates the best symbol for a collection of compounds. For example if you gave this method a AC it will return a M which is the ambiguity symbol for these compounds.- Parameters:
compounds- Compounds to calculate ambiguity for- Returns:
- The ambiguity symbol which represents this set of nucleotides best
-
isComplementable
public boolean isComplementable()NucleotideCompounds can always complement- Specified by:
isComplementablein interfaceCompoundSet<C extends NucleotideCompound>- Overrides:
isComplementablein classAbstractCompoundSet<C extends NucleotideCompound>
-