Package jebl.evolution.align
Class Align
- java.lang.Object
-
- jebl.evolution.align.Align
-
- Direct Known Subclasses:
MaximalSegmentPair,NeedlemanWunsch,NeedlemanWunschAffine,NeedlemanWunschLinearSpace,NeedlemanWunschLinearSpaceAffine,NonOverlapMultipleLocalAffine,OldNeedlemanWunschAffine,OverlapAlign,SmithWaterman,SmithWatermanLinearSpace,SmithWatermanLinearSpaceAffine
public abstract class Align extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voiddoAlignment(java.lang.String sq1, java.lang.String sq2)Performs the alignment, abstract.voiddoMatch(Output out, java.lang.String msg)Print the score and the alignmentvoiddoMatch(Output out, java.lang.String msg, boolean outputFMatrix)Print the score, the F matrix, and the alignmentjava.lang.StringformatScore(float val)java.lang.String[]getMatch()abstract floatgetScore()Tracebacknext(Traceback tb)Get the next state in the tracebackabstract voidprepareAlignment(java.lang.String seq1, java.lang.String seq2)Initialises the matrices for the alignment.abstract voidprintf(Output out)Print the matrix (matrices) used to compute the alignmentvoidsetGapOpen(float d)voidsetScores(Scores sub)voidtraceback(TracebackPlotter plotter)
-
-
-
Constructor Detail
-
Align
public Align(Scores sub, float d)
-
-
Method Detail
-
doAlignment
public abstract void doAlignment(java.lang.String sq1, java.lang.String sq2)Performs the alignment, abstract.- Parameters:
sq1-sq2-
-
prepareAlignment
public abstract void prepareAlignment(java.lang.String seq1, java.lang.String seq2)Initialises the matrices for the alignment.- Parameters:
seq1-seq2-
-
setGapOpen
public void setGapOpen(float d)
-
setScores
public void setScores(Scores sub)
-
getMatch
public java.lang.String[] getMatch()
- Returns:
- two-element array containing an alignment with maximal score
-
formatScore
public java.lang.String formatScore(float val)
- Parameters:
val-- Returns:
- float value of string val
-
doMatch
public void doMatch(Output out, java.lang.String msg, boolean outputFMatrix)
Print the score, the F matrix, and the alignment- Parameters:
out- output to print tomsg- message printed at startoutputFMatrix- print the score matrix
-
traceback
public void traceback(TracebackPlotter plotter)
-
doMatch
public void doMatch(Output out, java.lang.String msg)
Print the score and the alignment- Parameters:
out- output to print tomsg- msg printed at the start
-
next
public Traceback next(Traceback tb)
Get the next state in the traceback- Parameters:
tb- current Traceback- Returns:
- next Traceback
-
getScore
public abstract float getScore()
- Returns:
- the score of the best alignment
-
printf
public abstract void printf(Output out)
Print the matrix (matrices) used to compute the alignment- Parameters:
out- output to print to
-
-