- 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
- eachSequence
in the pair of alignmentProfile
s is of type SC
- each element of anAlignedSequence
is aCompound
of 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
Fields Modifier and Type Field Description protected ProfilePair<S,C>
pair
-
Fields inherited from class org.biojava.nbio.alignment.template.AbstractMatrixAligner
anchors, cutsPerSection, gapPenalty, max, min, profile, score, scores, time, xyMax, xyStart
-
-
Constructor Summary
Constructors Modifier Constructor Description 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)
.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.protected
AbstractProfileProfileAligner(Future<ProfilePair<S,C>> query, Profile<S,C> target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix)
Prepares for a profile-profile alignment run concurrently.protected
AbstractProfileProfileAligner(Profile<S,C> query, Future<ProfilePair<S,C>> target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix)
Prepares for a profile-profile alignment run concurrently.protected
AbstractProfileProfileAligner(Profile<S,C> query, Profile<S,C> target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix)
Prepares for a profile-profile alignment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CompoundSet<C>
getCompoundSet()
protected List<C>
getCompoundsOfQuery()
protected List<C>
getCompoundsOfTarget()
ProfilePair<S,C>
getPair()
Returns alignment profile pair.Profile<S,C>
getQuery()
Returns the first profile of the pair.protected int[]
getScoreMatrixDimensions()
protected int
getSubstitutionScore(int queryColumn, int targetColumn)
Profile<S,C>
getTarget()
Returns the second profile of the pair.protected boolean
isReady()
protected void
reset()
Resets output fields; should be overridden to set max and minvoid
setQuery(Profile<S,C> query)
Sets the queryProfile
.void
setTarget(Profile<S,C> target)
Sets 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, setSubstitutionMatrix
-
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.Aligner
getComputationTime, getProfile
-
Methods inherited from interface org.biojava.nbio.alignment.template.Scorer
getDistance, getDistance, getMaxScore, getMinScore, getScore, getSimilarity, getSimilarity
-
-
-
-
Constructor Detail
-
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 Detail
-
setQuery
public void setQuery(Profile<S,C> query)
Sets the queryProfile
.- Parameters:
query
- the firstProfile
of the pair to align
-
setTarget
public void setTarget(Profile<S,C> target)
Sets the targetProfile
.- Parameters:
target
- the secondProfile
of the pair to align
-
getPair
public ProfilePair<S,C> getPair()
Description copied from interface:ProfileProfileAligner
Returns alignment profile pair.
-
getQuery
public Profile<S,C> getQuery()
Description copied from interface:ProfileProfileScorer
Returns the first profile of the pair.
-
getTarget
public Profile<S,C> getTarget()
Description copied from interface:ProfileProfileScorer
Returns the second profile of the pair.
-
getCompoundSet
protected CompoundSet<C> getCompoundSet()
- Specified by:
getCompoundSet
in classAbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
-
getCompoundsOfQuery
protected List<C> getCompoundsOfQuery()
- Specified by:
getCompoundsOfQuery
in classAbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
-
getCompoundsOfTarget
protected List<C> getCompoundsOfTarget()
- Specified by:
getCompoundsOfTarget
in classAbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
-
getScoreMatrixDimensions
protected int[] getScoreMatrixDimensions()
- Specified by:
getScoreMatrixDimensions
in classAbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
-
getSubstitutionScore
protected int getSubstitutionScore(int queryColumn, int targetColumn)
- Specified by:
getSubstitutionScore
in classAbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
-
isReady
protected boolean isReady()
-
reset
protected void reset()
Description copied from class:AbstractMatrixAligner
Resets output fields; should be overridden to set max and min
-
-