Class SequenceFunctionRefiner

  • All Implemented Interfaces:
    SymmetryRefiner

    public class SequenceFunctionRefiner
    extends Object
    implements SymmetryRefiner
    Creates a refined alignment with the CE-Symm alternative self-alignment. Needs the order of symmetry and assumes that the last repeat aligns with the first, being thus a CLOSE symmetry.
    Since:
    4.2.0
    Author:
    Spencer Bliven, Aleix Lafita
    • Constructor Detail

      • SequenceFunctionRefiner

        public SequenceFunctionRefiner()
    • Method Detail

      • refineSymmetry

        public static AFPChain refineSymmetry​(AFPChain afpChain,
                                              Atom[] ca1,
                                              Atom[] ca2,
                                              int k)
                                       throws StructureException,
                                              RefinerFailedException
        Refines a CE-Symm alignment so that it is perfectly symmetric. The resulting alignment will have a one-to-one correspondance between aligned residues of each symmetric part.
        Parameters:
        afpChain - Input alignment from CE-Symm
        k - Symmetry order. This can be guessed by CeSymm#getSymmetryOrder(AFPChain)
        Returns:
        The refined alignment
        Throws:
        StructureException
        RefinerFailedException
      • refineSymmetry

        public static Map<Integer,​Integer> refineSymmetry​(Map<Integer,​Integer> alignment,
                                                                int k)
                                                         throws StructureException
        Refines a CE-Symm alignment so that it is perfectly symmetric. The resulting alignment will have a one-to-one correspondance between aligned residues of each symmetric part.
        Parameters:
        alignment - The input alignment, as a map. This will be modified.
        k - Symmetry order. This can be guessed by CeSymm#getSymmetryOrder(AFPChain)
        Returns:
        A modified map with the refined alignment
        Throws:
        StructureException