Package org.biojava.nbio.alignment
Class SmithWaterman<S extends Sequence<C>,C extends Compound>
- java.lang.Object
- 
- org.biojava.nbio.alignment.template.AbstractScorer
- 
- org.biojava.nbio.alignment.template.AbstractMatrixAligner<S,C>
- 
- org.biojava.nbio.alignment.template.AbstractPairwiseSequenceAligner<S,C>
- 
- org.biojava.nbio.alignment.SmithWaterman<S,C>
 
 
 
 
- 
- Type Parameters:
- S- each- Sequenceof the alignment pair is of type S
- C- each element of an- AlignedSequenceis a- Compoundof type C
 - All Implemented Interfaces:
- Aligner<S,C>,- MatrixAligner<S,C>,- PairwiseSequenceAligner<S,C>,- PairwiseSequenceScorer<S,C>,- Scorer
 
 public class SmithWaterman<S extends Sequence<C>,C extends Compound> extends AbstractPairwiseSequenceAligner<S,C> Smith and Waterman defined an algorithm for pairwise local sequence alignments (best match of sections from eachSequence). This class performs such local sequence comparisons efficiently by dynamic programming.- Author:
- Mark Chapman
 
- 
- 
Field Summary- 
Fields inherited from class org.biojava.nbio.alignment.template.AbstractPairwiseSequenceAlignerpair
 - 
Fields inherited from class org.biojava.nbio.alignment.template.AbstractMatrixAligneranchors, cutsPerSection, gapPenalty, max, min, profile, score, scores, time, xyMax, xyStart
 
- 
 - 
Constructor SummaryConstructors Constructor Description SmithWaterman()Before running a pairwise local sequence alignment, data must be sent in via calls toAbstractPairwiseSequenceAligner.setQuery(Sequence),AbstractPairwiseSequenceAligner.setTarget(Sequence),AbstractMatrixAligner.setGapPenalty(GapPenalty), andAbstractMatrixAligner.setSubstitutionMatrix(SubstitutionMatrix).SmithWaterman(S query, S target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix)Prepares for a pairwise local sequence alignment.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetProfile(List<AlignedSequence.Step> sx, List<AlignedSequence.Step> sy)- 
Methods inherited from class org.biojava.nbio.alignment.template.AbstractPairwiseSequenceAlignergetCompoundSet, getCompoundsOfQuery, getCompoundsOfTarget, getPair, getQuery, getScoreMatrixDimensions, getSubstitutionScore, getTarget, isReady, reset, setQuery, setTarget
 - 
Methods inherited from class org.biojava.nbio.alignment.template.AbstractMatrixAligneralign, getComputationTime, getGapPenalty, getMaxScore, getMinScore, getProfile, getScore, getScoreMatrix, getScoreMatrixAsString, getSubstitutionMatrix, getSubstitutionScoreVector, getSubstitutionScoreVector, isLocal, isStoringScoreMatrix, setGapPenalty, setStoringScoreMatrix, setSubstitutionMatrix
 - 
Methods inherited from class org.biojava.nbio.alignment.template.AbstractScorergetDistance, getDistance, getSimilarity, getSimilarity
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.biojava.nbio.alignment.template.AlignergetComputationTime, getProfile
 - 
Methods inherited from interface org.biojava.nbio.alignment.template.ScorergetDistance, getDistance, getMaxScore, getMinScore, getScore, getSimilarity, getSimilarity
 
- 
 
- 
- 
- 
Constructor Detail- 
SmithWatermanpublic SmithWaterman() Before running a pairwise local sequence alignment, data must be sent in via calls toAbstractPairwiseSequenceAligner.setQuery(Sequence),AbstractPairwiseSequenceAligner.setTarget(Sequence),AbstractMatrixAligner.setGapPenalty(GapPenalty), andAbstractMatrixAligner.setSubstitutionMatrix(SubstitutionMatrix).
 - 
SmithWatermanpublic SmithWaterman(S query, S target, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix) Prepares for a pairwise local sequence alignment.
 
- 
 - 
Method Detail- 
setProfileprotected void setProfile(List<AlignedSequence.Step> sx, List<AlignedSequence.Step> sy) - Specified by:
- setProfilein class- AbstractMatrixAligner<S extends Sequence<C>,C extends Compound>
 
 
- 
 
-