public abstract class ScoringScheme extends Object
PairwiseAlignmentAlgorithm
Constructor and Description |
---|
ScoringScheme()
Creates a new instance of an scoring scheme.
|
ScoringScheme(boolean case_sensitive)
Creates a new instance of an scoring scheme.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCaseSensitive()
Tells whether this scoring scheme ignores the case of characters when computing
their score.
|
abstract boolean |
isPartialMatchSupported()
Returns
true if this scoring scheme supports partial matches,
false otherwise. |
abstract int |
maxAbsoluteScore()
Returns the maximum absolute score that this scoring scheme can return for any
substitution, deletion or insertion.
|
abstract int |
scoreDeletion(char a)
Returns the score of a deletion of character
a according to this
scoring scheme. |
abstract int |
scoreInsertion(char a)
Returns the score of an insertion of character
a according to this
scoring scheme. |
abstract int |
scoreSubstitution(char a,
char b)
Returns the score of a substitution of character
a for character
b according to this scoring scheme. |
public ScoringScheme()
public ScoringScheme(boolean case_sensitive)
case_sensitive
is
true
, the case of characters is significant when subsequently
computing their score; otherwise the case is ignored.case_sensitive
- true
if the case of characters must be
significant, false
otherwisepublic boolean isCaseSensitive()
true
if the case of characters is significant,
false
otherwisepublic abstract int scoreSubstitution(char a, char b) throws IncompatibleScoringSchemeException
a
for character
b
according to this scoring scheme. If this substitution is not
defined, an exception is raised.a
- first characterb
- second charactera
for b
IncompatibleScoringSchemeException
- if this substitution is not definedpublic abstract int scoreInsertion(char a) throws IncompatibleScoringSchemeException
a
according to this
scoring scheme. If this character is not recognised, an exception is raised.a
- the character to be inserteda
IncompatibleScoringSchemeException
- if character is not recognised by this
scoring schemepublic abstract int scoreDeletion(char a) throws IncompatibleScoringSchemeException
a
according to this
scoring scheme. If this character is not recognised, an exception is raised.a
- the character to be deleteda
IncompatibleScoringSchemeException
- if character is not recognised by this
scoring schemepublic abstract int maxAbsoluteScore()
public abstract boolean isPartialMatchSupported()
true
if this scoring scheme supports partial matches,
false
otherwise. A partial match is a situation when two characters
are not equal but, for any reason, are regarded as similar by this scoring scheme,
which then returns a positive score. This is common when for scoring schemes
that implement amino acid scoring matrices.true
if this scoring scheme supports partial matches,
false
otherwiseCopyright © 2018. All rights reserved.