S
- each Sequence
of the alignment pair is of type SC
- each element of an AlignedSequence
is a Compound
of type Cpublic abstract class AbstractPairwiseSequenceAligner<S extends Sequence<C>,C extends Compound> extends AbstractMatrixAligner<S,C> implements PairwiseSequenceAligner<S,C>
Modifier and Type | Field and Description |
---|---|
protected SequencePair<S,C> |
pair |
anchors, cutsPerSection, gapPenalty, max, min, profile, score, scores, time, xyMax, xyStart
Modifier | Constructor and Description |
---|---|
protected |
AbstractPairwiseSequenceAligner()
Before running a pairwise global sequence alignment, data must be sent in via calls to
setQuery(Sequence) , setTarget(Sequence) , AbstractMatrixAligner.setGapPenalty(GapPenalty) , and
AbstractMatrixAligner.setSubstitutionMatrix(SubstitutionMatrix) . |
protected |
AbstractPairwiseSequenceAligner(S query,
S target,
GapPenalty gapPenalty,
SubstitutionMatrix<C> subMatrix)
Prepares for a pairwise global sequence alignment.
|
protected |
AbstractPairwiseSequenceAligner(S query,
S target,
GapPenalty gapPenalty,
SubstitutionMatrix<C> subMatrix,
boolean local)
Prepares for a pairwise sequence alignment.
|
Modifier and Type | Method and Description |
---|---|
protected CompoundSet<C> |
getCompoundSet() |
protected List<C> |
getCompoundsOfQuery() |
protected List<C> |
getCompoundsOfTarget() |
SequencePair<S,C> |
getPair()
Returns sequence alignment pair.
|
S |
getQuery()
Returns the first sequence of the pair.
|
protected int[] |
getScoreMatrixDimensions() |
protected int |
getSubstitutionScore(int queryColumn,
int targetColumn) |
S |
getTarget()
Returns the second sequence of the pair.
|
protected boolean |
isReady() |
protected void |
reset()
Resets output fields; should be overridden to set max and min
|
void |
setQuery(S query)
Sets the query
Sequence . |
void |
setTarget(S target)
Sets the target
Sequence . |
align, getComputationTime, getGapPenalty, getMaxScore, getMinScore, getProfile, getScore, getScoreMatrix, getScoreMatrixAsString, getSubstitutionMatrix, getSubstitutionScoreVector, getSubstitutionScoreVector, isLocal, isStoringScoreMatrix, setGapPenalty, setProfile, setStoringScoreMatrix, setSubstitutionMatrix
getDistance, getDistance, getSimilarity, getSimilarity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComputationTime, getProfile
getDistance, getDistance, getMaxScore, getMinScore, getScore, getSimilarity, getSimilarity
protected AbstractPairwiseSequenceAligner()
setQuery(Sequence)
, setTarget(Sequence)
, AbstractMatrixAligner.setGapPenalty(GapPenalty)
, and
AbstractMatrixAligner.setSubstitutionMatrix(SubstitutionMatrix)
.protected AbstractPairwiseSequenceAligner(S query, S target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix)
protected AbstractPairwiseSequenceAligner(S query, S target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix, boolean local)
query
- the first Sequence
of the pair to aligntarget
- the second Sequence
of the pair to aligngapPenalty
- the gap penalties used during alignmentsubMatrix
- the set of substitution scores used during alignmentlocal
- if true, find a region of similarity rather than aligning every compoundpublic void setQuery(S query)
Sequence
.query
- the first Sequence
of the pair to alignpublic void setTarget(S target)
Sequence
.target
- the second Sequence
of the pair to alignpublic SequencePair<S,C> getPair()
PairwiseSequenceAligner
public S getQuery()
PairwiseSequenceScorer
public S getTarget()
PairwiseSequenceScorer
protected CompoundSet<C> getCompoundSet()
getCompoundSet
in class AbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
protected List<C> getCompoundsOfQuery()
getCompoundsOfQuery
in class AbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
protected List<C> getCompoundsOfTarget()
getCompoundsOfTarget
in class AbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
protected int[] getScoreMatrixDimensions()
getScoreMatrixDimensions
in class AbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
protected int getSubstitutionScore(int queryColumn, int targetColumn)
getSubstitutionScore
in class AbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
protected boolean isReady()
protected void reset()
AbstractMatrixAligner
Copyright © 2000–2018 BioJava. All rights reserved.