public class GapBalanced extends SimpleDataType implements MolecularDataType
MolecularDataType.Utils
Modifier and Type | Field and Description |
---|---|
static GapBalanced |
DEFAULT_INSTANCE |
AMINO_ACID_DESCRIPTION, AMINOACIDS, CODON_DESCRIPTION, CODONS, GAP_BALANCED, GAP_BALANCED_DESCRIPTION, IUPAC_NUCELOTIDES_DESCRIPTION, IUPACNUCLEOTIDES, NUCLEOTIDE_DESCRIPTION, NUCLEOTIDES, NUMERIC, PRIMARY_SUGGESTED_GAP_CHARACTER, SUGGESTED_GAP_CHARACTERS, SUGGESTED_GAP_STATE, SUGGESTED_UNKNOWN_STATE, TWO_STATE_DESCRIPTION, TWOSTATES, UNKNOWN, UNKNOWN_CHARACTER, UNKNOWN_TLA
Constructor and Description |
---|
GapBalanced(CodonTable translationTable) |
Modifier and Type | Method and Description |
---|---|
protected char |
getCharImpl(int state) |
java.lang.String |
getDescription()
description of data type
|
int[] |
getMolecularStatesFromIUPACNucleotides(int[] nucleotideStates,
int startingIndex)
Currently converts ambiguous states to a simple version (IE takes the first possible simple state for the ambiguous state)
|
int[] |
getMolecularStatesFromSimpleNucleotides(int[] nucleotideStates,
int startingIndex) |
int |
getNucleotideLength() |
int[] |
getNucleotideStates(int[] residueStates) |
int |
getNumStates()
get number of unique states
|
int |
getStateImpl(char c)
For sub classes to implement main functionality of getState.
|
int |
getTypeID()
get numerical code describing the data type
|
boolean |
isCreatesIUPACNuecleotides() |
protected boolean |
isUnknownStateImpl(int state)
For subclasses to handle, without regard for gaps
|
getAmbiguousVersion, getChar, getPreferredChar, getPreferredCharImpl, getRecommendedGapState, getRecommendedUnknownState, getState, hasGap, isAmbiguous, isGapChar, isGapState, isUnknownChar, isUnknownState, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAmbiguousVersion, getChar, getPreferredChar, getRecommendedGapState, getRecommendedUnknownState, getState, hasGap, isAmbiguous, isGapChar, isGapState, isUnknownChar, isUnknownState
public static final GapBalanced DEFAULT_INSTANCE
public GapBalanced(CodonTable translationTable)
public int getNumStates()
DataType
getNumStates
in interface DataType
public int getStateImpl(char c)
SimpleDataType
getStateImpl
in class SimpleDataType
protected char getCharImpl(int state)
getCharImpl
in class SimpleDataType
protected final boolean isUnknownStateImpl(int state)
SimpleDataType
isUnknownStateImpl
in class SimpleDataType
public java.lang.String getDescription()
DataType
getDescription
in interface DataType
public int getTypeID()
DataType
public int[] getNucleotideStates(int[] residueStates)
getNucleotideStates
in interface MolecularDataType
residueStates
- an array of states corresponding to states of public final int[] getMolecularStatesFromIUPACNucleotides(int[] nucleotideStates, int startingIndex)
getMolecularStatesFromIUPACNucleotides
in interface MolecularDataType
public final int[] getMolecularStatesFromSimpleNucleotides(int[] nucleotideStates, int startingIndex)
getMolecularStatesFromSimpleNucleotides
in interface MolecularDataType
public boolean isCreatesIUPACNuecleotides()
isCreatesIUPACNuecleotides
in interface MolecularDataType
public final int getNucleotideLength()
getNucleotideLength
in interface MolecularDataType