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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddoAlignment(String sq1, String sq2) Performs the alignment, abstract.voidPrint the score and the alignmentvoidPrint the score, the F matrix, and the alignmentformatScore(float val) String[]getMatch()abstract floatgetScore()Get the next state in the tracebackabstract voidprepareAlignment(String seq1, String seq2) Initialises the matrices for the alignment.abstract voidPrint the matrix (matrices) used to compute the alignmentvoidsetGapOpen(float d) voidvoidtraceback(TracebackPlotter plotter)
-
Constructor Details
-
Align
-
-
Method Details
-
doAlignment
Performs the alignment, abstract.- Parameters:
sq1-sq2-
-
prepareAlignment
Initialises the matrices for the alignment.- Parameters:
seq1-seq2-
-
setGapOpen
public void setGapOpen(float d) -
setScores
-
getMatch
- Returns:
- two-element array containing an alignment with maximal score
-
formatScore
- Parameters:
val-- Returns:
- float value of string val
-
doMatch
Print the score, the F matrix, and the alignment- Parameters:
out- output to print tomsg- message printed at startoutputFMatrix- print the score matrix
-
traceback
-
doMatch
Print the score and the alignment- Parameters:
out- output to print tomsg- msg printed at the start
-
next
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
Print the matrix (matrices) used to compute the alignment- Parameters:
out- output to print to
-