public abstract static class DefaultSequenceGraphFactories.SequenceAlignmentScorer extends Object
| Constructor and Description |
|---|
DefaultSequenceGraphFactories.SequenceAlignmentScorer() |
public DefaultSequenceGraphFactories.SequenceAlignmentScorer()
public abstract Double getScore(char[] residues, int[] residueCounts)
As of 2008-20-02, the characters passed to this method do not include endgaps. That is, if residues contains '-' then the corresponding residueCount specifies the number of internal gaps in the alignment column. It is possible that in the future a scorer may indicate whether it's interested in endgaps or not, but for now all implementations won't be able to tell the difference between e.g. a length 3 nongap column and a length 4 column containing one terminal gap.
residues - Set of characters occurring in the alignment column to be scored.residueCounts - an array of the same length as residues, with residueCounts[i]
specifying the number of times the character residues[i]
occurs in the alignment column.public abstract Color getColor(double score)
getScore(char[],int[]) (for example in an graph averaged over multiple residue sites)score - the score