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

    • Field Detail

      • pair

        protected org.biojava.nbio.core.alignment.template.ProfilePair<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound> pair
    • Constructor Detail

      • AbstractProfileProfileAligner

        protected AbstractProfileProfileAligner​(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
      • AbstractProfileProfileAligner

        protected AbstractProfileProfileAligner​(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
      • AbstractProfileProfileAligner

        protected AbstractProfileProfileAligner​(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
      • AbstractProfileProfileAligner

        protected AbstractProfileProfileAligner​(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

      • setQuery

        public void setQuery​(org.biojava.nbio.core.alignment.template.Profile<S,​C> query)
        Sets the query Profile.
        Parameters:
        query - the first Profile of the pair to align
      • setTarget

        public void setTarget​(org.biojava.nbio.core.alignment.template.Profile<S,​C> target)
        Sets the target Profile.
        Parameters:
        target - the second Profile of the pair to align
      • getPair

        public org.biojava.nbio.core.alignment.template.ProfilePair<S,​C> getPair()
        Description copied from interface: ProfileProfileAligner
        Returns alignment profile pair.
        Specified by:
        getPair in interface ProfileProfileAligner<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>
        Returns:
        alignment profile pair
      • getQuery

        public org.biojava.nbio.core.alignment.template.Profile<S,​C> getQuery()
        Description copied from interface: ProfileProfileScorer
        Returns the first profile of the pair.
        Specified by:
        getQuery in interface ProfileProfileScorer<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>
        Returns:
        the first profile of the pair
      • getTarget

        public org.biojava.nbio.core.alignment.template.Profile<S,​C> getTarget()
        Description copied from interface: ProfileProfileScorer
        Returns the second profile of the pair.
        Specified by:
        getTarget in interface ProfileProfileScorer<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>
        Returns:
        the second profile of the pair
      • getCompoundSet

        protected org.biojava.nbio.core.sequence.template.CompoundSet<C> getCompoundSet()
        Specified by:
        getCompoundSet in class AbstractMatrixAligner<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>
      • getCompoundsOfQuery

        protected List<C> getCompoundsOfQuery()
        Specified by:
        getCompoundsOfQuery in class AbstractMatrixAligner<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>
      • getCompoundsOfTarget

        protected List<C> getCompoundsOfTarget()
        Specified by:
        getCompoundsOfTarget in class AbstractMatrixAligner<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>
      • getScoreMatrixDimensions

        protected int[] getScoreMatrixDimensions()
        Specified by:
        getScoreMatrixDimensions in class AbstractMatrixAligner<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>
      • getSubstitutionScore

        protected int getSubstitutionScore​(int queryColumn,
                                           int targetColumn)
        Specified by:
        getSubstitutionScore in class AbstractMatrixAligner<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>
      • isReady

        protected boolean isReady()
        Specified by:
        isReady in class AbstractMatrixAligner<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>
      • reset

        protected void reset()
        Description copied from class: AbstractMatrixAligner
        Resets output fields; should be overridden to set max and min
        Overrides:
        reset in class AbstractMatrixAligner<S extends org.biojava.nbio.core.sequence.template.Sequence<C>,​C extends org.biojava.nbio.core.sequence.template.Compound>