public class MultiDimensionalDiscreteSequence extends MultiDimensionalSequence<int[]>
Sequence.CompositeSequence<T>, Sequence.RecursiveSequence<T>, Sequence.SubSequence<T>contentalphabetCon, annotation, rc| Constructor and Description |
|---|
MultiDimensionalDiscreteSequence(SequenceAnnotation[] seqAn,
SimpleDiscreteSequence... sequence)
This constructor creates an
MultiDimensionalDiscreteSequence from a set of individual Sequences. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(int[] t1,
int[] t2)
This method compares to container and is used in
Sequence.compareTo(Sequence). |
void |
fillContainer(int[] container,
int pos)
The method fills the content of a specific position in to the container.
|
int[] |
getEmptyContainer()
The method returns a container that can be used for accessing the symbols for each position.
|
protected MultiDimensionalDiscreteSequence |
getInstance(SequenceAnnotation[] seqAn,
Sequence... seqs) |
addToRepresentation, complement, continuousVal, discreteVal, flatCloneWithoutAnnotation, getAnnotations, getEmptyRepresentation, getLength, getNumberOfSequences, getSequence, getStringRepresentation, hashCodeForPos, isMultiDimensional, reverseComplementannotate, compareTo, complement, create, create, create, equals, getAlphabetContainer, getAnnotation, getCompositeSequence, getCompositeSequence, getHammingDistance, getNumberOfSequenceAnnotationsByType, getSequenceAnnotationByType, getSequenceAnnotationByTypeAndIdentifier, getSubSequence, getSubSequence, getSubSequence, getSubSequence, hashCode, matches, reverse, reverse, reverseComplement, toDiscrete, toString, toString, toString, toStringpublic MultiDimensionalDiscreteSequence(SequenceAnnotation[] seqAn, SimpleDiscreteSequence... sequence) throws WrongLengthException, WrongAlphabetException
MultiDimensionalDiscreteSequence from a set of individual Sequences.seqAn - the annotations for the aligned sequencessequence - the individual sequences that have been alignedWrongLengthException - if the sequences have different lengthsWrongAlphabetException - if the sequences have different AlphabetContainerspublic void fillContainer(int[] container,
int pos)
SequencefillContainer in class Sequence<int[]>container - the container which is used for filling the content.pos - the positionSequence.getEmptyContainer(),
Sequence.isMultiDimensional()public int[] getEmptyContainer()
SequencegetEmptyContainer in class Sequence<int[]>Sequence.fillContainer(Object, int),
Sequence.isMultiDimensional()protected MultiDimensionalDiscreteSequence getInstance(SequenceAnnotation[] seqAn, Sequence... seqs) throws WrongLengthException, WrongAlphabetException
getInstance in class MultiDimensionalSequence<int[]>WrongLengthExceptionWrongAlphabetExceptionpublic int compareTo(int[] t1,
int[] t2)
SequenceSequence.compareTo(Sequence).compareTo in class Sequence<int[]>t1 - the first containert2 - the second containerSequence.getEmptyContainer(),
Sequence.fillContainer(Object, int),
Comparable.compareTo(java.lang.Object)