Class AFPChainFlipper

java.lang.Object
org.biojava.nbio.structure.align.xml.AFPChainFlipper

public class AFPChainFlipper extends Object
  • Constructor Details

    • AFPChainFlipper

      public AFPChainFlipper()
  • Method Details

    • flipChain

      public static AFPChain flipChain(AFPChain o) throws StructureException
      Flip the position of name1 and name2 (as well as all underlying data) in an AFPChain. This is a utility function for AFPChainXMLParser. You will have to call AFPCHainXMLParser.rebuildAFPChain in order to get twisted groups...
      Parameters:
      o - ... the original AFPCHain that should be flipped
      Returns:
      a cloned AFPCHain which the positions of name1 and name2 flipped.
      Throws:
      StructureException