|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SequenceType
Interface for sequences data types.
Nested Class Summary | |
---|---|
static class |
SequenceType.Utils
|
Field Summary | |
---|---|
static SequenceType |
AMINO_ACID
|
static SequenceType |
CODON
|
static SequenceType |
NUCLEOTIDE
|
Method Summary | |
---|---|
int |
getCanonicalStateCount()
Get number of canonical states |
List<? extends State> |
getCanonicalStates()
Get a list of canonical states ordered by their indices. |
int |
getCodeLength()
|
State |
getGapState()
Get state corresponding to a gap |
String |
getName()
name of data type |
String |
getNexusDataType()
|
State |
getState(char code)
|
State |
getState(int index)
Get state corresponding to a state index |
State |
getState(String code)
Get state corresponding to a string code |
int |
getStateCount()
Get number of states including ambiguous states |
List<? extends State> |
getStates()
Get a list of states ordered by their indices. |
State |
getUnknownState()
Get state corresponding to an unknown |
boolean |
isGap(State state)
|
boolean |
isUnknown(State state)
|
State[] |
toStateArray(byte[] indexArray)
Converts an array of state indices into an array of State objects for this SequenceType |
State[] |
toStateArray(String sequenceString)
Converts a string of state codes into an array of State objects for this SequenceType |
Field Detail |
---|
static final SequenceType NUCLEOTIDE
static final SequenceType AMINO_ACID
static final SequenceType CODON
Method Detail |
---|
int getStateCount()
List<? extends State> getStates()
int getCanonicalStateCount()
List<? extends State> getCanonicalStates()
State getState(String code)
code
- a string code
State getState(char code)
int getCodeLength()
State getState(int index)
index
- a state index
State getUnknownState()
State getGapState()
boolean isUnknown(State state)
boolean isGap(State state)
String getName()
String getNexusDataType()
State[] toStateArray(String sequenceString)
sequenceString
-
State[] toStateArray(byte[] indexArray)
indexArray
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |