Interface SequencePair<S extends Sequence<C>,​C extends Compound>

    • Method Detail

      • getNumIdenticals

        int getNumIdenticals()
        Returns the number of indices for which both the query and target sequences have an identical Compound.
        Returns:
        the number of identical indices
      • getPercentageOfIdentity

        double getPercentageOfIdentity​(boolean countGaps)
        Returns the percentage of identity between the two sequences in the alignment as a fraction between 0 and 1.
        Parameters:
        countGaps - If true, gap positions are counted as mismatches, i.e., the percentage is normalized by the alignment length. If false, gap positions are not counted, i.e. the percentage is normalized by the number of aligned residue pairs. See May (2004). "Percent sequence identity: the need to be explicit."
        Returns:
        the percentage of sequence identity as a fraction in [0,1]
      • getNumSimilars

        int getNumSimilars()
        Returns the number of indices for which both the query and target sequences have a similar Compound.
        Returns:
        the number of similar indices