|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aisb.bio.tools.SequenceAligner
This interface describes any algorithm for doing pair-wise alignment of sequences. It's implemented via the command bean design pattern. This makes it simple to use from a variety of environments, such as JSP pages using JSTL or the JSP2 expression language.
Constructor Summary | |
SequenceAligner()
|
Method Summary | |
abstract void |
execute()
Perform the operation. |
abstract java.lang.String |
getBestAlignmentAsString()
Get the actual best alignment, in the form of a string consisting of tuples representing positions in the alignment. |
abstract java.lang.Character[][] |
getBestAlignmentsAsMatrix()
Get the set of best alignments, in the form of a matrix. |
abstract java.lang.String[] |
getBestAlignmentsAsStrings()
Get the set of best alignments, in the form of an array of strings consisting of tuples representing positions in the alignment. |
abstract int |
getBestAlignmentScore()
Get the best alignment score, as defined by this algorithm. |
Sequence |
getFirstSequence()
Get the first sequence to align. |
abstract int |
getNumberOfAlignments()
Get the number of alignments that have the best score. |
Sequence |
getSecondSequence()
Get the second sequence to align. |
void |
setFirstSequence(Sequence s1)
Set the first sequence to align. |
void |
setSecondSequence(Sequence s2)
Set the second sequence to align. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SequenceAligner()
Method Detail |
public void setFirstSequence(Sequence s1)
s1
- The first sequence.public Sequence getFirstSequence()
public void setSecondSequence(Sequence s2)
s2
- The second sequence.public Sequence getSecondSequence()
public abstract int getBestAlignmentScore()
public abstract int getNumberOfAlignments()
public abstract java.lang.String getBestAlignmentAsString()
public abstract java.lang.String[] getBestAlignmentsAsStrings()
public abstract java.lang.Character[][] getBestAlignmentsAsMatrix()
public abstract void execute()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |