de.jstacs.data.alphabets
Class DNAAlphabet
java.lang.Object
de.jstacs.data.alphabets.Alphabet
de.jstacs.data.alphabets.DiscreteAlphabet
de.jstacs.data.alphabets.ComplementableDiscreteAlphabet
de.jstacs.data.alphabets.DNAAlphabet
- All Implemented Interfaces:
- InstantiableFromParameterSet, Singleton, Storable, Comparable<Alphabet>
public final class DNAAlphabet
- extends ComplementableDiscreteAlphabet
- implements Singleton
This class implements the discrete alphabet that is used for DNA.
- Author:
- Jan Grau, Jens Keilwagen
Method Summary |
int |
getComplementaryCode(int code)
This method returns the code of the symbol that is the complement of the
symbol encoded by code . |
Methods inherited from class de.jstacs.data.alphabets.DiscreteAlphabet |
compareTo, getCode, getCurrentParameterSet, getMaximalSymbolLength, getMin, getSymbolAt, ignoresCase, isEncodedSymbol, isSymbol, length, toString, toXML |
SINGLETON
public static final DNAAlphabet SINGLETON
- The only instance of this class.
- See Also:
Singleton
getComplementaryCode
public int getComplementaryCode(int code)
- Description copied from class:
ComplementableDiscreteAlphabet
- This method returns the code of the symbol that is the complement of the
symbol encoded by
code
.
- Specified by:
getComplementaryCode
in class ComplementableDiscreteAlphabet
- Parameters:
code
- the encoded symbol
- Returns:
- the code of the complement