java.lang.Object
org.biojava.nbio.alignment.template.AbstractScorer
org.biojava.nbio.alignment.template.AbstractMatrixAligner<S,C>
org.biojava.nbio.alignment.template.AbstractProfileProfileAligner<S,C>
- Type Parameters:
S- eachSequencein the pair of alignmentProfiles is of type SC- each element of a sequence is aCompoundof type C
- All Implemented Interfaces:
Aligner<S,,C> MatrixAligner<S,,C> ProfileProfileAligner<S,,C> ProfileProfileScorer<S,,C> Scorer
- Direct Known Subclasses:
SimpleProfileProfileAligner
public abstract class AbstractProfileProfileAligner<S extends Sequence<C>,C extends Compound>
extends AbstractMatrixAligner<S,C>
implements ProfileProfileAligner<S,C>
- Author:
- Mark Chapman
-
Field Summary
FieldsFields inherited from class org.biojava.nbio.alignment.template.AbstractMatrixAligner
anchors, cutsPerSection, gapPenalty, max, min, profile, score, scores, time, xyMax, xyStart -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBefore running a profile-profile alignment, data must be sent in via calls tosetQuery(Profile),setTarget(Profile),AbstractMatrixAligner.setGapPenalty(GapPenalty), andAbstractMatrixAligner.setSubstitutionMatrix(SubstitutionMatrix).protectedAbstractProfileProfileAligner(Future<ProfilePair<S, C>> query, Future<ProfilePair<S, C>> target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix) Prepares for a profile-profile alignment run concurrently.protectedAbstractProfileProfileAligner(Future<ProfilePair<S, C>> query, Profile<S, C> target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix) Prepares for a profile-profile alignment run concurrently.protectedAbstractProfileProfileAligner(Profile<S, C> query, Future<ProfilePair<S, C>> target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix) Prepares for a profile-profile alignment run concurrently.protectedAbstractProfileProfileAligner(Profile<S, C> query, Profile<S, C> target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix) Prepares for a profile-profile alignment. -
Method Summary
Modifier and TypeMethodDescriptionprotected CompoundSet<C> getPair()Returns alignment profile pair.getQuery()Returns the first profile of the pair.protected int[]protected intgetSubstitutionScore(int queryColumn, int targetColumn) Returns the second profile of the pair.protected booleanisReady()protected voidreset()Resets output fields; should be overridden to set max and minvoidSets the queryProfile.voidSets the targetProfile.Methods inherited from class org.biojava.nbio.alignment.template.AbstractMatrixAligner
align, getComputationTime, getGapPenalty, getMaxScore, getMinScore, getProfile, getScore, getScoreMatrix, getScoreMatrixAsString, getSubstitutionMatrix, getSubstitutionScoreVector, getSubstitutionScoreVector, isLocal, isStoringScoreMatrix, setGapPenalty, setProfile, setStoringScoreMatrix, setSubstitutionMatrixMethods inherited from class org.biojava.nbio.alignment.template.AbstractScorer
getDistance, getDistance, getSimilarity, getSimilarityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.biojava.nbio.alignment.template.Aligner
getComputationTime, getProfileMethods inherited from interface org.biojava.nbio.alignment.template.Scorer
getDistance, getDistance, getMaxScore, getMinScore, getScore, getSimilarity, getSimilarity
-
Field Details
-
pair
-
-
Constructor Details
-
AbstractProfileProfileAligner
protected AbstractProfileProfileAligner()Before running a profile-profile alignment, data must be sent in via calls tosetQuery(Profile),setTarget(Profile),AbstractMatrixAligner.setGapPenalty(GapPenalty), andAbstractMatrixAligner.setSubstitutionMatrix(SubstitutionMatrix). -
AbstractProfileProfileAligner
protected AbstractProfileProfileAligner(Profile<S, C> query, Profile<S, C> target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix) Prepares for a profile-profile alignment. -
AbstractProfileProfileAligner
protected AbstractProfileProfileAligner(Future<ProfilePair<S, C>> query, Future<ProfilePair<S, C>> target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix) Prepares for a profile-profile alignment run concurrently. -
AbstractProfileProfileAligner
protected AbstractProfileProfileAligner(Profile<S, C> query, Future<ProfilePair<S, C>> target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix) Prepares for a profile-profile alignment run concurrently. -
AbstractProfileProfileAligner
protected AbstractProfileProfileAligner(Future<ProfilePair<S, C>> query, Profile<S, C> target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix) Prepares for a profile-profile alignment run concurrently.
-
-
Method Details
-
setQuery
Sets the queryProfile.- Parameters:
query- the firstProfileof the pair to align
-
setTarget
Sets the targetProfile.- Parameters:
target- the secondProfileof the pair to align
-
getPair
Description copied from interface:ProfileProfileAlignerReturns alignment profile pair. -
getQuery
Description copied from interface:ProfileProfileScorerReturns the first profile of the pair. -
getTarget
Description copied from interface:ProfileProfileScorerReturns the second profile of the pair. -
getCompoundSet
- Specified by:
getCompoundSetin classAbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
-
getCompoundsOfQuery
- Specified by:
getCompoundsOfQueryin classAbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
-
getCompoundsOfTarget
- Specified by:
getCompoundsOfTargetin classAbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
-
getScoreMatrixDimensions
- Specified by:
getScoreMatrixDimensionsin classAbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
-
getSubstitutionScore
- Specified by:
getSubstitutionScorein classAbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
-
isReady
-
reset
Description copied from class:AbstractMatrixAlignerResets output fields; should be overridden to set max and min
-