|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.data.Sequence
de.jstacs.data.sequences.DiscreteSequence
de.jstacs.data.sequences.IntSequence
public class IntSequence
This class can be used for discrete AlphabetContainer with alphabets
that use a huge number of symbols.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.jstacs.data.Sequence |
|---|
Sequence.CompositeSequence, Sequence.SubSequence |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.data.Sequence |
|---|
alphabetCon, annotation, rc |
| Constructor Summary | |
|---|---|
IntSequence(AlphabetContainer alphabetContainer,
int[] content)
This constructor is designed for Model.emitSample(int, int...). |
|
IntSequence(AlphabetContainer alphabetContainer,
int[] content,
int start,
int length)
This constructor creates an instance from a part of the content. |
|
IntSequence(AlphabetContainer alphabetContainer,
SequenceAnnotation[] annotation,
String sequence,
String delim)
Creates a new sequence from a string representation using the delimiter delim. |
|
IntSequence(AlphabetContainer alphabetContainer,
SequenceAnnotation[] annotation,
SymbolExtractor extractor)
Creates a new sequence from a SymbolExtractor. |
|
IntSequence(AlphabetContainer alphabetContainer,
String sequence)
Creates a new sequence from a string representation using the default delimiter. |
|
| Method Summary | |
|---|---|
int |
discreteVal(int pos)
Returns the discrete value of position pos. |
protected Sequence |
flatCloneWithoutAnnotation()
Works in analogy to Object.clone(), but does not clone the annotation. |
int |
getLength()
Returns the length of the sequence |
| Methods inherited from class de.jstacs.data.sequences.DiscreteSequence |
|---|
continuousVal |
| Methods inherited from class de.jstacs.data.Sequence |
|---|
annotate, compareTo, complement, complement, create, create, create, equals, getAlphabetContainer, getAnnotation, getCompositeSequence, getCompositeSequence, getSubSequence, getSubSequence, getSubSequence, getSubSequence, hashCode, reverse, reverse, reverseComplement, reverseComplement, toDiscrete, toString, toString, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IntSequence(AlphabetContainer alphabetContainer,
int[] content)
throws WrongAlphabetException,
WrongSequenceTypeException
Model.emitSample(int, int...).
alphabetContainer - the alphabet container for the sequencecontent - an array containing the encoded symbols
WrongAlphabetException - if the sequence is not defined over
alphabetContainer
WrongSequenceTypeException - if the alphabetContainer contains alphabets that
can not be encoded with intsModel.emitSample(int, int...)
public IntSequence(AlphabetContainer alphabetContainer,
int[] content,
int start,
int length)
throws WrongAlphabetException,
WrongSequenceTypeException
alphabetContainer - the alphabet container for the sequencecontent - an array containing the encoded symbolsstart - the start indexlength - the length
WrongAlphabetException - if the sequence is not defined over
alphabetContainer
WrongSequenceTypeException - if the alphabetContainer contains alphabets that
can not be encoded with ints
public IntSequence(AlphabetContainer alphabetContainer,
String sequence)
throws WrongAlphabetException,
WrongSequenceTypeException
alphabetContainer - the alphabet container for the sequencesequence - a string representation of the sequence
WrongAlphabetException - if the sequence is not defined over
alphabetContainer
WrongSequenceTypeException - if the alphabetContainer contains alphabets that
can not be encoded with ints
public IntSequence(AlphabetContainer alphabetContainer,
SequenceAnnotation[] annotation,
String sequence,
String delim)
throws WrongAlphabetException,
WrongSequenceTypeException
delim.
alphabetContainer - the alphabet container for the sequenceannotation - the annotation for this sequencesequence - a string representation of the sequencedelim - the delimiter, a string that separates the symbols
WrongAlphabetException - if the sequence is not defined over
alphabetContainer
WrongSequenceTypeException - if the alphabetContainer contains alphabets that
can not be encoded with ints
public IntSequence(AlphabetContainer alphabetContainer,
SequenceAnnotation[] annotation,
SymbolExtractor extractor)
throws WrongAlphabetException,
WrongSequenceTypeException
SymbolExtractor.
alphabetContainer - the alphabet container for the sequenceannotation - the annotation for this sequenceextractor - the SymbolExtractor
WrongAlphabetException - if the sequence is not defined over
alphabetContainer
WrongSequenceTypeException - if the alphabetContainer contains alphabets that
can not be encoded with ints| Method Detail |
|---|
public int discreteVal(int pos)
Sequencepos.
discreteVal in class Sequencepos - the position
pospublic int getLength()
Sequence
getLength in class Sequenceprotected Sequence flatCloneWithoutAnnotation()
SequenceObject.clone(), but does not clone the annotation. This method is used in Sequence.annotate(boolean, SequenceAnnotation...).
flatCloneWithoutAnnotation in class SequenceSequence.CompositeSequence without annotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||