public class StrictAlignmentScoreAlgorithm extends AbstractGapAlignmentAlgorithm<StrictAlignmentScoreAlgorithm.ScoreEntry,Double>
Modifier and Type | Class and Description |
---|---|
static class |
StrictAlignmentScoreAlgorithm.ScoreEntry |
Constructor and Description |
---|
StrictAlignmentScoreAlgorithm(AlignmentSpecification alignmentSpecification)
This sets up an AlignmentAlgorithm instance according to the given
specification.
|
Modifier and Type | Method and Description |
---|---|
StrictAlignmentScoreAlgorithm.ScoreEntry |
createDelInitial(StrictAlignmentScoreAlgorithm.ScoreEntry delOld,
int i,
double delLocal)
This method should not be called from outside!
The subclass specifies the entry (i+1,0) of the alignment matrix with
this method given the entry (i,0).
|
StrictAlignmentScoreAlgorithm.ScoreEntry |
createInitial()
This method should not be called from outside!
The subclass specifies the entry (0,0) of the alignment matrix with this
method.
|
StrictAlignmentScoreAlgorithm.ScoreEntry |
createInsInitial(StrictAlignmentScoreAlgorithm.ScoreEntry insOld,
int j,
double insLocal)
This method should not be called from outside!
The subclass specifies the entry (0,j+1) of the alignment matrix with
this method given the entry (0,j).
|
StrictAlignmentScoreAlgorithm.ScoreEntry |
createNewEntry(StrictAlignmentScoreAlgorithm.ScoreEntry delOld,
StrictAlignmentScoreAlgorithm.ScoreEntry insOld,
StrictAlignmentScoreAlgorithm.ScoreEntry repOld,
int i,
int j,
double delLocal,
double insLocal,
double repLocal)
This method should not be called from outside!
The subclass specifies the entry (i+1,j+1) of the alignment matrix with
this method given the entries (i,j+1) (deletion), (i+1,j) (insertion) and
(i,j) (replacement).
|
Double |
transformToResult(StrictAlignmentScoreAlgorithm.ScoreEntry[][] alignmentMatrix,
Sequence a,
Sequence b)
This method should not be called from outside!
The subclass uses this method to transform the alignment matrix and the
input sequences to the actual alignment result.
|
calculateAlignment, createGenericArray, createGenericMatrix, getEntryClass, getLastAlignmentMatrix, getResultClass, getSpecification, getWeightThreshold, setWeightThreshold
public StrictAlignmentScoreAlgorithm(AlignmentSpecification alignmentSpecification)
alignmentSpecification
- an AlignmentSpecification.public StrictAlignmentScoreAlgorithm.ScoreEntry createInitial()
createInitial
in class AbstractGapAlignmentAlgorithm<StrictAlignmentScoreAlgorithm.ScoreEntry,Double>
public StrictAlignmentScoreAlgorithm.ScoreEntry createDelInitial(StrictAlignmentScoreAlgorithm.ScoreEntry delOld, int i, double delLocal)
createDelInitial
in class AbstractGapAlignmentAlgorithm<StrictAlignmentScoreAlgorithm.ScoreEntry,Double>
delOld
- the matrix entry (i,0)i
- i+1delLocal
- the local deletion cost, defined as the weighted sum over
all comparator deletion costs.public StrictAlignmentScoreAlgorithm.ScoreEntry createInsInitial(StrictAlignmentScoreAlgorithm.ScoreEntry insOld, int j, double insLocal)
createInsInitial
in class AbstractGapAlignmentAlgorithm<StrictAlignmentScoreAlgorithm.ScoreEntry,Double>
insOld
- the matrix entry (0,j+1)j
- j+1insLocal
- the local insertion cost, defined as the weighted sum
over all comparator insertion costs.public StrictAlignmentScoreAlgorithm.ScoreEntry createNewEntry(StrictAlignmentScoreAlgorithm.ScoreEntry delOld, StrictAlignmentScoreAlgorithm.ScoreEntry insOld, StrictAlignmentScoreAlgorithm.ScoreEntry repOld, int i, int j, double delLocal, double insLocal, double repLocal)
createNewEntry
in class AbstractGapAlignmentAlgorithm<StrictAlignmentScoreAlgorithm.ScoreEntry,Double>
delOld
- the matrix entry (i,j+1)insOld
- the matrix entry (i+1,j)repOld
- the matrix entry (i,j)i
- i+1j
- j+1delLocal
- the local deletion cost, defined as the weighted sum over
all comparator deletion costs.insLocal
- the local insertion cost, defined as the weighted sum
over all comparator insertion costs.repLocal
- the local replacement cost, defined as the weighted sum
over all comparator replacement costs.public Double transformToResult(StrictAlignmentScoreAlgorithm.ScoreEntry[][] alignmentMatrix, Sequence a, Sequence b)
transformToResult
in class AbstractGapAlignmentAlgorithm<StrictAlignmentScoreAlgorithm.ScoreEntry,Double>
alignmentMatrix
- the alignment matrix.a
- the first sequence.b
- th second sequence.Copyright (C) 2013-2015 Benjamin Paaßen, Georg Zentgraf, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs