T - the type of each positionprotected static class Sequence.CompositeSequence<T> extends Sequence.RecursiveSequence<T>
Sequences. A
Sequence.CompositeSequence consists of several (partial) Sequence
s. A biological example are promoters like in eukaryotes (-10 and -35
box).Sequence.CompositeSequence<T>, Sequence.RecursiveSequence<T>, Sequence.SubSequence<T>contentalphabetCon, annotation, rc| Constructor and Description |
|---|
CompositeSequence(AlphabetContainer abc,
Sequence<T> seq,
int[] starts,
int[] lengths)
This constructor should be used if one wants to create a
DataSet of Sequence.CompositeSequences. |
CompositeSequence(Sequence seq,
int[] starts,
int[] lengths)
This is a very efficient way to create a
Sequence.CompositeSequence
for Sequences with a simple AlphabetContainer. |
| Modifier and Type | Method and Description |
|---|---|
protected Sequence |
flatCloneWithoutAnnotation()
Works in analogy to
Object.clone(), but does not clone the
annotation. |
protected int |
getIndex(int pos)
Returns the index in the internal sequence.
|
int |
getLength()
Returns the length of the
Sequence. |
addToRepresentation, compareTo, continuousVal, discreteVal, fillContainer, getEmptyContainer, getEmptyRepresentation, getStringRepresentation, hashCodeForPos, isMultiDimensionalannotate, compareTo, complement, complement, create, create, create, equals, getAlphabetContainer, getAnnotation, getCompositeSequence, getCompositeSequence, getHammingDistance, getNumberOfSequenceAnnotationsByType, getSequenceAnnotationByType, getSequenceAnnotationByTypeAndIdentifier, getSubSequence, getSubSequence, getSubSequence, getSubSequence, hashCode, matches, reverse, reverse, reverseComplement, reverseComplement, toDiscrete, toString, toString, toString, toStringpublic CompositeSequence(Sequence seq, int[] starts, int[] lengths)
Sequence.CompositeSequence
for Sequences with a simple AlphabetContainer.seq - the original Sequencestarts - the start positions of the junkslengths - the length of each junkpublic CompositeSequence(AlphabetContainer abc, Sequence<T> seq, int[] starts, int[] lengths)
DataSet of Sequence.CompositeSequences. With this constructor
you are enabled to create a DataSet where every
Sequence has the same AlphabetContainer instance.
AlphabetContainer matches
with the one of the subsequence.abc - the new AlphabetContainerseq - the original Sequencestarts - the start positions of the junkslengths - the length of each junkprotected int getIndex(int pos)
Sequence.RecursiveSequencegetIndex in class Sequence.RecursiveSequence<T>pos - the index in the external sequencepublic int getLength()
SequenceSequence.protected Sequence flatCloneWithoutAnnotation()
SequenceObject.clone(), but does not clone the
annotation. This method is used in
Sequence.annotate(boolean, SequenceAnnotation...).flatCloneWithoutAnnotation in class Sequence<T>Sequence without annotation