Class SimpleProfileProfileAligner<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>

  • Type Parameters:
    S - each Sequence in the pair of alignment Profiles is of type S
    C - each element of an AlignedSequence is a Compound of type C
    All Implemented Interfaces:
    Aligner<S,​C>, MatrixAligner<S,​C>, ProfileProfileAligner<S,​C>, ProfileProfileScorer<S,​C>, Scorer

    public class SimpleProfileProfileAligner<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>
    extends AbstractProfileProfileAligner<S,​C>
    Implements a simple (naive) Aligner for a pair of Profiles. This is basically an extension of the NeedlemanWunsch pairwise sequence aligner to pairwise profile alignment using a sum-of-pairs score.
    Author:
    Mark Chapman
    • Constructor Detail

      • SimpleProfileProfileAligner

        public SimpleProfileProfileAligner​(org.biojava.nbio.core.alignment.template.Profile<S,​C> query,
                                           org.biojava.nbio.core.alignment.template.Profile<S,​C> target,
                                           GapPenalty gapPenalty,
                                           org.biojava.nbio.core.alignment.template.SubstitutionMatrix<C> subMatrix)
        Prepares for a profile-profile alignment.
        Parameters:
        query - the first Profile of the pair to align
        target - the second Profile of the pair to align
        gapPenalty - the gap penalties used during alignment
        subMatrix - the set of substitution scores used during alignment
      • SimpleProfileProfileAligner

        public SimpleProfileProfileAligner​(Future<org.biojava.nbio.core.alignment.template.ProfilePair<S,​C>> query,
                                           Future<org.biojava.nbio.core.alignment.template.ProfilePair<S,​C>> target,
                                           GapPenalty gapPenalty,
                                           org.biojava.nbio.core.alignment.template.SubstitutionMatrix<C> subMatrix)
        Prepares for a profile-profile alignment run concurrently.
        Parameters:
        query - the first Profile of the pair to align, still to be calculated
        target - the second Profile of the pair to align, still to be calculated
        gapPenalty - the gap penalties used during alignment
        subMatrix - the set of substitution scores used during alignment
      • SimpleProfileProfileAligner

        public SimpleProfileProfileAligner​(org.biojava.nbio.core.alignment.template.Profile<S,​C> query,
                                           Future<org.biojava.nbio.core.alignment.template.ProfilePair<S,​C>> target,
                                           GapPenalty gapPenalty,
                                           org.biojava.nbio.core.alignment.template.SubstitutionMatrix<C> subMatrix)
        Prepares for a profile-profile alignment run concurrently.
        Parameters:
        query - the first Profile of the pair to align
        target - the second Profile of the pair to align, still to be calculated
        gapPenalty - the gap penalties used during alignment
        subMatrix - the set of substitution scores used during alignment
      • SimpleProfileProfileAligner

        public SimpleProfileProfileAligner​(Future<org.biojava.nbio.core.alignment.template.ProfilePair<S,​C>> query,
                                           org.biojava.nbio.core.alignment.template.Profile<S,​C> target,
                                           GapPenalty gapPenalty,
                                           org.biojava.nbio.core.alignment.template.SubstitutionMatrix<C> subMatrix)
        Prepares for a profile-profile alignment run concurrently.
        Parameters:
        query - the first Profile of the pair to align, still to be calculated
        target - the second Profile of the pair to align
        gapPenalty - the gap penalties used during alignment
        subMatrix - the set of substitution scores used during alignment
    • Method Detail

      • setProfile

        protected void setProfile​(List<org.biojava.nbio.core.alignment.template.AlignedSequence.Step> sx,
                                  List<org.biojava.nbio.core.alignment.template.AlignedSequence.Step> sy)
        Specified by:
        setProfile in class AbstractMatrixAligner<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>