public class MultiDimensionalArbitrarySequence extends MultiDimensionalSequence<double[]>
Sequence.CompositeSequence<T>, Sequence.RecursiveSequence<T>, Sequence.SubSequence<T>contentalphabetCon, annotation, rc| Constructor and Description |
|---|
MultiDimensionalArbitrarySequence(SequenceAnnotation[] seqAn,
ArbitrarySequence... sequence)
This constructor creates an
MultiDimensionalDiscreteSequence from a set of individual Sequences. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(double[] t1,
double[] t2)
This method compares to container and is used in
Sequence.compareTo(Sequence). |
void |
fillContainer(double[] container,
int pos)
The method fills the content of a specific position in to the container.
|
double[] |
getEmptyContainer()
The method returns a container that can be used for accessing the symbols for each position.
|
protected MultiDimensionalArbitrarySequence |
getInstance(SequenceAnnotation[] seqAn,
Sequence... seqs)
Returns a new instance of a
MultiDimensionalSequence with given SequenceAnnotations and given Sequences. |
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 MultiDimensionalArbitrarySequence(SequenceAnnotation[] seqAn, ArbitrarySequence... 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(double[] container,
int pos)
SequencefillContainer in class Sequence<double[]>container - the container which is used for filling the content.pos - the positionSequence.getEmptyContainer(),
Sequence.isMultiDimensional()public double[] getEmptyContainer()
SequencegetEmptyContainer in class Sequence<double[]>Sequence.fillContainer(Object, int),
Sequence.isMultiDimensional()protected MultiDimensionalArbitrarySequence getInstance(SequenceAnnotation[] seqAn, Sequence... seqs) throws WrongLengthException, WrongAlphabetException
MultiDimensionalSequenceMultiDimensionalSequence with given SequenceAnnotations and given Sequences.getInstance in class MultiDimensionalSequence<double[]>seqAn - the sequence annotationsseqs - the sequence buidl9ing the new MultiDimensionalSequenceMultiDimensionalSequence with given SequenceAnnotations and given SequencesWrongLengthException - if the sequences have different lengthsWrongAlphabetException - if the sequences have different AlphabetContainersMultiDimensionalSequence.flatCloneWithoutAnnotation(),
Sequence.complement(),
Sequence.reverseComplement()public int compareTo(double[] t1,
double[] t2)
SequenceSequence.compareTo(Sequence).compareTo in class Sequence<double[]>t1 - the first containert2 - the second containerSequence.getEmptyContainer(),
Sequence.fillContainer(Object, int),
Comparable.compareTo(java.lang.Object)