Class FractionalSimilarityScorer<S extends Sequence<C>,C extends Compound>

java.lang.Object
org.biojava.nbio.alignment.template.AbstractScorer
org.biojava.nbio.alignment.FractionalSimilarityScorer<S,C>
Type Parameters:
S - each Sequence of the alignment pair is of type S
C - each element of an AlignedSequence is a Compound of type C
All Implemented Interfaces:
PairwiseSequenceScorer<S,C>, Scorer
Direct Known Subclasses:
FractionalSimilarityInProfileScorer

public class FractionalSimilarityScorer<S extends Sequence<C>,C extends Compound> extends AbstractScorer implements PairwiseSequenceScorer<S,C>
Implements an algorithm which computes a score for a sequence alignment pair. The reported score is the number of alignment columns which have similar Compounds.
Author:
Mark Chapman
  • Constructor Details

    • FractionalSimilarityScorer

      public FractionalSimilarityScorer(PairwiseSequenceAligner<S,C> aligner)
      Creates a fractional similarity scorer for a pair of sequences aligned by the given pairwise sequence aligner.
      Parameters:
      aligner - a pairwise sequence aligner
    • FractionalSimilarityScorer

      public FractionalSimilarityScorer(SequencePair<S,C> pair)
      Creates a fractional similarity scorer for an aligned pair of sequences.
      Parameters:
      pair - an aligned pair of sequences
  • Method Details