Class BasePair

    • Constructor Detail

      • BasePair

        public BasePair()
    • Method Detail

      • isCanonicalPair

        public static boolean isCanonicalPair​(PdbResidue left,
                                              PdbResidue right)
        Checks if two residues are canonical base pairs by means of (1) distance between atoms which form hydrogen bonds and (2) checking if two bases face each other.
        Parameters:
        left - First residue.
        right - Second residue.
        Returns:
        True if there is a pair of C-G, A-U or G-U.
      • invert

        public final BasePair invert()
      • is5to3

        public final boolean is5to3()
        Returns:
        True if the first residue is before the second one in 5'-3' order.