S - type of sequences to be aligned using scoring systempublic class AbstractAlignmentScoring<S extends Sequence<S>> extends Object implements AlignmentScoring<S>
| Modifier and Type | Field and Description |
|---|---|
protected Alphabet<S> |
alphabet
Link to alphabet
|
protected com.milaboratory.core.alignment.SubstitutionMatrix |
subsMatrix
Stores information about how the object was created.
|
protected int[] |
subsMatrixActual
Actual substitution matrix
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAlignmentScoring(Alphabet<S> alphabet,
com.milaboratory.core.alignment.SubstitutionMatrix subsMatrix)
Abstract class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Alphabet<S> |
getAlphabet()
Returns alphabet
|
int |
getMaximalMatchScore() |
int |
getMaximalMismatchScore() |
int |
getMinimalMatchScore() |
int |
getMinimalMismatchScore() |
int |
getScore(byte from,
byte to)
Returns score value for specified alphabet letter codes
|
int |
hashCode() |
boolean |
uniformBasicMatchScore()
Returns @code{true} if @code{getScore(i, i)} returns the same score for all basic letters values of @code{i}.
|
protected final com.milaboratory.core.alignment.SubstitutionMatrix subsMatrix
subsMatrixActual used for actual calculationsprotected final int[] subsMatrixActual
protected AbstractAlignmentScoring(Alphabet<S> alphabet, com.milaboratory.core.alignment.SubstitutionMatrix subsMatrix)
Initializes substitution matrix to null and uniformBasicMatch to true
alphabet - alphabet to be used by scoring systempublic int getScore(byte from,
byte to)
getScore in interface AlignmentScoring<S extends Sequence<S>>from - code of letter which is to be replacedto - code of letter which is replacingpublic Alphabet<S> getAlphabet()
getAlphabet in interface AlignmentScoring<S extends Sequence<S>>public boolean uniformBasicMatchScore()
public int getMinimalMatchScore()
getMinimalMatchScore in interface AlignmentScoring<S extends Sequence<S>>public int getMaximalMatchScore()
getMaximalMatchScore in interface AlignmentScoring<S extends Sequence<S>>public int getMinimalMismatchScore()
getMinimalMismatchScore in interface AlignmentScoring<S extends Sequence<S>>public int getMaximalMismatchScore()
getMaximalMismatchScore in interface AlignmentScoring<S extends Sequence<S>>Copyright © 2018. All rights reserved.