Package org.biojava.nbio.alignment
Class FractionalSimilarityInProfileScorer<S extends Sequence<C>,C extends Compound>
- java.lang.Object
-
- org.biojava.nbio.alignment.template.AbstractScorer
-
- org.biojava.nbio.alignment.FractionalSimilarityScorer<S,C>
-
- org.biojava.nbio.alignment.FractionalSimilarityInProfileScorer<S,C>
-
- Type Parameters:
S- eachSequenceof the alignment pair is of type SC- each element of anAlignedSequenceis aCompoundof type C
- All Implemented Interfaces:
PairInProfileScorer<S,C>,PairwiseSequenceScorer<S,C>,Scorer
public class FractionalSimilarityInProfileScorer<S extends Sequence<C>,C extends Compound> extends FractionalSimilarityScorer<S,C> implements PairInProfileScorer<S,C>
Implements an algorithm which computes a score for a sequence alignment pair picked from an alignmentProfile. The reported score is the number of alignment columns which have similarCompounds.- Author:
- Mark Chapman
-
-
Constructor Summary
Constructors Constructor Description FractionalSimilarityInProfileScorer(Profile<S,C> profile, int query, int target)Creates a fractional similarity scorer for an aligned pair of sequences in the given alignment profile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Profile<S,C>getProfile()Returns theProfilefrom which the aligned pair originated.-
Methods inherited from class org.biojava.nbio.alignment.FractionalSimilarityScorer
getMaxScore, getMinScore, getQuery, getScore, getTarget
-
Methods inherited from class org.biojava.nbio.alignment.template.AbstractScorer
getDistance, getDistance, getSimilarity, getSimilarity
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.biojava.nbio.alignment.template.PairwiseSequenceScorer
getQuery, getTarget
-
Methods inherited from interface org.biojava.nbio.alignment.template.Scorer
getDistance, getDistance, getMaxScore, getMinScore, getScore, getSimilarity, getSimilarity
-
-
-
-
Constructor Detail
-
FractionalSimilarityInProfileScorer
public FractionalSimilarityInProfileScorer(Profile<S,C> profile, int query, int target)
Creates a fractional similarity scorer for an aligned pair of sequences in the given alignment profile.- Parameters:
profile- alignment profile containing pair of sequencesquery- index in the profile of the first sequence of the pairtarget- index in the profile of the second sequence of the pair
-
-
Method Detail
-
getProfile
public Profile<S,C> getProfile()
Description copied from interface:PairInProfileScorerReturns theProfilefrom which the aligned pair originated.- Specified by:
getProfilein interfacePairInProfileScorer<S extends Sequence<C>,C extends Compound>- Returns:
- the original profile
-
-