Package jebl.evolution.align
Class NeedlemanWunschAffine
java.lang.Object
jebl.evolution.align.Align
jebl.evolution.align.NeedlemanWunschAffine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallocateMatrices(int n, int m) voidappendMatch(jebl.evolution.align.AlignmentResult result1, jebl.evolution.align.AlignmentResult result2) voiddoAlignment(String sq1, String sq2) Performs the alignment.voiddoAlignment(String sequence1, String sequence2, int startType, int endType) voiddoAlignment(jebl.evolution.align.Profile sequence1, jebl.evolution.align.Profile sequence2, int offset1, int offset2, int n, int m, int startType, int endType) voiddoAlignment(jebl.evolution.align.Profile sequence1, jebl.evolution.align.Profile sequence2, int offset1, int offset2, int n, int m, int startType, int endType, boolean freeStartGap, boolean freeEndGap) String[]getMatch()String[]getMatch(char[] sq1, char[] sq2) floatgetScore()Get the next state in the tracebackvoidprepareAlignment(String sq1, String sq2) Initialises the matrices for the alignment.voidPrint matrix used to calculate this alignment.voidsetGapExtend(float e) Methods inherited from class jebl.evolution.align.Align
doMatch, doMatch, formatScore, setGapOpen, setScores, traceback
-
Constructor Details
-
NeedlemanWunschAffine
-
-
Method Details
-
doAlignment
Performs the alignment. Abstract.- Parameters:
sq1-sq2-
-
allocateMatrices
public void allocateMatrices(int n, int m) -
prepareAlignment
Description copied from class:AlignInitialises the matrices for the alignment.- Parameters:
sq1-sq2-
-
doAlignment
-
doAlignment
public void doAlignment(jebl.evolution.align.Profile sequence1, jebl.evolution.align.Profile sequence2, int offset1, int offset2, int n, int m, int startType, int endType) -
doAlignment
public void doAlignment(jebl.evolution.align.Profile sequence1, jebl.evolution.align.Profile sequence2, int offset1, int offset2, int n, int m, int startType, int endType, boolean freeStartGap, boolean freeEndGap) -
appendMatch
public void appendMatch(jebl.evolution.align.AlignmentResult result1, jebl.evolution.align.AlignmentResult result2) -
getMatch
-
getMatch
-
getScore
public float getScore()- Returns:
- score for this alignment
-
setGapExtend
public void setGapExtend(float e) -
next
Get the next state in the traceback -
printf
Print matrix used to calculate this alignment.
-