|
NeoBio API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--neobio.alignment.ScoringScheme
This abstract class is the superclass of all scoring schemes. It defines basic operations that must be provided by all subclasses. Scoring schemes are used by sequence alignment algorithms to compute the score of an alignment.
PairwiseAlignmentAlgorithm
Field Summary | |
protected boolean |
case_sensitive
Determines whether this scoring scheme ignores the case of characters when computing their score. |
Constructor Summary | |
ScoringScheme()
Creates a new instance of an scoring scheme. |
|
ScoringScheme(boolean case_sensitive)
Creates a new instance of an scoring scheme. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean case_sensitive
Constructor Detail |
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
otherwiseMethod Detail |
public 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 character
a
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 inserted
a
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 deleted
a
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
otherwise
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |