Package jebl.evolution.align
Class NeedlemanWunschLinearSpaceAffine
java.lang.Object
jebl.evolution.align.Align
jebl.evolution.align.NeedlemanWunschLinearSpaceAffine
- All Implemented Interfaces:
PairwiseAligner
-
Nested Class Summary
Nested classes/interfaces inherited from interface jebl.evolution.align.PairwiseAligner
PairwiseAligner.Result -
Constructor Summary
ConstructorsConstructorDescriptionNeedlemanWunschLinearSpaceAffine(Scores sub, float openGapPenalty, float extendGapPenalty) NeedlemanWunschLinearSpaceAffine(Scores sub, float d, float e, boolean freeGapsAtEnds) NeedlemanWunschLinearSpaceAffine(Scores sub, float d, float e, boolean freeGapsAtEnds, boolean applyGapExtendCostToFirstGapResidue) -
Method Summary
Modifier and TypeMethodDescriptionvoidallocateMatrices(int n, int m) voiddoAlignment(String sq1, String sq2) Performs the alignment.voiddoAlignment(String sq1, String sq2, ProgressListener progress) voiddoAlignment(String sq1, String sq2, ProgressListener progress, boolean scoreOnly) jebl.evolution.align.AlignmentResult[]doAlignment(jebl.evolution.align.Profile profile1, jebl.evolution.align.Profile profile2, ProgressListener progress, boolean scoreOnly) doAlignment(Sequence seq1, Sequence seq2, ProgressListener progress) String[]getMatch()static longgetMemoryRequiredForAlignment(int maximumSequenceLength) floatgetScore()doublestatic voidGet the next state in the tracebackvoidprepareAlignment(String sq1, String sq2) Initialises the matrices for the alignment.voidPrint matrix used to calculate this alignment.voidsetDebug(boolean display) voidsetGapExtend(float e) Methods inherited from class jebl.evolution.align.Align
doMatch, doMatch, formatScore, setGapOpen, setScores, traceback
-
Constructor Details
-
NeedlemanWunschLinearSpaceAffine
-
NeedlemanWunschLinearSpaceAffine
-
NeedlemanWunschLinearSpaceAffine
public NeedlemanWunschLinearSpaceAffine(Scores sub, float d, float e, boolean freeGapsAtEnds, boolean applyGapExtendCostToFirstGapResidue) - Parameters:
sub-d-e-freeGapsAtEnds-applyGapExtendCostToFirstGapResidue- Generally there is an ambiguity in bioinformatics whether "gap opening" already includes the first gap character - in other words, whether a gap of length N has(a) a cost of gapOpen + N * gapExtend or (b) gapOpen + (N-1) * gapExtend..applyGapExtendCostToFirstGapResidueshould be true if using interpretation (a).
-
-
Method Details
-
allocateMatrices
public void allocateMatrices(int n, int m) -
doAlignment
Performs the alignment. Abstract.- Parameters:
sq1-sq2-
-
doAlignment
-
doAlignment
-
getMemoryRequiredForAlignment
public static long getMemoryRequiredForAlignment(int maximumSequenceLength) - Returns:
- the number of bytes required per residue in the longest sequence to be alignned.
-
doAlignment
public jebl.evolution.align.AlignmentResult[] doAlignment(jebl.evolution.align.Profile profile1, jebl.evolution.align.Profile profile2, ProgressListener progress, boolean scoreOnly) -
getMatch
-
getScore
public float getScore()- Returns:
- score for this alignment
-
main
-
setDebug
public void setDebug(boolean display) -
doAlignment
- Specified by:
doAlignmentin interfacePairwiseAligner
-
getScore
- Specified by:
getScorein interfacePairwiseAligner
-
prepareAlignment
Description copied from class:AlignInitialises the matrices for the alignment.- Parameters:
sq1-sq2-
-
printf
Print matrix used to calculate this alignment.- Parameters:
out- Output to print to.
-
setGapExtend
public void setGapExtend(float e) -
next
Get the next state in the traceback
-