|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.datatype.SimpleDataType
pal.datatype.GapBalanced
public class GapBalanced
implements a ResidueDataType for GapBalanced notation. The terminate character IS included as a state
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface pal.datatype.MolecularDataType |
|---|
MolecularDataType.Utils |
| Field Summary | |
|---|---|
static GapBalanced |
DEFAULT_INSTANCE
|
| Constructor Summary | |
|---|---|
GapBalanced(CodonTable translationTable)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class pal.datatype.SimpleDataType |
|---|
getAmbiguousVersion, getChar, getPreferredChar, getPreferredCharImpl, getRecommendedGapState, getRecommendedUnknownState, getState, hasGap, isAmbiguous, isGapChar, isGapState, isUnknownChar, isUnknownState, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface pal.datatype.DataType |
|---|
getAmbiguousVersion, getChar, getPreferredChar, getRecommendedGapState, getRecommendedUnknownState, getState, hasGap, isAmbiguous, isGapChar, isGapState, isUnknownChar, isUnknownState |
| Field Detail |
|---|
public static final GapBalanced DEFAULT_INSTANCE
| Constructor Detail |
|---|
public GapBalanced(CodonTable translationTable)
| Method Detail |
|---|
public int getNumStates()
DataType
getNumStates in interface DataTypepublic int getStateImpl(char c)
SimpleDataType
getStateImpl in class SimpleDataTypeprotected char getCharImpl(int state)
getCharImpl in class SimpleDataTypeprotected final boolean isUnknownStateImpl(int state)
SimpleDataType
isUnknownStateImpl in class SimpleDataTypepublic java.lang.String getDescription()
DataType
getDescription in interface DataTypepublic int getTypeID()
DataType
getTypeID in interface DataTypepublic int[] getNucleotideStates(int[] residueStates)
getNucleotideStates in interface MolecularDataTyperesidueStates - 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 MolecularDataTypepublic boolean isCreatesIUPACNuecleotides()
isCreatesIUPACNuecleotides in interface MolecularDataTypepublic final int getNucleotideLength()
getNucleotideLength in interface MolecularDataType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||