|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.data.Sequence<T>
de.jstacs.data.Sequence.RecursiveSequence<T>
de.jstacs.data.Sequence.SubSequence<T>
T - the type of each positionprotected static class Sequence.SubSequence<T>
This class handles subsequences. Sequence.SubSequences are often used to
extract the Sequence of a sliding window on a long
Sequence. The class is implemented in such a way that it avoids
chains of Sequence.SubSequences.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.jstacs.data.Sequence |
|---|
Sequence.CompositeSequence<T>, Sequence.RecursiveSequence<T>, Sequence.SubSequence<T> |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.data.Sequence.RecursiveSequence |
|---|
content |
| Fields inherited from class de.jstacs.data.Sequence |
|---|
alphabetCon, annotation, rc |
| Constructor Summary | |
|---|---|
Sequence.SubSequence(AlphabetContainer abc,
Sequence seq,
int start,
int length)
This constructor should be used if one wants to create a Sample of Sequence.SubSequences of defined length. |
|
Sequence.SubSequence(Sequence seq,
int start,
int length)
This is a very efficient way to create a Sequence.SubSequence of
defined length for Sequences with a simple
AlphabetContainer. |
|
| Method Summary | |
|---|---|
int |
discreteVal(int pos)
Returns the discrete value at position pos of the
Sequence. |
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. |
Sequence |
reverseComplement(int start,
int end)
This method returns a new instance of Sequence containing a
reverse part of the complementary current Sequence. |
| Methods inherited from class de.jstacs.data.Sequence.RecursiveSequence |
|---|
addToRepresentation, compareTo, continuousVal, fillContainer, getEmptyContainer, getEmptyRepresentation, getStringRepresentation, hashCodeForPos, isMultiDimensional |
| Methods inherited from class de.jstacs.data.Sequence |
|---|
annotate, compareTo, complement, 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, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Sequence.SubSequence(AlphabetContainer abc,
Sequence seq,
int start,
int length)
Sample of Sequence.SubSequences of defined length. With this
constructor you are enabled to create a Sample where every
Sequence has the same AlphabetContainer instance.
AlphabetContainer matches
with the one of the Sequence.SubSequence.
abc - the new AlphabetContainerseq - the original Sequencestart - the index of the start positionlength - the length of the new sequence
public Sequence.SubSequence(Sequence seq,
int start,
int length)
Sequence.SubSequence of
defined length for Sequences with a simple
AlphabetContainer.
seq - the original Sequencestart - the index of the start positionlength - the length of the new Sequence| Method Detail |
|---|
public Sequence reverseComplement(int start,
int end)
throws OperationNotSupportedException
SequenceSequence containing a
reverse part of the complementary current Sequence. For more
details see the methods Sequence.reverse() and Sequence.complement().
reverseComplement in class Sequence<T>start - the start position (inclusive) in the original
Sequenceend - the end position (exclusive) in the original Sequence
Sequence of the part
OperationNotSupportedException - if the current Sequence is not discrete and simple
((not based on a ComplementableDiscreteAlphabet)Sequence.reverse(),
Sequence.complement(),
ComplementableDiscreteAlphabetprotected final int getIndex(int pos)
Sequence.RecursiveSequence
getIndex in class Sequence.RecursiveSequence<T>pos - the index in the external sequence
public final int discreteVal(int pos)
Sequencepos of the
Sequence.
discreteVal in class Sequence.RecursiveSequence<T>pos - the position of the Sequence
pos of the
Sequencepublic int getLength()
SequenceSequence.
getLength in class Sequence<T>Sequenceprotected 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||